ship.lisp 1.2 KB

123456789101112131415161718192021222324252627
  1. ;;; SHIP INFO ;;;
  2. (defun display-crew ()
  3. (let* ((crew-struct (crew-crew-members (player-ship-crew *player-ship*)))
  4. (crew-names
  5. (loop for member in crew-struct
  6. collect (list (uniq-crew-mem-name member) NIL NIL))))
  7. (format T "~%CREW DETAILS~%~%")
  8. (format-table T (list (list (crew-sanity-val (player-ship-crew *player-ship*)))) :column-label '("Sanity"))
  9. (format T "~%")
  10. (format-table T crew-names :column-label '("Name" "Buff" "Buff Amount"))))
  11. (defun display-inventory ()
  12. (let ((inventory-list (list
  13. (list "Credits" (player-ship-credits *player-ship*))
  14. (list "Petrofuel" (player-inventory-petrofuel (player-ship-inventory *player-ship*)))
  15. (list "Gruel" (player-inventory-gruel (player-ship-inventory *player-ship*)))
  16. (list "Spice" (player-inventory-spice (player-ship-inventory *player-ship*)))
  17. (list "Ammo" (player-inventory-ammo (player-ship-inventory *player-ship*)))
  18. (list "Archeotech" (player-inventory-archeotech (player-ship-inventory *player-ship*))))))
  19. (format T "~%INVENTORY~%")
  20. (format-table T inventory-list :column-label '("Resource" "Amount"))))
  21. (defun ship-info ()
  22. (display-crew)
  23. (display-inventory))
  24. ;;; SHIP INFO END ;;;