mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 15:37:36 +01:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user