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