// triedVerb.js
(function () {
/*global adventurejs A*/
var p = adventurejs.Asset.prototype;
/**
* <strong>triedVerb</strong> is a method to check whether
* it was attempted to use this asset as a direct object by the specified verb.
* <br><br>
* <strong>$tried</strong> is an alias for authors.
* @memberOf adventurejs.Asset
* @method adventurejs.Asset#triedVerb
* @param {String} verb The name of a verb.
* @param {String} ov Direct or indirect object of verb.
* @returns {Boolean}
*/
p.triedVerb = p.$tried = function Asset_triedVerb(verb, ov) {
if (!ov || (ov !== "dov" && ov !== "iov")) ov = "dov";
if (!verb || !this.game.dictionary.verbs[verb]) return false;
ov = ov === "dov" ? "directly" : "indirectly";
return this.tried[verb] && this.tried[verb][ov];
};
})();