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