mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
[s] maint drones no longer can endlessly ghost and respawn (#25651)
* [s] maint drones no longer can endlessly ghost and respawn * comment improvement * she trues on my false till I 0
This commit is contained in:
@@ -238,7 +238,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
return
|
||||
|
||||
if(HAS_TRAIT(M, TRAIT_RESPAWNABLE))
|
||||
ghostize(1)
|
||||
if(isdrone(M))//We do not punish maint drones for leaving early, *but* we don't want them ghosting, finding damage, respawning / rentering over and over.
|
||||
var/mob/dead/observer/ghost = ghostize(FALSE) // FALSE parameter stops them re-entering their body
|
||||
ghost.timeofdeath = world.time // Because the living mob won't have a time of death and we want the respawn timer to work properly.
|
||||
return
|
||||
ghostize(TRUE)
|
||||
return
|
||||
if(P)
|
||||
if(TOO_EARLY_TO_GHOST)
|
||||
@@ -267,11 +271,11 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
|
||||
if(warningmsg)
|
||||
// Not respawnable
|
||||
var/mob/dead/observer/ghost = ghostize(0) // 0 parameter stops them re-entering their body
|
||||
var/mob/dead/observer/ghost = ghostize(FALSE) // FALSE parameter stops them re-entering their body
|
||||
ghost.timeofdeath = world.time // Because the living mob won't have a time of death and we want the respawn timer to work properly.
|
||||
else
|
||||
// Respawnable
|
||||
ghostize(1)
|
||||
ghostize(TRUE)
|
||||
|
||||
// If mob in cryopod, despawn mob
|
||||
if(P)
|
||||
|
||||
Reference in New Issue
Block a user