diff options
Diffstat (limited to 'pokemod/AbilityEffect.cpp')
| -rw-r--r-- | pokemod/AbilityEffect.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pokemod/AbilityEffect.cpp b/pokemod/AbilityEffect.cpp index 828e5ae3..ecac1af6 100644 --- a/pokemod/AbilityEffect.cpp +++ b/pokemod/AbilityEffect.cpp @@ -111,6 +111,7 @@ void AbilityEffect::setChance(const Fraction& chance) return; } m_chance = chance; + emit(changed()); } void AbilityEffect::setEffect(const int effect) @@ -124,6 +125,7 @@ void AbilityEffect::setEffect(const int effect) m_value1 = INT_MAX; m_value2 = INT_MAX; m_value3 = 0; + emit(changed()); } void AbilityEffect::setValue1(const int value1) @@ -184,6 +186,7 @@ void AbilityEffect::setValue1(const int value1) return; } m_value1 = value1; + emit(changed()); } void AbilityEffect::setValue2(const int value2) @@ -224,6 +227,7 @@ void AbilityEffect::setValue2(const int value2) return; } m_value2 = value2; + emit(changed()); } void AbilityEffect::setValue3(const int value3) @@ -256,6 +260,7 @@ void AbilityEffect::setValue3(const int value3) return; } m_value3 = value3; + emit(changed()); } void AbilityEffect::setTrigger(const int trigger) @@ -268,6 +273,7 @@ void AbilityEffect::setTrigger(const int trigger) m_trigger = trigger; m_triggerValue1 = INT_MAX; m_triggerValue2.set(1, 1); + emit(changed()); } void AbilityEffect::setTriggerValue1(const int triggerValue1) @@ -314,6 +320,7 @@ void AbilityEffect::setTriggerValue1(const int triggerValue1) return; } m_triggerValue1 = triggerValue1; + emit(changed()); } void AbilityEffect::setTriggerValue2(const Fraction& triggerValue2) @@ -324,6 +331,7 @@ void AbilityEffect::setTriggerValue2(const Fraction& triggerValue2) return; } m_triggerValue2 = triggerValue2; + emit(changed()); } Fraction AbilityEffect::chance() const |
