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