rooms.push({ id: "asteroid-field", name: "Asteroid Field", description: "A seemingly-endless black void filled with spinning iron boulders.", play: "asteroid-field", actions: [ 'store-solar', 'unfurl-solar', 'activate-ion-engine', 'activate-ramjet', 'disable-ion-engine', 'disable-ramjet', 'mine', ], doors: [ { id: "nearby-outpost", button: "Travel to Station", action: "Traveling", requires: () => { let enoughFuel = userData.fuel > 0; if (!enoughFuel) { errorMessage = "insufficient fuel for a return trip"; } return enoughFuel; }, start: () => { play('travel-left'); }, run: () => { userData.fuel--; userData.position = "nearby-outpost"; }, duration: 4000 } ], viewable: [ {elementId: 'actions', data: {}}, {elementId: 'doors', data: {}}, {elementId: 'put-in-inventory', data: { action: "harvest", button: "Gather Debris", source: () => userData.debrisInSpace } }, {elementId: 'asteroid-field', data: {}}, {elementId: 'room-description', data: {}}, ], });