You can no longer stack Rad Collectors on the same turf (#22317)

* Stack wrenching begone(questionable code edition)

* Review round one, I am blind

* The expected rewrite
This commit is contained in:
Bjamcham
2023-09-13 18:02:01 +01:00
committed by GitHub
parent d7977ca79a
commit 05880974f6
@@ -80,6 +80,11 @@ GLOBAL_LIST_EMPTY(rad_collectors)
if(loaded_tank)
to_chat(user, "<span class='notice'>Remove the plasma tank first.</span>")
return TRUE
var/turf/T = get_turf(src)
for(var/obj/machinery/power/rad_collector/can_wrench in T.contents)
if(can_wrench.anchored && !anchored)
to_chat(user, "<span class='notice'>You can't wrench down [src] here!</span>")
return
playsound(loc, I.usesound, 75, TRUE)
anchored = !anchored
user.visible_message("[user.name] [anchored ? "secures" : "unsecures"] the [name].", "You [anchored ? "secure" : "undo"] the external bolts.", "You hear a ratchet")