mining-outpost-shop.js 854 B

1234567891011121314151617181920212223242526272829303132
  1. rooms.push({
  2. id: "mining-outpost-shop",
  3. name: "Metal Merchant Shop",
  4. description: "A plush chair filled to overflowing with a sleezy merchant, gesturing to a clearly non-zeroed scale.",
  5. play: "mining-outpost-shop",
  6. actions: [
  7. 'buy-battery',
  8. 'buy-fuel',
  9. 'recharge-battery',
  10. 'buy-solar-array',
  11. 'buy-ramjet',
  12. 'buy-ion-engine',
  13. ],
  14. doors: [
  15. {
  16. id: "mining-outpost",
  17. button: "Docking Bay",
  18. action: "Travelling",
  19. requires: () => true,
  20. run: () => { userData.position = "mining-outpost"; },
  21. duration: 300
  22. },
  23. ],
  24. viewable: [
  25. {elementId: 'actions', data: {}},
  26. {elementId: 'doors', data: {}},
  27. {elementId: 'get-from-inventory', data: { action: "sell", button: "Sell Items", validator: (item) => {
  28. return !!marketMap.find(market => market.type == item.type);
  29. }}},
  30. {elementId: 'room-description', data: {}},
  31. ],
  32. });