// IOVdidDoCount.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Asset.prototype;
/**
* <strong>IOVdidDoCount</strong> is a method to get
* a count of times this asset was used
* as an indirect object by the specified verb.
* <br><br>
* <strong>_iDoCount</strong> is an alias meant for authors.
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#IOVdidDoCount
* @param {String} verb
* @returns {Int}
*/
p.IOVdidDoCount = p._iDoCount = function Asset_IOVDidDoCount(verb)
{
if( !verb || !this.game.dictionary.verbs[verb] ) return 0;
if( !this.iov[verb] ) return 0;
return this.iov[verb].do_count;
}
}());