Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// getNestOrPlacePreposition.js
(function () {
  /*global adventurejs A*/
  var p = adventurejs.Tangible.prototype;
  /**
   * Get preposition of asset's parent aspect. If it's a character and is nested,
   * returns nest asset preposition, otherwise returns room asset preposition.
   * @memberOf adventurejs.Tangible
   * @method adventurejs.Tangible#getNestOrPlacePreposition
   * @return {Boolean}
   */
  p.getNestOrPlacePreposition = function Tangible_getNestOrPlacePreposition() {
    if (this.isNested && this.isNested()) {
      return this.getNestPreposition();
    } else {
      return this.getPlacePreposition();
    }
  };
})();