5db6213f34
+ Pigs, Minecarts, Sheep, Skeletons, Slimes, Villagers, Wolves, and Horses have metadata + Base code on taming wolves, shearing sheep, and taming horses + Sheep and horses have different colours when spawned
31 lines
488 B
C++
31 lines
488 B
C++
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
#include "Skeleton.h"
|
|
#include "../World.h"
|
|
|
|
|
|
|
|
|
|
|
|
cSkeleton::cSkeleton(bool IsWither) :
|
|
super("Skeleton", 51, "mob.skeleton.hurt", "mob.skeleton.death", 0.6, 1.8),
|
|
m_bIsWither(IsWither)
|
|
{
|
|
SetBurnsInDaylight(true);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void cSkeleton::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
|
{
|
|
AddRandomDropItem(a_Drops, 0, 2, E_ITEM_ARROW);
|
|
AddRandomDropItem(a_Drops, 0, 2, E_ITEM_BONE);
|
|
}
|
|
|
|
|
|
|
|
|