2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2012-09-23 13:53:08 -07:00
|
|
|
#include "Slime.h"
|
2012-06-14 06:06:06 -07:00
|
|
|
|
2012-12-21 03:04:08 -08:00
|
|
|
// TODO: Implement sized slimes
|
2012-06-14 06:06:06 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-01 03:39:56 -07:00
|
|
|
/// Creates a slime of the specified size; size is 1 .. 3, with 1 being the smallest
|
|
|
|
cSlime::cSlime(int a_Size) :
|
|
|
|
super("Slime", 55, "mob.slime.attack", "mob.slime.attack", 0.6 * a_Size, 0.6 * a_Size),
|
|
|
|
m_Size(a_Size)
|
2012-06-14 06:06:06 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2013-07-01 03:39:56 -07:00
|
|
|
void cSlime::GetDrops(cItems & a_Drops, cEntity * a_Killer)
|
2012-06-14 06:06:06 -07:00
|
|
|
{
|
2012-12-21 03:04:08 -08:00
|
|
|
// TODO: only when tiny
|
|
|
|
AddRandomDropItem(a_Drops, 0, 2, E_ITEM_SLIMEBALL);
|
2012-06-14 06:06:06 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|