move invisibility to defines (#17612)

* move Invisibility to defines

* .

* .
This commit is contained in:
Kashargul
2025-04-27 16:47:53 +02:00
committed by GitHub
parent 58b214f1b3
commit f6a99359a9
92 changed files with 150 additions and 143 deletions
+7 -6
View File
@@ -93,17 +93,18 @@
var/last_revive_notification = null // world.time of last notification, used to avoid spamming players from defibs or cloners.
var/cleanup_timer // Refernece to a timer that will delete this mob if no client returns
/mob/observer/dead/Initialize(mapload, aghost = FALSE)
appearance = loc
invisibility = INVISIBILITY_OBSERVER
layer = BELOW_MOB_LAYER
plane = PLANE_GHOSTS
alpha = 127
sight = SEE_TURFS | SEE_MOBS | SEE_OBJS | SEE_SELF
see_invisible = SEE_INVISIBLE_OBSERVER
/mob/observer/dead/Initialize(mapload, aghost = FALSE)
appearance = loc
admin_ghosted = aghost
sight |= SEE_TURFS | SEE_MOBS | SEE_OBJS | SEE_SELF
see_invisible = SEE_INVISIBLE_OBSERVER
see_in_dark = world.view //I mean. I don't even know if byond has occlusion culling... but...
var/turf/T
@@ -900,7 +901,7 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
to_chat(src, span_info("You are now visible!"))
plane = (plane == PLANE_GHOSTS) ? PLANE_WORLD : PLANE_GHOSTS
invisibility = (plane == PLANE_WORLD) ? 0 : INVISIBILITY_OBSERVER
invisibility = (plane == PLANE_WORLD) ? INVISIBILITY_NONE : INVISIBILITY_OBSERVER
// Give the ghost a cult icon which should be visible only to itself
toggle_icon("cult")