diff options
Diffstat (limited to 'sigscript/SpeciesWrapper.cpp')
| -rw-r--r-- | sigscript/SpeciesWrapper.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sigscript/SpeciesWrapper.cpp b/sigscript/SpeciesWrapper.cpp index 42a46a50..d79f2e5f 100644 --- a/sigscript/SpeciesWrapper.cpp +++ b/sigscript/SpeciesWrapper.cpp @@ -107,21 +107,21 @@ int Sigscript::SpeciesWrapper::maxHoldWeight() const Sigmod::Fraction Sigscript::SpeciesWrapper::runChance() const { - if (hasValueOfType<Sigmod::Fraction>("runChance")) + if (sigmod()->singlePlayer() && hasValueOfType<Sigmod::Fraction>("runChance")) return valueOfType<Sigmod::Fraction>("runChance"); return m_species->runChance(); } Sigmod::Fraction Sigscript::SpeciesWrapper::fleeChance() const { - if (hasValueOfType<Sigmod::Fraction>("fleeChance")) + if (sigmod()->singlePlayer() && hasValueOfType<Sigmod::Fraction>("fleeChance")) return valueOfType<Sigmod::Fraction>("fleeChance"); return m_species->fleeChance(); } Sigmod::Fraction Sigscript::SpeciesWrapper::itemChance() const { - if (hasValueOfType<Sigmod::Fraction>("itemChance")) + if (sigmod()->singlePlayer() && hasValueOfType<Sigmod::Fraction>("itemChance")) return valueOfType<Sigmod::Fraction>("itemChance"); return m_species->itemChance(); } @@ -178,7 +178,7 @@ Sigmod::Fraction Sigscript::SpeciesWrapper::genderFactor() const int Sigscript::SpeciesWrapper::eggSpecies() const { - if (hasValueOfType<int>("eggSpecies")) + if (sigmod()->singlePlayer() && hasValueOfType<int>("eggSpecies")) return valueOfType<int>("eggSpecies"); return m_species->eggSpecies(); } |
