summaryrefslogtreecommitdiffstats
path: root/pokemod/ItemEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/ItemEffect.cpp')
-rw-r--r--pokemod/ItemEffect.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/pokemod/ItemEffect.cpp b/pokemod/ItemEffect.cpp
index 30c60f4f..895e101b 100644
--- a/pokemod/ItemEffect.cpp
+++ b/pokemod/ItemEffect.cpp
@@ -145,16 +145,19 @@ void ItemEffect::setOverworld(const bool overworld)
break;
}
m_overworld = overworld;
+ emit(changed());
}
void ItemEffect::setBattle(const bool battle)
{
m_battle = battle;
+ emit(changed());
}
void ItemEffect::setHeld(const bool held)
{
m_held = held;
+ emit(changed());
}
void ItemEffect::setEffect(const int effect)
@@ -203,6 +206,7 @@ void ItemEffect::setEffect(const int effect)
m_value2 = INT_MAX;
m_value3 = INT_MAX;
m_value4.set(1, 1);
+ emit(changed());
}
void ItemEffect::setValue1(const int value1)
@@ -283,6 +287,7 @@ void ItemEffect::setValue1(const int value1)
return;
}
m_value1 = value1;
+ emit(changed());
}
void ItemEffect::setValue2(const int value2)
@@ -397,6 +402,7 @@ void ItemEffect::setValue2(const int value2)
return;
}
m_value2 = value2;
+ emit(changed());
}
void ItemEffect::setValue3(const int value3)
@@ -480,6 +486,7 @@ void ItemEffect::setValue3(const int value3)
return;
}
m_value3 = value3;
+ emit(changed());
}
void ItemEffect::setValue4(const Fraction& value4)
@@ -535,6 +542,7 @@ void ItemEffect::setValue4(const Fraction& value4)
break;
}
m_value4 = value4;
+ emit(changed());
}
bool ItemEffect::overworld() const