diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-05 11:49:45 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-07 19:05:52 +0200 |
commit | 01e1c6cea648be6807caf89f19ac56d8278b8d28 (patch) | |
tree | 755ff66a084ba6aafd116ea787020f13afd7738b /rules.js | |
parent | 3fd0d79b656c2edd523093e098062e67cb14e60e (diff) | |
download | time-of-crisis-01e1c6cea648be6807caf89f19ac56d8278b8d28.tar.gz |
Fix Mobile Vulgus cost.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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)) |