summaryrefslogtreecommitdiffstats
path: root/pokemod/MapWildList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/MapWildList.cpp')
-rw-r--r--pokemod/MapWildList.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/pokemod/MapWildList.cpp b/pokemod/MapWildList.cpp
index 3c2f25f4..e9e7b71c 100644
--- a/pokemod/MapWildList.cpp
+++ b/pokemod/MapWildList.cpp
@@ -109,6 +109,7 @@ void MapWildList::setControl(const int control)
}
m_control = control;
m_value = INT_MAX;
+ emit(changed());
}
void MapWildList::setValue(const int value)
@@ -127,6 +128,7 @@ void MapWildList::setValue(const int value)
if ((effect->effect() == ItemEffect::E_Fish) && (effect->value2() == value))
{
m_value = value;
+ emit(changed());
return;
}
}
@@ -144,10 +146,16 @@ void MapWildList::setTime(const int time, const bool state)
if (state)
{
if (!m_time.contains(time))
+ {
m_time.append(time);
+ emit(changed());
+ }
}
else
+ {
m_time.removeAll(time);
+ emit(changed());
+ }
}
void MapWildList::setScope(const int scope)
@@ -163,6 +171,7 @@ void MapWildList::setScope(const int scope)
if ((effect->effect() == ItemEffect::E_Scope) && (effect->value2() == scope))
{
m_scope = scope;
+ emit(changed());
return;
}
}
@@ -170,7 +179,10 @@ void MapWildList::setScope(const int scope)
emit(error(bounds("value")));
}
else
+ {
m_scope = scope;
+ emit(changed());
+ }
}
int MapWildList::control() const