diff options
Diffstat (limited to 'pokemod/MoveEffect.cpp')
| -rw-r--r-- | pokemod/MoveEffect.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pokemod/MoveEffect.cpp b/pokemod/MoveEffect.cpp index 37cb51fc..13d2b7a2 100644 --- a/pokemod/MoveEffect.cpp +++ b/pokemod/MoveEffect.cpp @@ -94,6 +94,7 @@ void MoveEffect::setChance(const Fraction& chance) return; } m_chance = chance; + emit(changed()); } void MoveEffect::setEffect(const int effect) @@ -108,6 +109,7 @@ void MoveEffect::setEffect(const int effect) m_value2 = INT_MAX; m_value3 = 0; m_value4.set(1, 1); + emit(changed()); } void MoveEffect::setValue1(const int value1) @@ -156,6 +158,7 @@ void MoveEffect::setValue1(const int value1) return; } m_value1 = value1; + emit(changed()); } void MoveEffect::setValue2(const int value2) @@ -174,6 +177,7 @@ void MoveEffect::setValue2(const int value2) return; } m_value2 = value2; + emit(changed()); } void MoveEffect::setValue3(const int value3) @@ -185,6 +189,7 @@ void MoveEffect::setValue3(const int value3) break; } m_value3 = value3; + emit(changed()); } void MoveEffect::setValue4(const Fraction& value4) @@ -195,6 +200,7 @@ void MoveEffect::setValue4(const Fraction& value4) return; } m_value4 = value4; + emit(changed()); } Fraction MoveEffect::chance() const |
