Maint drones now return to the drone manufacturer when shutdown (#23367)

* luv me some drones

* uhhh WIP

* ..() moment

* Gaxeer review & misc change

* henri review

* tgui

* boom, i think

* oops

* sirryan review

* final stuff

* lmaooo

* Apply suggestions from code review

Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>

---------

Co-authored-by: Deniz <66401072+Oyu07@users.noreply.github.com>
This commit is contained in:
Contrabang
2024-01-30 14:39:46 +00:00
committed by GitHub
co-authored by Deniz
parent 0aa98118b0
commit 243ff18304
13 changed files with 278 additions and 36 deletions
+4
View File
@@ -106,5 +106,9 @@
qdel(mob_to_delete)
/proc/dust_if_respawnable(mob/M)
if(isdrone(M))
var/mob/living/silicon/robot/drone/drone = M
drone.shut_down(TRUE)
return
if(HAS_TRAIT_FROM(M, TRAIT_RESPAWNABLE, GHOST_ROLE))
M.dust()