Merge pull request #5958 from Markolie/fixin

Fix AI crew monitor tracking and door electrification
This commit is contained in:
Fox McCloud
2016-12-06 17:50:08 -05:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -481,7 +481,8 @@ About the new airlock wires panel:
shockedby += text("\[[time_stamp()]\] - EMP)")
message = "The door is now electrified [duration == -1 ? "permanently" : "for [duration] second\s"]."
electrified_until = duration == -1 ? -1 : world.time + SecondsToTicks(duration)
electrified_timer = addtimer(src, "electrify", SecondsToTicks(duration), 1, 0)
if(duration != -1)
electrified_timer = addtimer(src, "electrify", SecondsToTicks(duration), 1, 0)
if(feedback && message)
to_chat(usr, message)