Browse Source

clamp melee hit chance (#2491)

pull/2495/head
qndel 5 years ago committed by GitHub
parent
commit
f8dc7bd3e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      Source/player.cpp

7
Source/player.cpp

@ -917,12 +917,7 @@ bool PlrHitMonst(int pnum, int m)
hper += 20;
}
hper += player._pIBonusToHit;
if (hper < 5) {
hper = 5;
}
if (hper > 95) {
hper = 95;
}
hper = clamp(hper, 5, 95);
bool ret = false;
if (CheckMonsterHit(monster, &ret)) {

Loading…
Cancel
Save