From 01e1c6cea648be6807caf89f19ac56d8278b8d28 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 5 Jul 2023 11:49:45 +0200 Subject: Fix Mobile Vulgus cost. --- rules.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 2a9a6ce..aa9b107 100644 --- a/rules.js +++ b/rules.js @@ -3363,7 +3363,7 @@ states.frumentarii = { function can_play_mobile_vulgus() { for (let where = 0; where < 12; ++where) { if (is_enemy_province(where)) { - let n = get_support(where) * 2 + count_units_in_capital(where) + let n = get_support(where) + count_units_in_capital(where) if (game.pip >= n) return true } @@ -3382,7 +3382,7 @@ states.mobile_vulgus_where = { view.color = POPULACE for (let where = 0; where < 12; ++where) { if (is_enemy_province(where)) { - let n = get_support(where) * 2 + count_units_in_capital(where) + let n = get_support(where) + count_units_in_capital(where) if (game.pip >= n) gen_action_region(where) } @@ -3399,7 +3399,7 @@ states.mobile_vulgus = { inactive: "Mobile Vulgus", prompt() { prompt("Mobile Vulgus: " + game.pip + " populace. Reduce support in " + REGION_NAME[game.where] + ".") - let n = get_support(game.where) * 2 + count_units_in_capital(game.where) + let n = get_support(game.where) + count_units_in_capital(game.where) if (game.pip >= n) gen_action_support(game.where, get_support(game.where) - 1) view.actions.done = 1 @@ -3407,7 +3407,7 @@ states.mobile_vulgus = { support() { push_undo() log("Reduce support level in %" + game.where + ".") - let n = get_support(game.where) * 2 + count_units_in_capital(game.where) + let n = get_support(game.where) + count_units_in_capital(game.where) spend_populace(n) reduce_support(game.where) if (is_neutral_province(game.where)) -- cgit v1.2.3