From dd84cfeb161bc3b30a011563667b455cbf32ad3c Mon Sep 17 00:00:00 2001 From: Rhials Date: Fri, 24 Feb 2023 20:19:17 -0500 Subject: [PATCH] Radiation Leak event can no longer target machinery that doesn't use power (#73609) ## About The Pull Request The Radiation Leak event will no longer target machinery that doesn't use power. This includes a lot of non-machine machinery, like the anomalous crystal, the chef's icecream vat, or IV drips. ## Why It's Good For The Game Closes #73558. ## Changelog :cl: Rhials fix: The radiation leak event no longer targets machinery that doesn't use power. /:cl: --- code/modules/events/radiation_leak.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/events/radiation_leak.dm b/code/modules/events/radiation_leak.dm index cfedf82d4ec..0fbe2992766 100644 --- a/code/modules/events/radiation_leak.dm +++ b/code/modules/events/radiation_leak.dm @@ -26,6 +26,9 @@ while(length(possible_locs)) var/turf/chosen_loc = get_turf(pick_n_take(possible_locs)) for(var/obj/machinery/sick_device in range(3, chosen_loc)) + // Excludes machines that don't use power, as these are usually non-machine machinery + if(sick_device.use_power == NO_POWER_USE) + continue // Look for dense machinery. Basically stops stuff like wall mounts and pipes, silly ones. // But keep in vents and scrubbers. I think it's funny if they start spitting out radiation if(!sick_device.density && !istype(sick_device, /obj/machinery/atmospherics/components/unary))