More Cleanups

This commit is contained in:
hondacrx
2021-06-08 12:56:09 -04:00
parent 302a1f293c
commit 52e43853fe
58 changed files with 223 additions and 257 deletions
+4 -4
View File
@@ -1337,7 +1337,7 @@ namespace Game.Entities
// 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8.
// MISS > DODGE > PARRY > GLANCING > BLOCK > CRIT > CRUSHING > HIT
int sum = 0, tmp = 0;
int sum = 0;
int roll = RandomHelper.IRand(0, 9999);
uint attackerLevel = GetLevelForTarget(victim);
@@ -1357,7 +1357,7 @@ namespace Game.Entities
}
// 1. MISS
tmp = miss_chance;
int tmp = miss_chance;
if (tmp > 0 && roll < (sum += tmp))
return MeleeHitOutcome.Miss;
@@ -1477,9 +1477,9 @@ namespace Game.Entities
if (minDamage > maxDamage)
{
minDamage = minDamage + maxDamage;
minDamage += maxDamage;
maxDamage = minDamage - maxDamage;
minDamage = minDamage - maxDamage;
minDamage -= maxDamage;
}
if (maxDamage == 0.0f)