5 #include "../Entities/Player.h"
24 Super(
"Rabbit",
mtRabbit,
"entity.rabbit.hurt",
"entity.rabbit.death",
"entity.rabbit.ambient", 0.4f, 0.5f),
26 m_MoreCarrotTicks(MoreCarrotTicks)
41 unsigned int LootingLevel = 0;
42 if (a_Killer !=
nullptr)
MTRand & GetRandomProvider()
Returns the current thread's random number source.
unsigned int GetLevel(int a_EnchantmentID) const
Returns the level for the specified enchantment; 0 if not stored.
virtual bool IsOnFire(void) const
virtual cItem GetEquippedWeapon(void) const
Returns the curently equipped weapon; empty item if none.
cEnchantments m_Enchantments
This class bridges a vector of cItem for safe access via Lua.
void Add(const cItem &a_Item)
void AddRandomRareDropItem(cItems &a_Drops, cItems &a_Items, unsigned int a_LootingLevel)
Adds one rare item out of the list of rare items a_Items modified by the looting level a_LootingLevel...
void AddRandomDropItem(cItems &a_Drops, unsigned int a_Min, unsigned int a_Max, short a_Item, short a_ItemHealth=0)
Adds a random number of a_Item between a_Min and a_Max to itemdrops a_Drops.
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.