From 6f9bf30a175e8239614b75ef790dbaf8afec5ae4 Mon Sep 17 00:00:00 2001 From: Mischa Untaga <99098079+MischaU8@users.noreply.github.com> Date: Sun, 15 Oct 2023 16:01:40 +0200 Subject: prevent Gov from losing by playing mission when cant pay the cost --- rules.js | 8 ++++---- 1 file 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 } }) -- cgit v1.2.3