diff options
author | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-15 16:01:40 +0200 |
---|---|---|
committer | Mischa Untaga <99098079+MischaU8@users.noreply.github.com> | 2023-10-15 16:01:40 +0200 |
commit | 6f9bf30a175e8239614b75ef790dbaf8afec5ae4 (patch) | |
tree | 30e48415bf5d69f0a2aa2936f370875f577cad28 | |
parent | 2803a10520af8b17d1431764884a963222023ce2 (diff) | |
download | algeria-6f9bf30a175e8239614b75ef790dbaf8afec5ae4.tar.gz |
prevent Gov from losing by playing mission when cant pay the cost
-rw-r--r-- | rules.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3190,16 +3190,16 @@ states.gov_operations = { if (is_flush_unit(u)) { view.actions.flush = 1 } - if (game.gov_psl >= GOV_INTELLIGENCE_COST && is_intelligence_unit(u)) { + if (game.gov_psl > GOV_INTELLIGENCE_COST && is_intelligence_unit(u)) { view.actions.intelligence = 1 } - if (game.gov_psl >= GOV_CIVIL_AFFAIRS_COST && is_civil_affairs_unit(u)) { + if (game.gov_psl > GOV_CIVIL_AFFAIRS_COST && is_civil_affairs_unit(u)) { view.actions.civil_affairs = 1 } - if (game.gov_psl >= GOV_SUPPRESSION_COST && is_suppression_unit(u)) { + if (game.gov_psl > GOV_SUPPRESSION_COST && is_suppression_unit(u)) { view.actions.suppression = 1 } - if (game.gov_psl >= GOV_POPULATION_RESETTLEMENT_COST && is_population_resettlement_unit(u)) { + if (game.gov_psl > GOV_POPULATION_RESETTLEMENT_COST && is_population_resettlement_unit(u)) { view.actions.population_resettlement = 1 } }) |