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