summaryrefslogtreecommitdiffstats
path: root/pokemod/Rules.cpp
diff options
context:
space:
mode:
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);