summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-05 01:55:21 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-21 00:28:20 +0200
commit38062a15ba3981f8b8f6d8775075ec903d5250f4 (patch)
treefc6bcf8a4de92d7e2c5f900c725b50984f54b6c2
parent8342ef0cb3dc9ba5a1ba500c07bc96ba5667047a (diff)
downloadwashingtons-war-38062a15ba3981f8b8f6d8775075ec903d5250f4.tar.gz
log picked up CU
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 96c375d..b1227d5 100644
--- a/rules.js
+++ b/rules.js
@@ -2046,14 +2046,20 @@ states.ops_general_move = {
pickup_british_cu() {
push_undo()
+ if (has_general_moved(game.move.who))
+ log(">>picked up CU")
++game.move.carry_british
},
pickup_american_cu() {
push_undo()
+ if (has_general_moved(game.move.who))
+ log(">>picked up CU")
++game.move.carry_american
},
pickup_french_cu() {
push_undo()
+ if (has_general_moved(game.move.who))
+ log(">>picked up CU")
++game.move.carry_french
},