[hellfire] DoHealOther bin exact
This commit is contained in:
parent
d626908a53
commit
f7c90653bd
1 changed files with 10 additions and 0 deletions
|
|
@ -262,6 +262,15 @@ void DoHealOther(int pnum, int rid)
|
|||
hp += (random(57, 6) + 1) << 6;
|
||||
}
|
||||
|
||||
#ifdef HELLFIRE
|
||||
if (plr[pnum]._pClass == PC_WARRIOR || plr[pnum]._pClass == PC_BARBARIAN) {
|
||||
hp <<= 1;
|
||||
} else if (plr[pnum]._pClass == PC_ROGUE || plr[pnum]._pClass == PC_BARD) {
|
||||
hp += hp >> 1;
|
||||
} else if (plr[pnum]._pClass == PC_MONK) {
|
||||
hp *= 3;
|
||||
}
|
||||
#else
|
||||
if (plr[pnum]._pClass == PC_WARRIOR) {
|
||||
hp <<= 1;
|
||||
}
|
||||
|
|
@ -269,6 +278,7 @@ void DoHealOther(int pnum, int rid)
|
|||
if (plr[pnum]._pClass == PC_ROGUE) {
|
||||
hp += hp >> 1;
|
||||
}
|
||||
#endif
|
||||
|
||||
plr[rid]._pHitPoints += hp;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue