summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-21 06:08:55 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-21 06:08:55 +0000
commitb6f3751c0916edd0fec4be767b833ac1656b30ae (patch)
treeccbd13fb4d96d2a01f0a322c55992f26858aec31
parent177fc1531455a29b5b5bec6062f2b75e7decbc9c (diff)
download1989-dawn-of-freedom-b6f3751c0916edd0fec4be767b833ac1656b30ae.tar.gz
Update handling of Securitate
-rw-r--r--events.txt4
-rw-r--r--rules.js13
2 files changed, 15 insertions, 2 deletions
diff --git a/events.txt b/events.txt
index 01102f4..bbe4220 100644
--- a/events.txt
+++ b/events.txt
@@ -525,7 +525,11 @@ endif
CARD 70 - Securitate*
# The Democrat must reveal his battlecards at the start of the Power Struggles in Romania. This event remains in effect until cancelled by Army Backs the Revolution event.
+if !game.persistent_events.includes(C_ARMY_BACKS_REVOLUTION)
securitate
+else
+army_block
+endif
CARD 71 - Kiss of Death*
diff --git a/rules.js b/rules.js
index 95c8530..189abb3 100644
--- a/rules.js
+++ b/rules.js
@@ -323,7 +323,7 @@ function start_game() {
// Set variable event cards where event is playable at start of game
- game.playable_cards = [C_THE_WALL, C_GORBACHEV_CHARMS_THE_WEST, C_HONECKER, C_COMMON_EUROPEAN_HOME, C_SECURITATE, C_MALTA_SUMMIT]
+ game.playable_cards = [C_THE_WALL, C_GORBACHEV_CHARMS_THE_WEST, C_HONECKER, C_COMMON_EUROPEAN_HOME, C_MALTA_SUMMIT]
draw_cards(game.strategy_deck, game.democrat_hand, game.communist_hand, game.dem_hand_limit, game.com_hand_limit)
@@ -4633,12 +4633,17 @@ function vm_army_backs_revolution() {
if (game.persistent_events.includes(C_SECURITATE)) {
permanently_remove(C_SECURITATE)
}
- game.playable_cards = game.playable_cards.filter(n => n !== C_SECURITATE)
add_to_persistent_events(C_ARMY_BACKS_REVOLUTION)
logi(`C${C_SECURITATE} no longer has any effect`)
vm_next()
}
+function vm_army_block() {
+ permanently_remove(C_SECURITATE)
+ logi(`Has no effect after C${C_ARMY_BACKS_REVOLUTION}`)
+ vm_next()
+}
+
function vm_austria_hungary_border_reopened() {
add_to_persistent_events(C_AUSTRIA_HUNGARY_BORDER_REOPENED)
logi(`For the remainder of the turn, cards played by the Democrat have +1 Ops value if all Operations Points are used in East Germany`)
@@ -8479,7 +8484,11 @@ CODE[69] = [ // Systematization*
]
CODE[70] = [ // Securitate*
+ [ vm_if, ()=>!game.persistent_events.includes(C_ARMY_BACKS_REVOLUTION) ],
[ vm_securitate ],
+ [ vm_else ],
+ [ vm_army_block ],
+ [ vm_endif ],
[ vm_return ],
]