aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/modifier
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-10-20 22:51:03 +0200
committer hop311 <hop3114@gmail.com>2024-10-20 22:51:03 +0200
commit83e4845ccfb0eb8caa813b445c4acffbb199b614 (patch)
treed20b5b8545c94cec240e522275904a91b29f3721 /src/openvic-simulation/modifier
parent6527f832a5e14a28fc1f5b85628541038eb90141 (diff)
Change default `excluded_targets` argument for `ModifierSum::add_modifier[_nullcheck]` from `ALL_TARGETS` to `NO_TARGETS`modifier-excluded-targets-fix
Diffstat (limited to 'src/openvic-simulation/modifier')
-rw-r--r--src/openvic-simulation/modifier/ModifierSum.hpp4
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);