2 CHARACTER(mistress
, humanoid
)
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;
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
)
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
));
26 ADD_MESSAGE("You hear someone screaming: \"Oh the delightful pain!\"");
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))
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
));
45 ADD_MESSAGE("You hear someone screaming: \"Oh the delightful pain!\"");
53 truth
mistress::AllowEquipment(citem
* Item
, int EquipmentIndex
) const
55 return ((EquipmentIndex
!= RIGHT_WIELDED_INDEX
56 && EquipmentIndex
!= LEFT_WIELDED_INDEX
)