Spectral blade now shows orbs, not ghosts (#24124)

* Implements

* yeah I meant to do this

* this should probably be safer

* alpha

* Add some contingencies

* Update code/modules/mining/lavaland/loot/tendril_loot.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

---------

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
Luc
2024-03-01 20:07:19 +00:00
committed by GitHub
co-authored by Henri215
parent 1937ac2db7
commit 06f89243f3
2 changed files with 69 additions and 18 deletions
@@ -35,6 +35,8 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
///toggle for ghost gas analyzer
var/gas_analyzer = FALSE
var/datum/orbit_menu/orbit_menu
/// The "color" their runechat would have had
var/alive_runechat_color = "#FFFFFF"
/mob/dead/observer/New(mob/body=null, flags=1)
set_invisibility(GLOB.observer_default_invisibility)
@@ -59,6 +61,7 @@ GLOBAL_VAR_INIT(observer_default_invisibility, INVISIBILITY_OBSERVER)
if(ismob(body))
T = get_turf(body) //Where is the body located?
attack_log_old = body.attack_log_old //preserve our attack logs by copying them to our ghost
alive_runechat_color = body.get_runechat_color()
var/mutable_appearance/MA = copy_appearance(body)
if(body.mind && body.mind.name)
@@ -846,3 +849,6 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
return allow_roundstart_observers
return FALSE
/mob/dead/observer/get_runechat_color()
return alive_runechat_color