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, 6 insertions, 6 deletions
diff --git a/pokemod/MapWildList.cpp b/pokemod/MapWildList.cpp
index 07cd46ec..8679410f 100644
--- a/pokemod/MapWildList.cpp
+++ b/pokemod/MapWildList.cpp
@@ -161,7 +161,7 @@ QDomElement MapWildList::save() const
void MapWildList::setControl(const int control) throw(BoundsException)
{
if (End <= control)
- throw(BoundsException(className(), "control"));
+ error<BoundsException>("control");
m_control = control;
m_value = INT_MAX;
}
@@ -169,7 +169,7 @@ void MapWildList::setControl(const int control) throw(BoundsException)
void MapWildList::setValue(const int value) throw(Exception)
{
if (m_control != Fishing)
- throw(UnusedException(className(), "value"));
+ error<UnusedException>("value");
bool ok = false;
for (int i = 0; (i < pokemod()->itemCount()) && !ok; ++i)
{
@@ -181,14 +181,14 @@ void MapWildList::setValue(const int value) throw(Exception)
}
}
if (!ok)
- throw(BoundsException(className(), "value"));
+ error<BoundsException>("value");
m_value = value;
}
void MapWildList::setTime(const int time, const bool state) throw(BoundsException)
{
if (pokemod()->timeIndex(time) == INT_MAX)
- throw(BoundsException(className(), "time"));
+ error<BoundsException>("time");
if (state)
{
if (!m_times.contains(time))
@@ -213,7 +213,7 @@ void MapWildList::setScope(const int scope) throw(BoundsException)
}
}
if (!ok)
- throw(BoundsException(className(), "scope"));
+ error<BoundsException>("scope");
}
m_scope = scope;
}
@@ -241,7 +241,7 @@ int MapWildList::scope() const
const MapWildListEncounter* MapWildList::encounter(const int index) const throw(IndexException)
{
if (encounterCount() <= index)
- error<IndexException>("encounter");
+ warning<IndexException>("encounter");
return m_encounters.at(index);
}