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

This commit is contained in:
2020-04-23 21:22:09 -07:00
parent 90f4e959cd
commit 2599c6fa33

View File

@@ -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