// DOVgetConnectionCount.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Asset.prototype;
/**
* Return
* this.dov[verb].with_params.connections.length
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#DOVgetConnectionCount
* @param {String} verb The name of a verb.
* @return {Int}
*/
p.DOVgetConnectionCount = function Asset_DOVgetConnectionCount(verb)
{
if( !verb || !this.game.dictionary.verbs[verb] ) return 0;
if( this.dov[verb]?.with_params.connections )
{
return this.dov[verb].with_params.connections.length;
}
return 0;
}
}());