diff options
author | n0n4m3 <none@none> | 2010-04-14 12:22:35 +0400 |
---|---|---|
committer | n0n4m3 <none@none> | 2010-04-14 12:22:35 +0400 |
commit | 61e71986f076f636619380da8e800f084b4465f5 (patch) | |
tree | 3fba36ea491f1a055c10e5a2fee4865f265f2e94 | |
parent | 4f051752bd60aa3060e8a387d9b387a209ba7f38 (diff) |
Drop old item amount calculation. by Vladimir
--HG--
branch : trunk
-rw-r--r-- | src/game/SpellEffects.cpp | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 73a62eae53b..3cccf86712e 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -3015,30 +3015,7 @@ void Spell::DoCreateItem(uint32 i, uint32 itemtype) break; } - uint32 num_to_add; - - // TODO: maybe all this can be replaced by using correct calculated `damage` value - if (pProto->Class != ITEM_CLASS_CONSUMABLE || m_spellInfo->SpellFamilyName != SPELLFAMILY_MAGE) - { - num_to_add = damage; - /*int32 basePoints = m_currentBasePoints[i]; - int32 randomPoints = m_spellInfo->EffectDieSides[i]; - if (randomPoints) - num_to_add = basePoints + irand(1, randomPoints); - else - num_to_add = basePoints + 1;*/ - } - else if (pProto->MaxCount == 1) - num_to_add = 1; - else if (player->getLevel() >= m_spellInfo->spellLevel) - { - num_to_add = damage; - /*int32 basePoints = m_currentBasePoints[i]; - float pointPerLevel = m_spellInfo->EffectRealPointsPerLevel[i]; - num_to_add = basePoints + 1 + uint32((player->getLevel() - m_spellInfo->spellLevel)*pointPerLevel);*/ - } - else - num_to_add = 2; + uint32 num_to_add = damage; if (num_to_add < 1) num_to_add = 1; |