begin-pickup-nearby.js 914 B

12345678910111213141516171819202122232425262728293031
  1. rooms.push({
  2. id: "begin-pickup-nearby",
  3. name: "Nearby Station",
  4. description: "Nestled close to a dilapidated mining outpost, surrounded by an endless black void.",
  5. play: "nearby-outpost",
  6. actions: [],
  7. doors: [
  8. {
  9. id: "mining-outpost",
  10. button: "Dock",
  11. action: "Docking",
  12. requires: () => true,
  13. start: () => {
  14. receiveMessage({name:"[Station Tower]", id:-1, style: "station"}, "Acknowledged "+userData.name+". You are cleared to dock.");
  15. play('dock-with-station');
  16. },
  17. run: () => { userData.position = "mining-outpost"; },
  18. duration: 2000
  19. },
  20. ],
  21. viewable: [
  22. {elementId: 'doors', data: {}},
  23. {elementId: 'room-description', data: {}},
  24. ],
  25. enter: () => {
  26. if(isFlagEnabled('begin-cargo-aboard')) {
  27. receiveMessage({name: "[mysterious signal]", id: -1, style: "dark"}, "Dock at the station. I'll have my associate meet you at the loading dock.");
  28. }
  29. }
  30. });