2013-07-29 11:13:03 +00:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2013-09-21 09:15:53 +00:00
|
|
|
#include "Magmacube.h"
|
2013-07-29 11:13:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-18 21:17:43 +00:00
|
|
|
cMagmaCube::cMagmaCube(int a_Size) :
|
2013-10-20 08:23:30 +00:00
|
|
|
super("MagmaCube", mtMagmaCube, "mob.MagmaCube.big", "mob.MagmaCube.big", 0.6 * a_Size, 0.6 * a_Size),
|
2013-07-29 11:13:03 +00:00
|
|
|
m_Size(a_Size)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-09-18 21:17:43 +00:00
|
|
|
void cMagmaCube::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
2013-07-29 11:13:03 +00:00
|
|
|
{
|
2014-02-24 14:38:38 +00:00
|
|
|
UNUSED(a_Killer);
|
2014-02-23 18:44:58 +00:00
|
|
|
if (GetSize() > 1)
|
|
|
|
{
|
|
|
|
AddRandomUncommonDropItem(a_Drops, 25.0f, E_ITEM_MAGMA_CREAM);
|
|
|
|
}
|
2013-07-29 11:13:03 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|