Cleanups and tweaks observer code (#30250)

* observer cleanup

* this

* bit more

* Update tgui.bundle.js
This commit is contained in:
kyunkyunkyun
2025-09-05 10:54:22 +05:00
committed by GitHub
parent 8f98876b47
commit 10f2e67e65
66 changed files with 362 additions and 447 deletions
@@ -44,13 +44,13 @@
if(response != "Ghost")
return
lay_down()
var/mob/dead/observer/ghost = ghostize(TRUE)
var/mob/dead/observer/ghost = ghostize()
ghost.timeofdeath = world.time
death(0) // Turn back into a regular object.
/mob/living/basic/possessed_object/death(gibbed)
if(can_die())
ghostize(TRUE)
ghostize()
// if gibbed, the item goes with the ghost
if(!gibbed && possessed_item.loc == src)
// Put the normal item back once the EVIL SPIRIT has been vanquished from it. If it's not already in place