From 3595239f08f2bc1df32ef22ed6de9bde10ca3384 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Mon, 4 Jun 2007 01:35:20 +0000 Subject: 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 --- pokemod/CoinItem.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'pokemod/CoinItem.cpp') 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); -- cgit