mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 06:28:01 +01:00
EMP & Wires refactor (#19401)
* EMP Refactor * EVERYBODY gets wires * Shield gen * fix * Fix those * Changes * , * kill --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -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