diff options
Diffstat (limited to 'sigmod/Nature.cpp')
| -rw-r--r-- | sigmod/Nature.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sigmod/Nature.cpp b/sigmod/Nature.cpp index 11a301e6..add4a764 100644 --- a/sigmod/Nature.cpp +++ b/sigmod/Nature.cpp @@ -25,7 +25,7 @@ Sigmod::Nature::Nature(const Nature& nature) : Object(nature.parent(), nature.id()), - m_stat(ST_End_GSC - ST_No_HP_Start) + m_stat(ST_SpecialDefense - ST_Attack + 1) { *this = nature; } @@ -33,7 +33,7 @@ Sigmod::Nature::Nature(const Nature& nature) : Sigmod::Nature::Nature(const Sigmod* parent, const int id) : Object(parent, id), m_name(""), - m_stat(ST_End_GSC - ST_No_HP_Start), + m_stat(ST_SpecialDefense - ST_Attack + 1), m_weight(1) { for (int i = 0; i < m_stat.size(); ++i) @@ -42,14 +42,14 @@ Sigmod::Nature::Nature(const Sigmod* parent, const int id) : Sigmod::Nature::Nature(const Nature& nature, const Sigmod* parent, const int id) : Object(parent, id), - m_stat(ST_End_GSC - ST_No_HP_Start) + m_stat(ST_SpecialDefense - ST_Attack + 1) { *this = nature; } Sigmod::Nature::Nature(const QDomElement& xml, const Sigmod* parent, const int id) : Object(parent, id), - m_stat(ST_End_GSC - ST_No_HP_Start) + m_stat(ST_SpecialDefense - ST_Attack + 1) { LOAD_ID(); load(xml); @@ -98,7 +98,7 @@ void Sigmod::Nature::setStat(const Stat stat, const Fraction& multiplier) emit(warning(bounds("stat"))); return; } - CHECK_ARRAY(stat[stat - ST_No_HP_Start], multiplier); + CHECK_ARRAY(stat[stat - ST_Attack], multiplier); } void Sigmod::Nature::setWeight(const int weight) @@ -121,7 +121,7 @@ Sigmod::Fraction Sigmod::Nature::stat(const Stat stat) const case ST_SpecialDefense: if (qobject_cast<const Sigmod*>(sigmod())->rules()->specialSplit()) case ST_Attack ... ST_Special: - return m_stat[stat - ST_No_HP_Start]; + return m_stat[stat - ST_Attack]; default: emit(warning(bounds("stat"))); return Fraction(); |
