From 5319e90bf8ad9c0f2ee7bc7813bd204c2ce87b5d Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 18 Jun 2008 00:59:22 +0000 Subject: [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 --- pokemod/Rules.cpp | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'pokemod/Rules.cpp') 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); -- cgit