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/PokemonEvolution.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'pokemod/PokemonEvolution.cpp') diff --git a/pokemod/PokemonEvolution.cpp b/pokemod/PokemonEvolution.cpp index 92ef1a8c..cfc424db 100644 --- a/pokemod/PokemonEvolution.cpp +++ b/pokemod/PokemonEvolution.cpp @@ -26,11 +26,11 @@ extern PokeGen::PokeMod::Pokemod curPokeMod; PokeGen::PokeMod::PokemonEvolution::PokemonEvolution(const unsigned _id) : - species(UINT_MAX), - style(UINT_MAX), - level(0), - item(UINT_MAX), - happiness(0) + species(UINT_MAX), + style(UINT_MAX), + level(0), + item(UINT_MAX), + happiness(0) { LogCtor("PokemonEvolution", _id); id = _id; @@ -113,7 +113,6 @@ void PokeGen::PokeMod::PokemonEvolution::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("PokemonEvolution"); } @@ -130,8 +129,7 @@ void PokeGen::PokeMod::PokemonEvolution::ImportIni(Ini &ini, const unsigned _id) void PokeGen::PokeMod::PokemonEvolution::ExportIni(std::ofstream &fout, const String &pokemon) const { LogExportStart("PokemonEvolution", id); - // Make elements - Ini exPokemonEvolution(pokemon + " pokemonEvolution"); + Ini exPokemonEvolution("pokemonEvolution " + pokemon); exPokemonEvolution.AddField("id", id); exPokemonEvolution.AddField("species", species); exPokemonEvolution.AddField("style", style); -- cgit