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