Defines |
| #define | DBGFILE "combat.cpp" |
| #define | SWINGAT (UI32)1.75 * CLOCKS_PER_SEC |
Functions |
| void | InvalidateAttacker (CChar *attack) |
| void | AdjustRaceDamage (CChar *defend, CItem *weapon, SI16 &bDamage) |
| SI08 | DoHitMessage (CChar *defend, CChar *attack, cSocket *mSock, SI16 damage) |
| void | QuickSwitch (CChar *attack, CChar *defend, short spellNum) |
| void | PlayerAttack (cSocket *s) |
| void | npcAttackTarget (CChar *target, CChar *source) |
| void | npcSimpleAttackTarget (CChar *defender, CChar *attacker) |
| void | petGuardAttack (CChar *mChar, CChar *owner, SERIAL guarded) |
Variables |
| const UI08 | BODYPERCENT = 0 |
| const UI08 | ARMSPERCENT = 1 |
| const UI08 | HEADPERCENT = 2 |
| const UI08 | LEGSPERCENT = 3 |
| const UI08 | NECKPERCENT = 4 |
| const UI08 | OTHERPERCENT = 5 |
| const UI08 | TOTALTARGETSPOTS = 6 |
| const UI08 | LOCPERCENTAGES [TOTALTARGETSPOTS] = { 44, 14, 14, 14, 7, 7 } |