// canNestPlayerAt.js
(function () {
/* global adventurejs A */
var p = adventurejs.Tangible.prototype;
/**
* Ask if player can nest in an aspect of this asset.
* @memberOf adventurejs.Tangible
* @method adventurejs.Tangible#canNestPlayerAt
* @param {String} aspect A Tangible Aspect ID.
* @returns {Boolean}
*/
p.canNestPlayerAt = function Tangible_canNestPlayerAt(aspect) {
this.game.log(
"L1463",
"log",
"high",
`[canNestPlayerAt.js] ${aspect} ${this.name}?`,
"Tangible"
);
return (
this.hasAspectAt(aspect) && this.aspects[aspect].canCharacter("enter")
);
};
})();