Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// $moveFrom.js
(function () {
  /*global adventurejs A*/
  var p = adventurejs.Tangible.prototype;
  /**
   * $moveFrom is an author shortcut that is similar
   * to moveFrom but which bypasses onRemoveThatFromThis,
   * avoiding the consequences of any verb actions.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#moveFrom
   * @param {Object} asset
   * @returns {Boolean}
   */
  p.$moveFrom = function Tangible_$moveFrom(asset) {
    if ("string" === typeof asset) asset = this.game.getAsset(asset);
    if (!asset) return false;
    this.setPlace();
    return true;
  };
})();