Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// isDOV.js
(function () {
  /*global adventurejs A*/
  var p = adventurejs.Asset.prototype;
  /**
   * <strong>isDOV</strong> is a method to check whether
   * this asset is subscribed to allow the specified verb to act on it
   * as a direct object.
   * @memberOf adventurejs.Asset
   * @method adventurejs.Asset#isDOV
   * @param {String} verb
   * @returns {Boolean}
   */
  p.isDOV = function Asset_isDOV(verb) {
    if (!verb || !this.game.dictionary.verbs[verb]) return false;
    if (!this.dov[verb]?.enabled) return false;
    return true;
  };
})();