// roomIs.js
(function () {
/* global AdventureJS A */
var p = AdventureJS.Assets.Entity.prototype;
/**
* Get the asset of the room this asset is in.
* @memberOf AdventureJS.Assets.Entity
* @method AdventureJS.Assets.Entity#getRoomAsset
* @param {String} value A name or id to compare against this asset's room.
* @returns {String}
*/
p.roomIs = function Entity_roomIs(value) {
value = value.toLowerCase();
let room = this.getRoom();
return room.id === value || room.name.toLowerCase() === value;
};
})();