begin-pickup-travel.js 869 B

12345678910111213141516171819202122232425262728
  1. rooms.push({
  2. id: "begin-pickup-travel",
  3. name: "Sector 12",
  4. description: "A seemingly-endless black void, far enough away from any territories to be detected.",
  5. play: "empty-space",
  6. actions: [],
  7. doors: [
  8. {
  9. id: "nearby-outpost", button: "Travel to Station", action: "Traveling", requires: () => true,
  10. start: () => { play('travel-left') },
  11. run: () => {
  12. userData.fuel--;
  13. userData.position = "begin-pickup-nearby";
  14. }, duration: 4000
  15. }
  16. ],
  17. viewable: [
  18. {elementId: 'doors', data: {}},
  19. {elementId: 'put-in-inventory', data: { button: "Pickup Cargo", source: () => []}},
  20. {elementId: 'room-description', data: {}},
  21. ],
  22. enter: () => {
  23. if(isFlagEnabled('begin-cargo-aboard')) {
  24. receiveMessage({name: "[mysterious signal]", id: -1, style: "dark"}, "Now that you've got the cargo aboard, head to the nearby outpost.");
  25. }
  26. }
  27. });