Ensure operating expense value is always at least divisible by 100.

master
Thomas Hintz 5 years ago
parent 90f4e959cd
commit 2599c6fa33

@ -1738,7 +1738,9 @@
(define (make-player-pays-per-unit unit amount)
(lambda (player)
(let ((to-pay (* (player-asset (normalize-crop unit) player) amount)))
(let ((to-pay (farming-round-down
(inexact->exact
(round (* (player-asset (normalize-crop unit) player) amount))))))
(safe-set! (player-cash player)
(- (player-cash player) to-pay)))))
@ -2382,6 +2384,3 @@
;; TODO
;; make sure two players can't have the same name
;; info actions should look better
;; you can get $50 from operating expense
;; mark spaces

Loading…
Cancel
Save