// DOVdidTryCount.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Asset.prototype;
/**
* <strong>DOVdidTryCount</strong> is a method to get
* a count of times it was tried to use this asset
* as a direct object by the specified verb.
* <br><br>
* <strong>_tryCount</strong> is an alias meant for authors.
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#DOVdidTryCount
* @param {String} verb
* @returns {Boolean}
*/
p.DOVdidTryCount = p._tryCount = function Asset_DOVDidTryCount(verb)
{
if( !verb || !this.game.dictionary.verbs[verb] ) return 0;
if( this.dov[verb] )
{
return this.dov[verb].try_count;
}
else if( this.did_try_verb_count[verb] )
{
return this.did_try_verb_count[verb].noun1;
}
return 0;
}
}());