blob: 6d2024d01ebdb4ef23343d1d18c630df23914b18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include "cSheep.h"
//Todo: Implement color
cSheep::cSheep()
{
m_MobType = 91;
GetMonsterConfig("Sheep");
}
cSheep::~cSheep()
{
}
bool cSheep::IsA( const char* a_EntityType )
{
if( strcmp( a_EntityType, "cSheep" ) == 0 ) return true;
return cMonster::IsA( a_EntityType );
}
void cSheep::KilledBy( cEntity* a_Killer )
{
//Todo: Check wheather it is sheared
//Todo: Check color
cMonster::DropItem(E_ITEM_WHITE_CLOTH, 1);
cMonster::KilledBy( a_Killer );
}
|