summaryrefslogtreecommitdiffstats
path: root/pokemod/MoveEffect.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2007-05-29 01:02:16 +0000
committerBen Boeckel <MathStuf@gmail.com>2007-05-29 01:02:16 +0000
commit9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7 (patch)
tree8f200e87bc1fa3f1bbd2152dad0e62924c33ae12 /pokemod/MoveEffect.cpp
parentdc9682d704118840457aa3434711eba6e003eafc (diff)
downloadsigen-9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7.tar.gz
sigen-9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7.tar.xz
sigen-9e28e6ecd358a9801ad25914d3e8cca7b6d7f4f7.zip
Lots of minor fixes, added TODO file, Move methods
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@16 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/MoveEffect.cpp')
-rw-r--r--pokemod/MoveEffect.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/pokemod/MoveEffect.cpp b/pokemod/MoveEffect.cpp
index aea930be..1a778405 100644
--- a/pokemod/MoveEffect.cpp
+++ b/pokemod/MoveEffect.cpp
@@ -84,7 +84,7 @@ void PokeGen::PokeMod::MoveEffect::ImportIni(Ini &ini, const unsigned _id)
void PokeGen::PokeMod::MoveEffect::ExportIni(std::ofstream &fout, const String &move) const
{
- LogExportStart("MoveEffect", id, name);
+ LogExportStart("MoveEffect", id);
// Make elements
Ini exMoveEffect(move + " moveEffect");
exMoveEffect.AddField("id", id);
@@ -94,7 +94,7 @@ void PokeGen::PokeMod::MoveEffect::ExportIni(std::ofstream &fout, const String &
exMoveEffect.AddField("val1", val1);
exMoveEffect.AddField("val2", val2);
exMoveEffect.Export(fout);
- LogExportOver("MoveEffect", id, name);
+ LogExportOver("MoveEffect", id);
}
void PokeGen::PokeMod::MoveEffect::SetChance(const Frac &c)
@@ -150,10 +150,10 @@ void PokeGen::PokeMod::MoveEffect::SetVal2(const int v2)
val2 = v2;
}
-void PokeGen::PokeMod::MoveEffect::SetVal2(const PMString &v2)
+void PokeGen::PokeMod::MoveEffect::SetVal2(const String &v2)
{
PMLog("MoveEffect: Setting val2", PM_DEBUG_DEBUG);
- val2 = v2;
+ val2 = 0;
}
PokeGen::PokeMod::Frac PokeGen::PokeMod::MoveEffect::GetChance() const
@@ -201,5 +201,5 @@ int PokeGen::PokeMod::MoveEffect::GetVal2() const
PokeGen::PokeMod::String PokeGen::PokeMod::MoveEffect::GetVal2String() const
{
LogFetchVar("MoveEffect", id, "val2 string", val2);
- return val2;
+ return "";
}