mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-07-22 05:34:49 +01:00
[MIRROR] EMP & Wires refactor (#12658)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
494fc9bea9
commit
b116cc450d
@@ -235,7 +235,8 @@
|
||||
change_power_consumption(1500 * (range**2), USE_POWER_IDLE) //Exponential increase, also affects speed of overheating
|
||||
|
||||
/obj/machinery/shipsensors/emp_act(severity, recursive)
|
||||
if(!use_power)
|
||||
. = ..()
|
||||
if (. & EMP_PROTECT_SELF || !use_power)
|
||||
return
|
||||
take_damage(20/severity)
|
||||
toggle()
|
||||
|
||||
Reference in New Issue
Block a user