|
|
@ -96,6 +96,14 @@
|
|
|
|
(lambda () (set! (,(first (second x)) obj) res))
|
|
|
|
(lambda () (set! (,(first (second x)) obj) res))
|
|
|
|
(lambda () (mutex-unlock! mutex))))))))
|
|
|
|
(lambda () (mutex-unlock! mutex))))))))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(define-syntax with-app
|
|
|
|
|
|
|
|
(syntax-rules ()
|
|
|
|
|
|
|
|
((_ (app) body ...)
|
|
|
|
|
|
|
|
(dynamic-wind
|
|
|
|
|
|
|
|
(lambda () (mutex-lock! (app-mutex app)))
|
|
|
|
|
|
|
|
(lambda () body ...)
|
|
|
|
|
|
|
|
(lambda () (mutex-unlock! (app-mutex app)))))))
|
|
|
|
|
|
|
|
|
|
|
|
(define-record player
|
|
|
|
(define-record player
|
|
|
|
(setter cash)
|
|
|
|
(setter cash)
|
|
|
|
(setter display-cash)
|
|
|
|
(setter display-cash)
|
|
|
@ -2303,6 +2311,7 @@
|
|
|
|
(player-stats p)))))
|
|
|
|
(player-stats p)))))
|
|
|
|
|
|
|
|
|
|
|
|
(define (get-actions player space)
|
|
|
|
(define (get-actions player space)
|
|
|
|
|
|
|
|
(with-app (*app*)
|
|
|
|
(let ((res '()))
|
|
|
|
(let ((res '()))
|
|
|
|
(let loop ((a
|
|
|
|
(let loop ((a
|
|
|
|
(prolog+meta
|
|
|
|
(prolog+meta
|
|
|
@ -2408,7 +2417,7 @@
|
|
|
|
`((,(list-ref *months* space) ?action tom ?value)))))
|
|
|
|
`((,(list-ref *months* space) ?action tom ?value)))))
|
|
|
|
(if a
|
|
|
|
(if a
|
|
|
|
(begin (set! res (cons a res)) (loop (amb+)))
|
|
|
|
(begin (set! res (cons a res)) (loop (amb+)))
|
|
|
|
res))))
|
|
|
|
res)))))
|
|
|
|
|
|
|
|
|
|
|
|
(define (normalize-crop crop)
|
|
|
|
(define (normalize-crop crop)
|
|
|
|
(cond ((or (eq? crop 'wheat) (eq? crop 'corn))
|
|
|
|
(cond ((or (eq? crop 'wheat) (eq? crop 'corn))
|
|
|
@ -2625,24 +2634,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
;; TODO
|
|
|
|
;; TODO
|
|
|
|
;; make sure two players can't have the same name
|
|
|
|
;; make sure two players can't have the same name
|
|
|
|
;; "your turn to roll" showing up on mobile when on action screen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; bug on display for uncle berts farm
|
|
|
|
;; bug on display for uncle berts farm
|
|
|
|
;; Error: (mailbox-send!) bad argument type - not a mailbox: "redhead91
|
|
|
|
;; Error: (mailbox-send!) bad argument type - not a mailbox: "redhead91
|
|
|
|
|
|
|
|
|
|
|
|
;; farmers luck can cause display cash to be out of sync
|
|
|
|
;; farmers luck can cause display cash to be out of sync
|
|
|
|
|
|
|
|
|
|
|
|
;; Uncaught TypeError: Cannot read property 'toFixed' of undefined
|
|
|
|
|
|
|
|
;; at St (app.0f8d4f4543faaee5dff1.js:1377)
|
|
|
|
|
|
|
|
;; at app.0f8d4f4543faaee5dff1.js:1457
|
|
|
|
|
|
|
|
;; at Object.y [as dispatch] (vendors.bef6ac3591b4d9cb3c76.js:8936)
|
|
|
|
|
|
|
|
;; at app.0f8d4f4543faaee5dff1.js:1226
|
|
|
|
|
|
|
|
;; at eu (vendors.bef6ac3591b4d9cb3c76.js:12601)
|
|
|
|
|
|
|
|
;; at WebSocket.pt (app.0f8d4f4543faaee5dff1.js:1127)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; Uncaught TypeError: Cannot read property 'krispy kreme' of undefined
|
|
|
|
|
|
|
|
;; at app.0f8d4f4543faaee5dff1.js:1461
|
|
|
|
|
|
|
|
;; at Object.y [as dispatch] (vendors.bef6ac3591b4d9cb3c76.js:8936)
|
|
|
|
|
|
|
|
;; at app.0f8d4f4543faaee5dff1.js:1226
|
|
|
|
|
|
|
|
;; at eu (vendors.bef6ac3591b4d9cb3c76.js:12601)
|
|
|
|
|
|
|
|
;; at WebSocket.pt (app.0f8d4f4543faaee5dff1.js:1127)
|
|
|
|
|
|
|
|