Skip to content

Commit

Permalink
Update hostile.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
LanceSmites328 committed Nov 23, 2023
1 parent d90d370 commit 456469c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/living/simple_animal/hostile/hostile.dm
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@
var/dam = max(damage_coeff.getCoeff(P.damtype)*P.damage, 0)
dam = round(dam/(maxHealth*0.25), 0.01)
if(P.firer in attackers)
attackers[P.firer] = min(attackers[P.firer] + dam, 1)
attackers[P.firer] = clamp(attackers[P.firer] + dam, 0, 1)
else
attackers[P.firer] = min(0.25 + dam, 0)
attackers[P.firer] = clamp(0.25 + dam, 0, 1)
. = ..()
DamageEffect(P.damage, P.damage_type)

Expand Down

0 comments on commit 456469c

Please sign in to comment.