Add moderate requirement for electrify

Creates a minor severity version of the event that only damages, removes safeties, and bolts the door.
This commit is contained in:
ReddeyfishVor
2018-04-14 10:37:58 -07:00
committed by GitHub
parent 04de1c7f98
commit d65294a796
+3 -2
View File
@@ -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()