// tryDestroyDirectObjectAfterUsing.js
(function() {
/*global adventurejs A*/
"use strict";
var p = adventurejs.Asset.prototype;
/**
* <strong>tryDestroyDirectObjectAfterUsing</strong>
* checks to see if the specified asset can only be
* used directly once with this verb by checking for
* <code>asset.dov[this.name].then_destroy</code>.
* This is intended to provide a hook for authors
* to easily destroy an object after a single use, such as a key
* that only works once and then breaks or disappears.
* @memberOf adventurejs.Verb
* @method adventurejs.Verb#tryDestroyDirectObjectAfterUsing
* @param {Object} asset
* @returns {Boolean|string}
*/
p.tryDestroyDirectObjectAfterUsing = function Asset_tryDestroyDirectObjectAfterUsing(verb)
{
return this.tryDestroyAfterUsing('dov',verb);
}
}());