10 super(
"MagmaCube",
mtMagmaCube,
Printf(
"entity.%smagmacube.hurt", GetSizeName(a_Size).c_str()),
Printf(
"entity.%smagmacube.death", GetSizeName(a_Size).c_str()), 0.6 * a_Size, 0.6 * a_Size),
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...
AString & Printf(AString &str, const char *format, fmt::ArgList args)
Output the formatted text into the string.
cMagmaCube(int a_Size)
Creates a MagmaCube of the specified size; with 1 being the smallest.
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. ...
This class bridges a vector of cItem for safe access via Lua.