|
@@ -8,19 +8,16 @@
|
|
|
(format T "~%")
|
|
|
(format-table T crew-names :column-label '("Name" "Buff" "Buff Amount"))))
|
|
|
|
|
|
-(defun display-inventory ()
|
|
|
- (let ((inventory-list (list
|
|
|
- (list "Credits" (player-ship-credits *player-ship*))
|
|
|
- (list "Petrofuel" (player-inventory-petrofuel (player-ship-inventory *player-ship*)))
|
|
|
- (list "Gruel" (player-inventory-gruel (player-ship-inventory *player-ship*)))
|
|
|
- (list "Spice" (player-inventory-spice (player-ship-inventory *player-ship*)))
|
|
|
- (list "Ammo" (player-inventory-ammo (player-ship-inventory *player-ship*)))
|
|
|
- (list "Archeotech" (player-inventory-archeotech (player-ship-inventory *player-ship*))))))
|
|
|
+(defun display-inventory (player-ship-obj)
|
|
|
+ (let* ((inventory (inventory player-ship-obj))
|
|
|
+ (inventory-list (loop for slot in (return-slots inventory)
|
|
|
+ collect (list
|
|
|
+ slot (slot-value inventory slot)))))
|
|
|
(format T "~%INVENTORY~%")
|
|
|
(format-table T inventory-list :column-label '("Resource" "Amount"))))
|
|
|
|
|
|
|
|
|
-(defun ship-info ()
|
|
|
- (display-crew)
|
|
|
- (display-inventory))
|
|
|
+(defun ship-info (player-ship-obj)
|
|
|
+ (display-crew player-ship-obj)
|
|
|
+ (display-inventory player-ship-obj))
|
|
|
;;; SHIP INFO END ;;;
|