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/modifier/ModifierEffect.hpp | |
parent | c88cf59997529cbca008f9a2b629822de9deaa2a (diff) | |
parent | 3daebe5db14949f55be2c50220323138260dbaea (diff) |
Merge pull request #210 from OpenVicProject/contextual_modifier_parsing
Contextual modifier parsing
Diffstat (limited to 'src/openvic-simulation/modifier/ModifierEffect.hpp')
-rw-r--r-- | src/openvic-simulation/modifier/ModifierEffect.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/openvic-simulation/modifier/ModifierEffect.hpp b/src/openvic-simulation/modifier/ModifierEffect.hpp index ff82acf..b6164e0 100644 --- a/src/openvic-simulation/modifier/ModifierEffect.hpp +++ b/src/openvic-simulation/modifier/ModifierEffect.hpp @@ -38,6 +38,7 @@ namespace OpenVic { * If false, the colours will be switced. */ const bool PROPERTY_CUSTOM_PREFIX(positive_good, is); + const bool PROPERTY_CUSTOM_PREFIX(no_effect, has); const format_t PROPERTY(format); const target_t PROPERTY(targets); std::string PROPERTY(localisation_key); @@ -45,8 +46,8 @@ namespace OpenVic { // TODO - format/precision, e.g. 80% vs 0.8 vs 0.800, 2 vs 2.0 vs 200% ModifierEffect( - std::string_view new_identifier, bool new_positive_good, format_t new_format, target_t mew_targets, - std::string_view new_localisation_key + std::string_view new_identifier, bool new_is_positive_good, format_t new_format, target_t mew_targets, + std::string_view new_localisation_key, bool new_has_no_effect ); public: |