// getNestOrPlaceAsset.js
(function () {
/*global adventurejs A*/
var p = adventurejs.Character.prototype;
/**
* Get character's parent asset. If character is nested,
* returns nest asset, otherwise returns room asset.
* @memberOf adventurejs.Character
* @method adventurejs.Character#getNestOrPlaceAsset
* @return {Boolean}
*/
p.getNestOrPlaceAsset = function Character_getNestOrPlace() {
if (this.isNested()) {
return this.getNestAsset();
} else {
return this.getPlaceAsset();
}
};
})();