12 Super(
"Squid",
mtSquid,
"entity.squid.hurt",
"entity.squid.death",
"entity.squid.ambient", 0.8f, 0.8f)
23 unsigned int LootingLevel = 0;
24 if (a_Killer !=
nullptr)
std::enable_if< std::is_arithmetic< T >::value, C >::type FloorC(T a_Value)
Floors a value, then casts it to C (an int by default).
unsigned int GetLevel(int a_EnchantmentID) const
Returns the level for the specified enchantment; 0 if not stored.
int m_AirLevel
Air level of a mobile.
virtual bool IsHeadInWater(void) const
Returns true if any part of the entity is in a water block.
void TakeDamage(cEntity &a_Attacker)
Makes this pawn take damage from an attack by a_Attacker.
virtual cItem GetEquippedWeapon(void) const
Returns the curently equipped weapon; empty item if none.
static const int DROWNING_TICKS
Number of ticks per heart of damage.
const Vector3d & GetPosition(void) const
Exported in ManualBindings.
static const int MAX_AIR_LEVEL
Maximum air an entity can have.
cEnchantments m_Enchantments
This class bridges a vector of cItem for safe access via Lua.
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.
bool m_PathfinderActivated
Stores if pathfinder is being used - set when final destination is set, and unset when stopped moving...
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override