12 super(
"Squid",
mtSquid,
"entity.squid.hurt",
"entity.squid.death", 0.95, 0.95)
23 unsigned int LootingLevel = 0;
24 if (a_Killer !=
nullptr)
virtual bool IsHeadInWater(void) const
Returns true if any part of the entity is in a water block.
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.
unsigned int GetLevel(int a_EnchantmentID) const
Returns the level for the specified enchantment; 0 if not stored.
static const int DROWNING_TICKS
Number of ticks per heart of damage.
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
cEnchantments m_Enchantments
virtual void Tick(std::chrono::milliseconds a_Dt, cChunk &a_Chunk) override
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
int m_AirLevel
Air level of a mobile.
void TakeDamage(cEntity &a_Attacker)
Makes this pawn take damage from an attack by a_Attacker.
static const int MAX_AIR_LEVEL
Maximum air an entity can have.
virtual cItem GetEquippedWeapon(void) const
Returns the curently equipped weapon; empty item if none.
const Vector3d & GetPosition(void) const
Exported in ManualBindings.
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)
This class bridges a vector of cItem for safe access via Lua.