summaryrefslogtreecommitdiffstats
path: root/src/game.lisp
diff options
context:
space:
mode:
authorEl-BG-1970 <elouangros@hotmail.com>2022-08-25 15:05:08 +0200
committerEl-BG-1970 <elouangros@hotmail.com>2022-08-25 15:05:08 +0200
commitd6ff28e518c4dec62d8520f74a8f4d1a527a47bc (patch)
tree814336833572be49868184432f533610707930d9 /src/game.lisp
parent3a9bb4886317e82aee1a45e4b643b5973c5215f9 (diff)
downloadtransacc-d6ff28e518c4dec62d8520f74a8f4d1a527a47bc.tar.gz
begginings of a gui
Diffstat (limited to 'src/game.lisp')
-rw-r--r--src/game.lisp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/game.lisp b/src/game.lisp
index b55224a..08184fc 100644
--- a/src/game.lisp
+++ b/src/game.lisp
@@ -5,7 +5,8 @@
:sell-item
:change-zone
:get-profit
- :get-profit-in-zone))
+ :get-profit-in-zone
+ :commodities-panel))
(in-package :game)
@@ -65,10 +66,10 @@
(player-item (player:find-item player name))
(quantity (if player-item (cdr player-item) 0))
(profit (if player-item
- (- price
- (commodities:price (car player-item))))))
- (list name
- price
- quantity
- profit)))
+ (- price (commodities:price (car player-item)))
+ 0)))
+ (list :name name
+ :price price
+ :qty quantity
+ :profit profit)))
(zone:get-commodities cur-zone))))