summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-20 16:57:02 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-20 16:57:02 +0100
commit0636988083eeae4ed7eb95a4d6961dab35accf76 (patch)
treee3b7e8ed8474bb4389ed8d7ff931a3a49dd0db2f /rules.js
parent20be9a3c339b79774771d0a0317c1bbf58adc617 (diff)
download1989-dawn-of-freedom-0636988083eeae4ed7eb95a4d6961dab35accf76.tar.gz
Fix for New Years Eve Party
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index 4f5b355..e43e5b0 100644
--- a/rules.js
+++ b/rules.js
@@ -1811,35 +1811,36 @@ states.new_years_eve_party = {
},
east_germany() {
push_undo()
- game.pwr_struggle_in = 'East_Germany'
+ game.vm_event = 42
goto_vm(42)
},
poland() {
push_undo()
- game.pwr_struggle_in = 'Poland'
+ game.vm_event = 22
goto_vm(22)
},
czechoslovakia() {
push_undo()
- game.pwr_struggle_in = 'Czechoslovakia'
+ game.vm_event = 55
goto_vm(55)
},
hungary() {
push_undo()
- game.pwr_struggle_in = 'Hungary'
+ game.vm_event = 23
goto_vm(23)
},
romania() {
push_undo()
- game.pwr_struggle_in = 'Romania'
+ game.vm_event = 95
goto_vm(95)
},
bulgaria () {
push_undo()
- game.pwr_struggle_in = 'Bulgaria'
+ game.vm_event = 43
goto_vm(43)
},
pass() {
+ push_undo()
if (game.vp > 0) {
goto_game_over(DEM, `New Year's Eve Party: ${DEM} wins on Victory Point Track!`)
} else if (game.vp < 0) {