//createGlobalCeilings.js
(function () {
/*global adventurejs A*/
var p = adventurejs.Game.prototype;
/**
* Create global ceiling (although there's only one).
* @memberOf adventurejs.Game
* @method adventurejs.Game#createGlobalCeilings
* @kind function
*/
p.createGlobalCeilings = function Game_createGlobalCeilings() {
//console.warn( "createGlobalCeilings" );
for (var i = 0; i < A.GlobalAssets.Ceilings.length; i++) {
var precursor = A.GlobalAssets.Ceilings[i];
precursor.id = "global_ceiling";
precursor.class = "Ceiling";
let asset = this.game.createAsset(precursor).set({
is: {
global: true,
known: true,
seen: true,
},
descriptions: { look: precursor.description },
});
// console.warn("id", asset.id, "name", asset.name);
}
};
})();