mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user