Skip to content

Commit

Permalink
uh oh (#22747)
Browse files Browse the repository at this point in the history
  • Loading branch information
SapphicOverload authored Oct 19, 2024
1 parent 99e6868 commit dd1699d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/mecha/mecha_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@
. = ..()
if (. & EMP_PROTECT_SELF)
return
severity -= EMP_HEAVY * (100 - armor.getRating(ENERGY)) / 100 // energy armor is subtractive so that it's less effective against stronger EMPs and more against weaker ones
severity -= EMP_HEAVY * armor.getRating(ENERGY) / 100 // energy armor is subtractive so that it's less effective against stronger EMPs and more against weaker ones
if(severity <= 0)
return
if(get_charge())
use_power(cell.charge * severity / 40)
if(overheat < OVERHEAT_EMP_MAX)
Expand Down

0 comments on commit dd1699d

Please sign in to comment.