nonhumans separation
[k8-i-v-a-n.git] / src / game / humans / humanoid_hunter.cpp
blob107db4a3199eae00cd6a90fa4056f8a706ea56fd
1 #ifdef HEADER_PHASE
2 CHARACTER(hunter, humanoid)
4 public:
5 virtual void BeTalkedTo();
6 protected:
7 virtual void CreateBodyParts(int);
8 };
11 #else
15 void hunter::BeTalkedTo()
17 if(GetRelation(PLAYER) != HOSTILE && GetMainWielded() && !(RAND() % 10))
18 ADD_MESSAGE("\"This is my %s. There are many like it but this one is mine. My %s is my best friend.\"", GetMainWielded()->CHAR_NAME(UNARTICLED), GetMainWielded()->CHAR_NAME(UNARTICLED));
19 else
20 character::BeTalkedTo();
25 void hunter::CreateBodyParts(int SpecialFlags)
27 for(int c = 0; c < BodyParts; ++c)
28 if(c != LEFT_ARM_INDEX)
29 CreateBodyPart(c, SpecialFlags);
30 else
31 SetBodyPart(LEFT_ARM_INDEX, 0);
33 #endif