Merge pull request #7843 from ShadowLarkens/screenalerts

Ported /tg/ style screen alerts, replacing the hunger icon with them
This commit is contained in:
Aronai Sieyes
2020-05-14 09:52:06 -04:00
committed by GitHub
54 changed files with 970 additions and 683 deletions

View File

@@ -480,6 +480,19 @@
else
return 0
/datum/mind/proc/get_ghost(even_if_they_cant_reenter)
for(var/mob/observer/dead/G in player_list)
if(G.mind == src)
if(G.can_reenter_corpse || even_if_they_cant_reenter)
return G
break
/datum/mind/proc/grab_ghost(force)
var/mob/observer/dead/G = get_ghost(even_if_they_cant_reenter = force)
. = G
if(G)
G.reenter_corpse()
//Initialisation procs
/mob/living/proc/mind_initialize()
if(mind)