summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-15 16:01:40 +0200
committerMischa Untaga <99098079+MischaU8@users.noreply.github.com>2023-10-15 16:01:40 +0200
commit6f9bf30a175e8239614b75ef790dbaf8afec5ae4 (patch)
tree30e48415bf5d69f0a2aa2936f370875f577cad28
parent2803a10520af8b17d1431764884a963222023ce2 (diff)
downloadalgeria-6f9bf30a175e8239614b75ef790dbaf8afec5ae4.tar.gz
prevent Gov from losing by playing mission when cant pay the cost
-rw-r--r--rules.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 83a0d5c..abbdbb2 100644
--- a/rules.js
+++ b/rules.js
@@ -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
}
})