aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/country
diff options
context:
space:
mode:
author wvpm <24685035+wvpm@users.noreply.github.com>2024-10-21 14:09:40 +0200
committer wvpm <24685035+wvpm@users.noreply.github.com>2024-10-26 16:49:08 +0200
commit3daebe5db14949f55be2c50220323138260dbaea (patch)
tree46039d0eb5d630cf000e94aed584aebaaa8f3f9b /src/openvic-simulation/country
parentc88cf59997529cbca008f9a2b629822de9deaa2a (diff)
contextual modifier parsingcontextual_modifier_parsing
Diffstat (limited to 'src/openvic-simulation/country')
-rw-r--r--src/openvic-simulation/country/CountryInstance.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/openvic-simulation/country/CountryInstance.cpp b/src/openvic-simulation/country/CountryInstance.cpp
index 417ca0a..6e998e4 100644
--- a/src/openvic-simulation/country/CountryInstance.cpp
+++ b/src/openvic-simulation/country/CountryInstance.cpp
@@ -951,29 +951,29 @@ void CountryInstance::update_modifier_sum(Date today, StaticModifierCache const&
});
// Add static modifiers
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_base_modifier(), country_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_base_modifier(), country_source);
switch (country_status) {
using enum country_status_t;
case COUNTRY_STATUS_GREAT_POWER:
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_great_power(), country_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_great_power(), country_source);
break;
case COUNTRY_STATUS_SECONDARY_POWER:
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_secondary_power(), country_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_secondary_power(), country_source);
break;
case COUNTRY_STATUS_CIVILISED:
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_civilised(), country_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_civilised(), country_source);
break;
default:
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_uncivilised(), country_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_uncivilised(), country_source);
}
if (is_disarmed()) {
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_disarming(), country_source);
+ modifier_sum.add_modifier(static_modifier_cache.get_disarming(), country_source);
}
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_war_exhaustion(), country_source, war_exhaustion);
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_infamy(), country_source, infamy);
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_literacy(), country_source, national_literacy);
- modifier_sum.add_modifier_nullcheck(static_modifier_cache.get_plurality(), country_source, plurality);
+ modifier_sum.add_modifier(static_modifier_cache.get_war_exhaustion(), country_source, war_exhaustion);
+ modifier_sum.add_modifier(static_modifier_cache.get_infamy(), country_source, infamy);
+ modifier_sum.add_modifier(static_modifier_cache.get_literacy(), country_source, national_literacy);
+ modifier_sum.add_modifier(static_modifier_cache.get_plurality(), country_source, plurality);
// TODO - difficulty modifiers, war, peace, debt_default_to, bad_debter, generalised_debt_default,
// total_occupation, total_blockaded, in_bankrupcy