// unfasten.js
(function () {
/*global adventurejs A*/
"use strict";
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", 1);
} else if (this.is.buttoned) {
unfasten = "unbutton";
this.is.buttoned = false;
this.incrementDoVerbCount("unbutton", 1);
}
return unfasten;
};
})();