diff options
Diffstat (limited to 'pokemod/Item.cpp')
| -rw-r--r-- | pokemod/Item.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pokemod/Item.cpp b/pokemod/Item.cpp index 43e7066b..57bba3eb 100644 --- a/pokemod/Item.cpp +++ b/pokemod/Item.cpp @@ -30,7 +30,7 @@ #include "Item.h" Item::Item(const Pokemod& par, const unsigned _id) : - Object(par, _id), + Object("Item", par, _id), name(""), sellable(false), type(UINT_MAX), @@ -40,13 +40,13 @@ Item::Item(const Pokemod& par, const unsigned _id) : } Item::Item(const Pokemod& par, const Item& i, const unsigned _id) : - Object(par, _id) + Object("Item", par, _id) { *this = i; } Item::Item(const Pokemod& par, const QString& fname, const unsigned _id) : - Object(par, _id) + Object("Item", par, _id) { load(fname, _id); } @@ -149,7 +149,7 @@ void Item::setSellable(const bool s) void Item::setType(const unsigned t) throw(BoundsException) { if (pokemod.getItemTypeIndex(t) == UINT_MAX) - throw(BoundsException("Item", "type")); + throw(BoundsException(className, "type")); type = t; } @@ -191,14 +191,14 @@ QString Item::getDescription() const const ItemEffect& Item::getEffect(const unsigned i) const throw(IndexException) { if (getEffectCount() <= i) - throw(IndexException("Item")); + throw(IndexException(className)); return effects.at(i); } ItemEffect& Item::getEffectByID(const unsigned i) throw(IndexException) { if (getEffectCount() <= i) - throw(IndexException("Item")); + throw(IndexException(className)); return effects[i]; } @@ -248,7 +248,7 @@ ItemEffect& Item::newEffect(const ItemEffect& e) void Item::deleteEffect(const unsigned i) throw(IndexException) { if (getEffectCount() <= i) - throw(IndexException("Item")); + throw(IndexException(className)); effects.removeAt(i); } |
