diff options
author | Hop311 <Hop3114@gmail.com> | 2024-10-20 23:02:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-20 23:02:32 +0200 |
commit | c88cf59997529cbca008f9a2b629822de9deaa2a (patch) | |
tree | d20b5b8545c94cec240e522275904a91b29f3721 /src/openvic-simulation | |
parent | 6527f832a5e14a28fc1f5b85628541038eb90141 (diff) | |
parent | 83e4845ccfb0eb8caa813b445c4acffbb199b614 (diff) |
Merge pull request #209 from OpenVicProject/modifier-excluded-targets-fix
Change default `excluded_targets` argument for `ModifierSum::add_modifier[_nullcheck]` from `ALL_TARGETS` to `NO_TARGETS`
Diffstat (limited to 'src/openvic-simulation')
-rw-r--r-- | src/openvic-simulation/modifier/ModifierSum.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openvic-simulation/modifier/ModifierSum.hpp b/src/openvic-simulation/modifier/ModifierSum.hpp index 858ca71..843fcfc 100644 --- a/src/openvic-simulation/modifier/ModifierSum.hpp +++ b/src/openvic-simulation/modifier/ModifierSum.hpp @@ -61,11 +61,11 @@ namespace OpenVic { void add_modifier( Modifier const& modifier, modifier_source_t const& source, fixed_point_t multiplier = fixed_point_t::_1(), - ModifierEffect::target_t excluded_targets = ModifierEffect::target_t::ALL_TARGETS + ModifierEffect::target_t excluded_targets = ModifierEffect::target_t::NO_TARGETS ); void add_modifier_nullcheck( Modifier const* modifier, modifier_source_t const& source, fixed_point_t multiplier = fixed_point_t::_1(), - ModifierEffect::target_t excluded_targets = ModifierEffect::target_t::ALL_TARGETS + ModifierEffect::target_t excluded_targets = ModifierEffect::target_t::NO_TARGETS ); void add_modifier_sum(ModifierSum const& modifier_sum); void add_modifier_sum_exclude_targets(ModifierSum const& modifier_sum, ModifierEffect::target_t excluded_targets); |