summaryrefslogtreecommitdiffstats
path: root/pokemod/CoinItem.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-06-04 01:35:20 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-06-04 01:35:20 +0000
commit3595239f08f2bc1df32ef22ed6de9bde10ca3384 (patch)
treed9962c84e3a1f19e2da422f9bb49f65c21ada9f6 /pokemod/CoinItem.cpp
parentc9afda3ab74614fb36986f96b7972c082f275eca (diff)
downloadsigen-3595239f08f2bc1df32ef22ed6de9bde10ca3384.tar.gz
sigen-3595239f08f2bc1df32ef22ed6de9bde10ca3384.tar.xz
sigen-3595239f08f2bc1df32ef22ed6de9bde10ca3384.zip
Style cleanup, minor Matrix fixes, duplication validations, Pokemod methods
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@19 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/CoinItem.cpp')
-rw-r--r--pokemod/CoinItem.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/pokemod/CoinItem.cpp b/pokemod/CoinItem.cpp
index db7e560d..726234bd 100644
--- a/pokemod/CoinItem.cpp
+++ b/pokemod/CoinItem.cpp
@@ -26,10 +26,10 @@
extern PokeGen::PokeMod::Pokemod curPokeMod;
PokeGen::PokeMod::CoinItem::CoinItem(const unsigned _id) :
- type(CIT_ITEM),
- object(UINT_MAX),
- amount(1),
- cost(0)
+ type(CIT_ITEM),
+ object(UINT_MAX),
+ amount(1),
+ cost(0)
{
LogCtor("CoinItem", _id);
id = _id;
@@ -124,7 +124,6 @@ void PokeGen::PokeMod::CoinItem::ImportIni(Ini &ini, const unsigned _id)
if (_id == UINT_MAX)
{
ini.GetValue("id", id);
- // Was there an id associated with the element?
if (id == UINT_MAX)
LogIdNotFound("CoinItem");
}
@@ -140,10 +139,9 @@ void PokeGen::PokeMod::CoinItem::ImportIni(Ini &ini, const unsigned _id)
void PokeGen::PokeMod::CoinItem::ExportIni(std::ofstream &fout, const String &coinList) const
{
LogExportStart("CoinItem", id);
- // Make elements
- Ini exCoinItem(coinList + " CoinItem");
+ Ini exCoinItem("coinItem " + coinList);
exCoinItem.AddField("id", id);
- exCoinItem.AddField("type",type);
+ exCoinItem.AddField("type", type);
exCoinItem.AddField("object", object);
exCoinItem.AddField("amount", amount);
exCoinItem.AddField("cost", cost);