typos
[k8-i-v-a-n.git] / src / game / humans / humanoid_mistress.cpp
blob017e12698044b7eb8fcf035baf6be4df4b2b8d77
1 #ifdef HEADER_PHASE
2 CHARACTER(mistress, humanoid)
4 public:
5 virtual int TakeHit(character*, item*, bodypart*, v2, double, double, int, int, int, truth, truth);
6 virtual truth ReceiveDamage(character*, int, int, int = ALL, int = 8, truth = false, truth = false, truth = false, truth = true);
7 virtual truth AllowEquipment(citem*, int) const;
8 };
11 #else
15 int mistress::TakeHit(character* Enemy, item* Weapon, bodypart* EnemyBodyPart, v2 HitPos, double Damage, double ToHitValue, int Success, int Type, int Direction, truth Critical, truth ForceHit)
17 int Return = humanoid::TakeHit(Enemy, Weapon, EnemyBodyPart, HitPos, Damage, ToHitValue, Success, Type, Direction, Critical, ForceHit);
19 if(Return == HAS_HIT && Critical)
21 if(IsPlayer())
22 ADD_MESSAGE("Aahhh. The pain feels unbelievably good.");
23 else if(CanBeSeenByPlayer())
24 ADD_MESSAGE("%s screams: \"Oh the delightful pain!\"", CHAR_NAME(DEFINITE));
25 else
26 ADD_MESSAGE("You hear someone screaming: \"Oh the delightful pain!\"");
29 return Return;
34 truth mistress::ReceiveDamage(character* Damager, int Damage, int Type, int TargetFlags, int Direction, truth Divide, truth PenetrateArmor, truth Critical, truth ShowMsg)
36 truth Success = humanoid::ReceiveDamage(Damager, Damage, Type, TargetFlags, Direction, Divide, PenetrateArmor, Critical, ShowMsg);
38 if(Type & SOUND && Success && !(RAND() & 7))
40 if(IsPlayer())
41 ADD_MESSAGE("Aahhh. The pain feels unbelievably good.");
42 else if(CanBeSeenByPlayer())
43 ADD_MESSAGE("%s screams: \"Oh the delightful pain!\"", CHAR_NAME(DEFINITE));
44 else
45 ADD_MESSAGE("You hear someone screaming: \"Oh the delightful pain!\"");
48 return Success;
53 truth mistress::AllowEquipment(citem* Item, int EquipmentIndex) const
55 return ((EquipmentIndex != RIGHT_WIELDED_INDEX
56 && EquipmentIndex != LEFT_WIELDED_INDEX)
57 || Item->IsWhip());
59 #endif