2011-10-25 19:46:01 -04:00
|
|
|
#include "cSlime.h"
|
|
|
|
|
2011-12-21 15:42:34 -05:00
|
|
|
//TODO Implement sized slimes
|
|
|
|
|
2011-12-25 17:47:12 -05:00
|
|
|
cSlime::cSlime()
|
|
|
|
{
|
2011-10-25 19:46:01 -04:00
|
|
|
m_MobType = 55;
|
|
|
|
GetMonsterConfig("Slime");
|
|
|
|
}
|
|
|
|
|
|
|
|
cSlime::~cSlime()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cSlime::IsA( const char* a_EntityType )
|
|
|
|
{
|
|
|
|
if( strcmp( a_EntityType, "cSlime" ) == 0 ) return true;
|
|
|
|
return cMonster::IsA( a_EntityType );
|
|
|
|
}
|
|
|
|
|
|
|
|
void cSlime::KilledBy( cEntity* a_Killer )
|
|
|
|
{
|
2011-12-21 15:42:34 -05:00
|
|
|
//TODO: only when tiny
|
|
|
|
cMonster::RandomDropItem(E_ITEM_SLIMEBALL, 0, 2);
|
|
|
|
|
2011-10-25 19:46:01 -04:00
|
|
|
cMonster::KilledBy( a_Killer );
|
2011-12-25 17:47:12 -05:00
|
|
|
}
|