From 81c12ea8fbfdd5211e0c15f2a56fe54ce0199f58 Mon Sep 17 00:00:00 2001 From: zimon9 <122945887+zimon9@users.noreply.github.com> Date: Tue, 15 Oct 2024 07:45:54 -0400 Subject: [PATCH] Fix to turn mob spawning off when a drill incurs a malfunction (#3551) ## About The Pull Request This fix toggles fauna spawning off after a drill is beset by a malfunction. ## Why It's Good For The Game I've seen several instances of runaway spawning occurring after a drill suffers a malfunction. When this happens, it cannot be toggled off by alt-clicking on it, and it _must_ be unwrenched. This should fix that behavior. ## Changelog :cl: fix: fixed fauna spawning after drill malfunctions /:cl: --- code/modules/mining/drill.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mining/drill.dm b/code/modules/mining/drill.dm index 9a35c2b4bf113..c327efab39a85 100644 --- a/code/modules/mining/drill.dm +++ b/code/modules/mining/drill.dm @@ -344,6 +344,8 @@ //Overly long proc to handle the unique properties for each malfunction type /obj/machinery/drill/proc/malfunction(malfunction_type) + if(active) + mining.toggle_spawning() //turns mob spawning off after a malfunction switch(malfunction_type) if(MALF_LASER) say("Malfunction: Laser array damaged, please replace before continuing mining operations.")