summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-06 03:07:19 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-06 03:07:19 +0200
commitd181ca15db4d4a0ed67d3d445b7e463828b6f425 (patch)
tree85357fb97a0b595006bc6888e77f722170aea21f
parentdf76524fc96ae4d63c2cea0a4187c663411ec2d0 (diff)
downloadred-flag-over-paris-d181ca15db4d4a0ed67d3d445b7e463828b6f425.tar.gz
fix censorship recycling
-rw-r--r--rules.js16
1 files changed, 4 insertions, 12 deletions
diff --git a/rules.js b/rules.js
index eb06095..0d0b5d9 100644
--- a/rules.js
+++ b/rules.js
@@ -363,7 +363,7 @@ function discard_card(c) {
function recycle_card(c) {
array_remove_item(player_hand(), c)
- game.strategy_deck.unshift(c)
+ game.discard.unshift(c)
}
function remove_card(c) {
@@ -1784,17 +1784,6 @@ states.operations_remove_spend = {
},
}
-states.operations_remove_draw = {
- inactive: "use Operations Points",
- prompt() {
- view.prompt = "Operations: Draw card for removal in Military."
- view.actions.draw = 1
- },
- draw() {
- attempt_remove_piece(0)
- },
-}
-
function attempt_remove_piece(extra) {
clear_undo()
let p = game.who
@@ -1812,6 +1801,8 @@ function attempt_remove_piece(extra) {
logi("Failure")
}
game.who = -1
+ if (game.censorship)
+ game.discard.unshift(c)
resume_operations_remove()
}
@@ -3603,6 +3594,7 @@ states.paris_bombarded = {
view.actions.skip = 1
},
piece(p) {
+ clear_undo()
let s = game.pieces[p]
let pn = piece_abbr(p)
log("Remove " + pn + " from S" + s + ".")