Merge pull request #13764 from Hatterhat/mech-sell

mechs leave no wrecks when sold on cargo shuttle
This commit is contained in:
DeltaFire
2020-12-14 06:04:21 +01:00
committed by GitHub
+3
View File
@@ -60,6 +60,9 @@ Credit dupes that require a lot of manual work shouldn't be removed, unless they
if(!dry_run && (sold || delete_unsold))
if(ismob(thing))
thing.investigate_log("deleted through cargo export",INVESTIGATE_CARGO)
if(ismecha(thing))
var/obj/mecha/mech = thing
mech.wreckage = null // why a mech left a wreck when sold i will never know
qdel(thing)
return report