Various Incomplete Destroy Fixes (#22788)

I've had extended logging for Incomplete Destroys for about 2 weeks now,
so there's the promised PR that fixes each and every single poisoned
destroy that was recorded in the past 2 weeks by the sentry logs.
This commit is contained in:
VMSolidus
2026-07-07 14:13:46 +00:00
committed by GitHub
parent cdf09d46f0
commit d190233527
10 changed files with 47 additions and 8 deletions
+9
View File
@@ -34,6 +34,15 @@
else
to_chat(user, SPAN_NOTICE("Select a type to construct."))
else if(parameters["right"])
if (isturf(A))
// Delete exemption for Turfs, which under no circumstances are allowed to be qdel'ed directly.
// "Deleting" a turf instead attempts to change it to its base turf,
// which in most cases will either Plating, or Open Space. Open Space will simply return early instead.
var/turf/T = A
Log("Replaced turf - [log_info_line(T)]")
T.ChangeTurf(T.baseturf)
return
Log("Deleted - [log_info_line(A)]")
qdel(A)
else if((parameters["left"] && parameters["ctrl"]) || parameters["middle"])