diff options
Diffstat (limited to 'source/cSlime.cpp')
-rw-r--r-- | source/cSlime.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/source/cSlime.cpp b/source/cSlime.cpp index 90729e169..c2cf78061 100644 --- a/source/cSlime.cpp +++ b/source/cSlime.cpp @@ -18,6 +18,8 @@ #include <cstring>
#endif
+//TODO Implement sized slimes
+
cSlime::cSlime() : m_ChaseTime(999999) {
m_bBurnable = true;
m_EMPersonality = AGGRESSIVE;
@@ -45,16 +47,9 @@ void cSlime::Tick(float a_Dt) void cSlime::KilledBy( cEntity* a_Killer )
{
- if( (rand() % 5) == 0 )
- {
- cPickup* Pickup = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_EGG, 1 ) );
- Pickup->Initialize( GetWorld() );
- }
- if( (rand() % 1) == 0 )
- {
- cPickup* Pickup = new cPickup( (int)(m_Pos->x*32), (int)(m_Pos->y*32), (int)(m_Pos->z*32), cItem( E_ITEM_FEATHER, 1 ) );
- Pickup->Initialize( GetWorld() );
- }
+ //TODO: only when tiny
+ cMonster::RandomDropItem(E_ITEM_SLIMEBALL, 0, 2);
+
cMonster::KilledBy( a_Killer );
}
|