Pre-release
AdventureJS Docs Downloads
Score: 0 Moves: 0
// getNestOrPlaceAspect.js
(function () {
  /*global adventurejs A*/
  var p = adventurejs.Character.prototype;
  /**
   * Get aspect of character's parent. If character is nested,
   * returns nest asset preposition, otherwise returns room asset preposition.
   * @memberOf adventurejs.Character
   * @method adventurejs.Character#getNestOrPlaceAspect
   * @return {Boolean}
   */
  p.getNestOrPlaceAspect = function Character_getNestOrPlaceAspect() {
    return this.isNested() ? this.getNestAspect() : this.getPlaceAspect();
  };
})();