diff options
author | Hop311 <Hop3114@gmail.com> | 2024-01-12 20:44:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 20:44:55 +0100 |
commit | e79d3e0416e62883c697225b090d03abafc7bb30 (patch) | |
tree | db11a1c0c0829bb5af6135f855b2af3f6ea095be /src/openvic-simulation/economy/Good.cpp | |
parent | 6301a3e47a1a36dd926f7819e9c4c9244851fb0b (diff) | |
parent | 518ab7b436dcaa2e93eb06cdf9b1e0d17b2113ff (diff) |
Merge pull request #127 from OpenVicProject/national-focus-modifiers
Added NationalFocus ModifierEffects + bool variables
Diffstat (limited to 'src/openvic-simulation/economy/Good.cpp')
-rw-r--r-- | src/openvic-simulation/economy/Good.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/openvic-simulation/economy/Good.cpp b/src/openvic-simulation/economy/Good.cpp index 2170666..435d860 100644 --- a/src/openvic-simulation/economy/Good.cpp +++ b/src/openvic-simulation/economy/Good.cpp @@ -112,5 +112,9 @@ bool GoodManager::generate_modifiers(ModifierManager& modifier_manager) const { good_modifier("rgo_goods_throughput", true); good_modifier("rgo_size", true); + for (Good const& good : get_goods()) { + ret &= modifier_manager.add_modifier_effect(good.get_identifier(), true, ModifierEffect::format_t::PERCENTAGE_DECIMAL); + } + return ret; } |