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
🆑 Rhials
fix: The radiation leak event no longer targets machinery that doesn't
use power.
/🆑
This commit is contained in:
Rhials
2023-02-24 18:19:17 -07:00
committed by GitHub
parent 9185535c3f
commit dd84cfeb16
+3
View File
@@ -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))