From 65cc463f1d91fe99acf1c4dd9bce7e0038593022 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 3 Jul 2007 04:20:36 +0000 Subject: Fixed Logging, minor fixes, got rid of NatureEffect, and started migration from wxGTK to Qt git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@22 6ecfd1a5-f3ed-3746-8530-beee90d26b22 --- pokemod/MapEffect.cpp | 82 --------------------------------------------------- 1 file changed, 82 deletions(-) (limited to 'pokemod/MapEffect.cpp') diff --git a/pokemod/MapEffect.cpp b/pokemod/MapEffect.cpp index bcafce8d..92d8089e 100644 --- a/pokemod/MapEffect.cpp +++ b/pokemod/MapEffect.cpp @@ -121,88 +121,6 @@ void PokeGen::PokeMod::MapEffect::Validate() LogValidateOver("MapEffect", id, isValid, name); } -#ifdef PG_DEBUG_WINDOW -void PokeGen::PokeMod::MapEffect::Validate(const wxListBox &output) -{ - LogValidateStart("MapEffect", id, name); - if (name == "") - { - LogVarNotSet("MapEffect", id, "name"); - output.Append(ConsoleLogVarNotSet("MapEffect", id, "name")); - isValid = false; - } - if (FV_END <= existFlag.GetStatus()) - { - LogVarNotValid("MapEffect", id, "existFlag value", name); - output.Append(ConsoleLogVarNotValid("MapEffect", id, "existFlag value", name)); - isValid = false; - } - if (!skin.DoesExist()) - { - if (skin == "") - { - LogVarNotSet("MapEffect", id, "skin", name); - output.Append(ConsoleLogVarNotSet("MapEffect", id, "skin", name)); - } - else - { - LogVarNotValid("MapEffect", id, "skin", name); - output.Append(ConsoleLogVarNotValid("MapEffect", id, "skin", name)); - } - isValid = false; - } - if (MAPE_END <= effect) - { - LogVarNotValid("MapEffect", id, "effect", name); - output.Append(ConsoleLogVarNotValid("MapEffect", id, "effect", name)); - isValid = false; - } - else - { - switch (effect) - { - case MAPE_ITEM: - if (!pokemod->GetItem(val2)) - { - LogVarNotValid("MapEffect", id, "val2", name); - output.Append(ConsoleLogVarNotValid("MapEffect", id, "val2", name)); - isValid = false; - } - break; - case MAPE_PC: - if (PCT_END <= val2) - { - LogVarNotValid("MapEffect", id, "val2", name); - output.Append(ConsoleLogVarNotValid("MapEffect", id, "val2", name)); - isValid = false; - } - break; - case MAPE_STRENGTH_BLOCK: - case MAPE_BUTTON: - if (FV_END <= val2) - { - LogVarNotValid("MapEffect", id, "val2", name); - output.Append(ConsoleLogVarNotValid("MapEffect", id, "val2", name)); - isValid = false; - } - } - } - if (DIR_END <= direction) - { - LogVarNotValid("MapEffect", id, "direction", name); - output.Append(ConsoleLogVarNotValid("MapEffect", id, "direction", name)); - isValid = false; - } - if (!pokemod->GetDialog(dialog)) - { - LogVarNotValid("MapEffect", id, "dialog", name); - output.Append(ConsoleLogVarNotValid("MapEffect", id, "dialog", name)); - isValid = false; - } - LogValidateOver("MapEffect", id, isValid, name); -} -#endif - void PokeGen::PokeMod::MapEffect::ImportIni(Ini &ini, const unsigned _id) { LogImportStart("MapEffect"); -- cgit