summaryrefslogtreecommitdiffstats
path: root/pokemod/Rules.cpp
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-06-18 00:59:22 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-06-18 00:59:22 +0000
commit5319e90bf8ad9c0f2ee7bc7813bd204c2ce87b5d (patch)
tree15e9ddc5c0174ab2415d5a0b3c3b6dfd2194b4ac /pokemod/Rules.cpp
parentae13010d010b2c4d44c1812c3c6953f819372dee (diff)
[FIX] Fractions can now be polled for chances
[FIX] Added some stuff to TeamMember to be usable [FIX] Arena is no longer static [FIX] Rules no longer needs to know maxDV (depends on whether the special DV is split) [FIX] Hat no longer seeds the RNG; it's the apps job git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@209 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemod/Rules.cpp')
-rw-r--r--pokemod/Rules.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/pokemod/Rules.cpp b/pokemod/Rules.cpp
index a999cf1a..38bfe6ef 100644
--- a/pokemod/Rules.cpp
+++ b/pokemod/Rules.cpp
@@ -51,7 +51,6 @@ Pokemod::Rules::Rules(const Pokemod* parent) :
m_allowSwitchStyle(false),
m_specialSplit(false),
m_specialDVSplit(false),
- m_maxDVValue(0),
m_happiness(false),
m_happyFaintLoss(0),
m_happyLevelGain(0),
@@ -88,7 +87,6 @@ void Pokemod::Rules::validate()
TEST(setMaxLevel, maxLevel);
if (!m_maxMoney)
emit(warning("Player cannot carry any money"));
- TEST(setMaxDVValue, maxDVValue);
if (m_effortValuesAllowed)
{
TEST(setMaxEVPerStat, maxEVPerStat);
@@ -120,7 +118,6 @@ void Pokemod::Rules::load(const QDomElement& xml, const int /*id*/)
LOAD(bool, allowSwitchStyle);
LOAD(bool, specialSplit);
LOAD(bool, specialDVSplit);
- LOAD(int, maxDVValue);
LOAD(bool, happiness);
LOAD(int, happyFaintLoss);
LOAD(int, happyLevelGain);
@@ -154,7 +151,6 @@ QDomElement Pokemod::Rules::save() const
SAVE(bool, allowSwitchStyle);
SAVE(bool, specialSplit);
SAVE(bool, specialDVSplit);
- SAVE(int, maxDVValue);
SAVE(bool, happiness);
SAVE(int, happyFaintLoss);
SAVE(int, happyLevelGain);
@@ -311,16 +307,6 @@ void Pokemod::Rules::setSpecialDVSplit(const bool specialDVSplit)
CHECK(specialDVSplit);
}
-void Pokemod::Rules::setMaxDVValue(const int maxDVValue)
-{
- if (1 < maxDVValue)
- {
- emit(error(bounds("maxDVValue")));
- return;
- }
- CHECK(maxDVValue);
-}
-
void Pokemod::Rules::setHappiness(const bool happiness)
{
CHECK(happiness);
@@ -476,11 +462,6 @@ bool Pokemod::Rules::specialDVSplit() const
return m_specialDVSplit;
}
-int Pokemod::Rules::maxDVValue() const
-{
- return m_maxDVValue;
-}
-
bool Pokemod::Rules::happiness() const
{
return m_happiness;
@@ -545,7 +526,6 @@ Pokemod::Rules& Pokemod::Rules::operator=(const Rules& rhs)
COPY(allowSwitchStyle);
COPY(specialSplit);
COPY(specialDVSplit);
- COPY(maxDVValue);
COPY(happiness);
COPY(happyFaintLoss);
COPY(happyLevelGain);