mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Airlocks should no longer be temporarily electrified for the rest of the round.
Airlocks are no longer electrified for as long as the round has been going when EMPd.
This commit is contained in:
@@ -1067,8 +1067,8 @@ About the new airlock wires panel:
|
||||
|
||||
/obj/machinery/door/airlock/emp_act(var/severity)
|
||||
if(prob(40/severity))
|
||||
var/duration = world.time + SecondsToTicks(30 / severity)
|
||||
if(duration > electrified_until)
|
||||
var/duration = SecondsToTicks(30 / severity)
|
||||
if(electrified_until > -1 && (duration + world.time) > electrified_until)
|
||||
electrify(duration)
|
||||
..()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user