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

  p.DOVincrementDoCount = function Asset_DOVincrementDoCount(verb)
  {
    if( verb 
      && this.game.dictionary.verbs[verb]
      && this.dov[verb] ) 
      {
        this.dov[verb].incrementDoCount();
      }
  }
}());