Cleaning up and improving item card buying process.

This commit is contained in:
2020-02-07 22:03:49 -08:00
parent acb5c2df45
commit bf8df6c8eb
3 changed files with 52 additions and 10 deletions

View File

@@ -804,7 +804,10 @@
(string->symbol (alist-ref 'crop otb)))
(string->symbol (alist-ref 'crop otb))
(alist-ref 'amount otb)
(* (alist-ref 'cash msg) 1000)
(* (or (and (number? (alist-ref 'cash msg))
(alist-ref 'cash msg))
0)
1000)
player
game)
(set! (player-otbs player)
@@ -1691,8 +1694,13 @@
(thread-join! *server-thread*)))
;; TODO
;; audit was called but didn't cause anything on year end
;; make game finished display results.
;; make sure two players can't have the same name
;; bug: harvest action multiplayer doesn't flow right for other players
;; info actions should look better
;; bug: dice shows no value when landing on christmas vacation
;; limit to 20 cows
;; don't give extra money for extra tractors
;; you can get $50 from harvest
;; buy ifs with blank box
;; ran out of otbs
;; bug: new websocket messages should not reset IFS card selection