summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-03-24 16:06:24 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-03-24 16:06:24 -0400
commitfe961a6bf575703da23de8f7dfb628b5b573a646 (patch)
treea4a5e468e3d898729ba68ea3a56cd85ea085604f
parent39ab4ad27b182e132d9ce79f3089affef4c1ea94 (diff)
downloadvijayanagara-fe961a6bf575703da23de8f7dfb628b5b573a646.tar.gz
Adding undos to Event 25
-rw-r--r--rules.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index a06ea9e..f119c22 100644
--- a/rules.js
+++ b/rules.js
@@ -5577,14 +5577,17 @@ states.event_25 = {
gen_action_resources(game.current)
},
resources(f) {
+ push_undo()
add_resources(game.current, 3)
log_resources(game.current, 3)
vm_next()
},
tax() {
+ push_undo()
goto_tax()
},
trade() {
+ push_undo()
goto_trade()
}
}