summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-08-02 15:40:58 +0200
committerTor Andersson <tor@ccxvii.net>2024-08-05 20:46:48 +0200
commit29086f24da108c7555de15cf59e71bd0e1a00c16 (patch)
tree73e89d488c9d5b08cfdbf78462ca9371f0fd9818 /rules.js
parent49b08c3a8d0af28317f5ad7a93142be201e4cef6 (diff)
downloadtime-of-crisis-29086f24da108c7555de15cf59e71bd0e1a00c16.tar.gz
v2: monument
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 5bb85bc..8dfd0d0 100644
--- a/rules.js
+++ b/rules.js
@@ -2444,6 +2444,8 @@ function remove_governor(where, verbose) {
remove_quaestor(where)
remove_emperor_token(where)
+ trigger_monument(where)
+
// NOTE: Automated removal because it can be called from too many places.
// This should be a very rare occurence, so let's not worry about it.
if (is_seat_of_power(where))
@@ -2753,6 +2755,16 @@ function goto_place_governor_success() {
}
}
+// IMPROVEMENT: MONUMENT
+
+function trigger_monument(where) {
+ if (has_monument(where)) {
+ log("Monument to Mob.")
+ remove_monument(where)
+ set_mobs(where, get_mobs(where) + 1)
+ }
+}
+
// CARD: PRAETORIAN GUARD
function can_play_praetorian_guard() {