diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2007-05-29 01:02:16 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2007-05-29 01:02:16 +0000 |
| commit | 9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7 (patch) | |
| tree | 8f200e87bc1fa3f1bbd2152dad0e62924c33ae12 /pokemod/CoinList.cpp | |
| parent | dc9682d704118840457aa3434711eba6e003eafc (diff) | |
| download | sigen-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/CoinList.cpp')
| -rw-r--r-- | pokemod/CoinList.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pokemod/CoinList.cpp b/pokemod/CoinList.cpp index ce675e66..e2919f8f 100644 --- a/pokemod/CoinList.cpp +++ b/pokemod/CoinList.cpp @@ -54,7 +54,7 @@ void PokeGen::PokeMod::CoinList::Validate() LogValidateStart("CoinList", id, name);
if (name == "")
{
- LogVarEmpty("CoinList", id, "name", name);
+ LogVarNotSet("CoinList", id, "name");
isValid = false;
}
if (GetCoinItemCount())
@@ -131,7 +131,7 @@ void PokeGen::PokeMod::CoinList::ExportIni(std::ofstream &fout) const exCoinList.AddField("name", name);
exCoinList.AddField("value", value);
exCoinList.Export(fout);
- for (std::vector<CoinItem>::iterator i = effects.begin(); i != effects.end(); ++i)
+ for (std::vector<CoinItem>::iterator i = items.begin(); i != items.end(); ++i)
i->ExportIni(fout, name);
LogExportOver("CoinList", id, name);
}
@@ -163,7 +163,7 @@ unsigned PokeGen::PokeMod::CoinList::GetValue() const PokeGen::PokeMod::CoinItem *PokeGen::PokeMod::CoinList::GetCoinItem(const unsigned _id)
{
LogSubmoduleFetch("CoinList", id, "item", _id, name);
- for (unsigned i = 0; i < GetAbilityEffectCount(); ++i)
+ for (unsigned i = 0; i < GetCoinItemCount(); ++i)
{
if (items[i].GetId() == _id)
return &items[i];
@@ -197,12 +197,12 @@ void PokeGen::PokeMod::CoinList::NewCoinItem(Ini *const ini) void PokeGen::PokeMod::CoinList::DeleteCoinItem(const unsigned _id)
{
LogSubmoduleRemoveStart("CoinList", id, "item", _id, name);
- for (std::vector<AbilityEffect>::iterator i = items.begin(); i != items.end(); ++i)
+ for (std::vector<CoinItem>::iterator i = items.begin(); i != items.end(); ++i)
{
if (i->GetId() == _id)
{
LogSubmoduleRemoved("CoinList", id, "item", _id, name);
- effects.erase(i);
+ items.erase(i);
}
}
LogSubmoduleRemoveFail("CoinList", id, "item", _id, name);
|
