From d65294a796291dbd72b92105051aa69ff080b5d3 Mon Sep 17 00:00:00 2001 From: ReddeyfishVor <36580397+ReddeyfishVor@users.noreply.github.com> Date: Sat, 14 Apr 2018 10:37:58 -0700 Subject: [PATCH] Add moderate requirement for electrify Creates a minor severity version of the event that only damages, removes safeties, and bolts the door. --- code/modules/events/electrified_door.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/events/electrified_door.dm b/code/modules/events/electrified_door.dm index 7802f971ca..1a616e7123 100644 --- a/code/modules/events/electrified_door.dm +++ b/code/modules/events/electrified_door.dm @@ -25,8 +25,9 @@ if(!chosen_door) return chosen_door.set_safeties(0) - chosen_door.electrify(-1) - chosen_door.unlock() + if(severity >= EVENT_LEVEL_MODERATE) + chosen_door.electrify(-1) + chosen_door.lock() chosen_door.health = chosen_door.maxhealth / 6 chosen_door.aiControlDisabled = 1 chosen_door.update_icon()