Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// IOVgetConnections.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Asset.prototype;	
  /**
   * Return 
   * this.iov[verb].with_params.connections
   * @memberOf adventurejs.Asset
	 * @method adventurejs.Asset#IOVgetConnections
   * @param {String} verb The name of a verb.
   * @return {Array}
   */
  p.IOVgetConnections = function Asset_IOVgetConnections(verb) 
  {
    if( !verb || !this.game.dictionary.verbs[verb] ) return [];
    return this.iov[verb]?.with_params.connections || [];
  }
}());