structs.lisp 932 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. (defstruct player-ship
  2. armor-val
  3. rep-shield-val
  4. warp-drive ; tuple, first ele is power state (0,1), second is fuel cost
  5. reactor-str ; 0 - low power, 1 - full power, 2 - overdrive
  6. ammo
  7. warp-field ; 0 - low power, 1 - full power
  8. weapons
  9. credits
  10. crew
  11. inventory)
  12. (defstruct player-inventory
  13. petrofuel
  14. gruel
  15. spice
  16. ammo
  17. archeotech)
  18. (defstruct crew
  19. sanity-val ; Max 100
  20. moral-val ; Max 100
  21. crew-members ; List of *uniq-crew-mem*
  22. )
  23. ;;; Unique crew member that can provide an abstract buff
  24. ;;; or nerf to some internal game system
  25. (defstruct uniq-crew-mem
  26. armor-buff
  27. rep-shield-buff
  28. sanity-buff
  29. moral-buff
  30. warp-drive-buff
  31. reactor-str-buff
  32. warp-field-buff
  33. plasma-buff
  34. expl-buff
  35. beam-buff
  36. credit-buff)
  37. (defstruct weapon
  38. name
  39. shield-dmg
  40. hull-dmg
  41. ammo-cost)
  42. (defstruct market
  43. price-of-petrofuel
  44. price-of-ammo
  45. price-of-archeotech
  46. price-of-spice
  47. price-of-gruel)