Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// IOVincrementDoCount.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Asset.prototype;	
  /**
   * <strong>IOVincrementDoCount</strong> is a method to increment the number
   * of times the specified verb has acted on this asset as an indirect object. 
   * @memberOf adventurejs.Asset
   * @method adventurejs.Asset#IOVincrementDoCount
   * @param {String} verb
   */
  p.IOVincrementDoCount = function Asset_IOVIncrementDoCount(verb)
  {
    if( verb 
      && this.game.dictionary.verbs[verb]
      && this.iov[verb] ) 
      {
        this.iov[verb].incrementDoCount();
      }
  }
}());