Added static Enchantment Constants, Replaced cryptic Looting ID
This commit is contained in:
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user