summaryrefslogtreecommitdiffstats
path: root/pokemod/MapEffect.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'pokemod/MapEffect.cpp')
-rw-r--r--pokemod/MapEffect.cpp82
1 files changed, 0 insertions, 82 deletions
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");