// unfasten.js
(function () {
/*global adventurejs A*/
var p = adventurejs.Tangible.prototype;
/**
* <strong>unfasten</strong> tries several methods for
* unfastening.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#unfasten
* @returns {string}
*/
p.unfasten = function Tangible_unfasten() {
let unfasten = "";
if (this.is.zipped) {
unfasten = "unzip";
this.is.zipped = false;
this.incrementDoVerbCount("unzip", "dov");
} else if (this.is.buttoned) {
unfasten = "unbutton";
this.is.buttoned = false;
this.incrementDoVerbCount("unbutton", "dov");
}
return unfasten;
};
})();