Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// DOVincrementTryCount.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Asset.prototype;	
  /**
   * <strong>DOVincrementTryCount</strong> is a method to increment the number
   * of times the specified verb has been tried on this asset as a direct object. 
   * @memberOf adventurejs.Asset
   * @method adventurejs.Asset#DOVincrementTryCount
   * @param {String} verb
   */

  p.DOVincrementTryCount = function Asset_DOVincrementTryCount(verb)
  {
    if( verb 
      && this.game.dictionary.verbs[verb]
      && this.dov[verb] ) 
      {
        this.dov[verb].incrementTryCount();
      }
  }
}());