1
0

Added static Enchantment Constants, Replaced cryptic Looting ID

This commit is contained in:
TheJumper
2014-02-22 01:21:49 +01:00
parent 1b32b00562
commit 7a7b9e88b2
18 changed files with 49 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ cSpider::cSpider(void) :
void cSpider::GetDrops(cItems & a_Drops, cEntity * a_Killer)
{
int LootingLevel = a_Killer->GetEquippedWeapon().m_Enchantments.GetLevel(21);
int LootingLevel = a_Killer->GetEquippedWeapon().m_Enchantments.GetLevel(E_ENCHANTMENT_LOOTING);
AddRandomDropItem(a_Drops, 0, 2 + LootingLevel, E_ITEM_STRING);
if (a_Killer->IsA("cPlayer") || a_Killer->IsA("cWolf"))
{