diff options
author | wvpm <24685035+wvpm@users.noreply.github.com> | 2024-10-26 18:25:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-26 18:25:15 +0200 |
commit | 8d9ff3266439c6a94c35fdf0d8a0642a2cb34de3 (patch) | |
tree | 46039d0eb5d630cf000e94aed584aebaaa8f3f9b /src/openvic-simulation/country/CountryInstance.cpp | |
parent | c88cf59997529cbca008f9a2b629822de9deaa2a (diff) | |
parent | 3daebe5db14949f55be2c50220323138260dbaea (diff) |
Merge pull request #210 from OpenVicProject/contextual_modifier_parsing
Contextual modifier parsing
Diffstat (limited to 'src/openvic-simulation/country/CountryInstance.cpp')
-rw-r--r-- | src/openvic-simulation/country/CountryInstance.cpp | 20 |
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 |