summaryrefslogtreecommitdiffstats
path: root/pokemod/Item.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-05-29 01:02:16 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-05-29 01:02:16 +0000
commit9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7 (patch)
tree8f200e87bc1fa3f1bbd2152dad0e62924c33ae12 /pokemod/Item.cpp
parentdc9682d704118840457aa3434711eba6e003eafc (diff)
downloadsigen-9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7.tar.gz
sigen-9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7.tar.xz
sigen-9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7.zip
Lots of minor fixes, added TODO file, Move methods
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@16 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Item.cpp')
-rw-r--r--pokemod/Item.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/pokemod/Item.cpp b/pokemod/Item.cpp
index b0d526a0..7e31aa7b 100644
--- a/pokemod/Item.cpp
+++ b/pokemod/Item.cpp
@@ -42,7 +42,7 @@ PokeGen::PokeMod::Item::Item(Ini &ini, const unsigned _id)
LogCtorIni("Item", _id);
ImportIni(ini, _id);
if (id == UINT_MAX)
- LogIdError();
+ LogIdError("Item");
}
PokeGen::PokeMod::Item::~Item()
@@ -56,14 +56,12 @@ void PokeGen::PokeMod::Item::Validate()
LogValidateStart("Item", id, name);
if (name == "")
{
- LogVarEmpty("Item", id, "name");
- output.Append(ConsoleLogVarEmpty("Item", id, "name"));
+ LogVarNotSet("Item", id, "name");
isValid = false;
}
if (!curPokeMod.GetItemStorage(type))
{
- LogVarNotValid("Item", id, "type", type, name);
- output.Append(ConsoleLogVarNotValid("Item", id, "type", type, name));
+ LogVarNotValid("Item", id, "type", name);
isValid = false;
}
if (GetItemEffectCount())
@@ -78,7 +76,6 @@ void PokeGen::PokeMod::Item::Validate()
else
{
LogSubmoduleEmpty("Item", id, "effect", name);
- output.Append(ConsoleLogSubmoduleEmpty("Item", id, "effect", name));
isValid = false;
}
LogValidateOver("Item", id, isValid, name);
@@ -214,7 +211,7 @@ int PokeGen::PokeMod::Item::GetType() const
return type;
}
-PokeGen::PokeMod::String PokeGen::PokeMod::Item::GetType() const
+PokeGen::PokeMod::String PokeGen::PokeMod::Item::GetTypeString() const
{
LogFetchVar("Item", id, "type string", type, name);
if (ItemStorage *i = curPokeMod.GetItemStorage(type))