Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// hasTiedThingsThatDragOnTravel.js
(function () {
  /*global adventurejs A*/
  var p = adventurejs.Tangible.prototype;
  /**
   * Check if player is holding a rope, or tied by a rope, that
   * is tied at the other end to an asset that can travel with player.
   * Returns a boolean indicating whether any asset meets this qualification.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#hasTiedThingsThatDragOnTravel
   * @return {Boolean}
   */
  p.hasTiedThingsThatDragOnTravel =
    function Tangible_hasTiedThingsThatDragOnTravel() {
      return this.getTiedThingsThatDragOnTravel().length > 0 ? true : false;
    };
})();