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