13 fmt::format(FMT_STRING(
"entity.{}magmacube.hurt"), GetSizeName(a_Size)),
14 fmt::format(FMT_STRING(
"entity.{}magmacube.death"), GetSizeName(a_Size)),
Implements custom fmtlib formatting for cChunkCoords.
This class bridges a vector of cItem for safe access via Lua.
cMagmaCube(int a_Size)
Creates a MagmaCube of the specified size; with 1 being the smallest.
virtual void GetDrops(cItems &a_Drops, cEntity *a_Killer=nullptr) override
Returns the list of drops for this pawn when it is killed.
static AString GetSizeName(int a_Size)
Returns the text describing the slime's size, as used by the client's resource subsystem for sounds.
void AddRandomUncommonDropItem(cItems &a_Drops, float a_Chance, short a_Item, short a_ItemHealth=0)
Adds a item a_Item with the chance of a_Chance (in percent) to itemdrops a_Drops.