Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// hasRopesThatBlockTravel.js
(function () {
  /* global AdventureJS A */
  var p = AdventureJS.Assets.Tangible.prototype;
  /**
   * Determine if player is holding or tied by any ropes
   * that block travel to other rooms.
   * @memberOf AdventureJS.Assets.Tangible
   * @method AdventureJS.Assets.Tangible#hasRopesThatBlockTravel
   * @return {Boolean}
   */
  p.hasRopesThatBlockTravel = function Tangible_hasRopesThatBlockTravel() {
    return this.getRopesThatBlockTravel().length > 0 ? true : false;
  };
})();