From 29086f24da108c7555de15cf59e71bd0e1a00c16 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 2 Aug 2024 15:40:58 +0200 Subject: v2: monument --- info/playtest.html | 3 ++- rules.js | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/info/playtest.html b/info/playtest.html index 6696d69..38214e8 100644 --- a/info/playtest.html +++ b/info/playtest.html @@ -51,7 +51,8 @@ Add 3 new Improvement Building options. (Requires new tokens. Needs playtestin Port -- You may move one army per turn from your governed province with a Port to any other Roman province for 1 Military influence.
  • -Monument -- If an opponent successfully places a new Governor in a province you govern with a Monument, remove the Monument and place 1 Mob token in that province. +Monument -- +Any time your Governor is removed from a province with a Monument, remove the Monument and place 1 Mob token in that province.
  • Temple -- During your Crisis phase you may re-roll the Crisis dice once for each Temple in a province you govern. 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() { -- cgit v1.2.3