Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// undestroy.js
(function () {
  /*global adventurejs A*/
  var p = adventurejs.Asset.prototype;

  /**
   * <strong>undestroy</strong> is called to return a destroyed asset
   * to the game world.
   * @memberOf adventurejs.Asset
   * @method adventurejs.Asset#undestroy
   */
  p.undestroy = function Asset_undestroy() {
    this.is.destroyed = false;
    this.is.extant = true;

    var results = this.callAction("doUndestroyThis");
    if ("undefined" !== typeof results) return results;

    return;
  };
})();