Eyes of god no longer sees ghosts. (#20311)

This commit is contained in:
Qwertytoforty
2023-03-04 17:13:52 -06:00
committed by GitHub
parent 0aeee5abea
commit 2805bb1d61
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -237,7 +237,7 @@
return
var/light_available = T.get_lumcount() * 10
if(light_available <= 2)
if(M.invisibility != INVISIBILITY_OBSERVER)
if(M.invisibility != INVISIBILITY_LEVEL_TWO)
M.alpha = round(M.alpha * 0.8)
else
M.reset_visibility()
@@ -259,7 +259,7 @@
/datum/mutation/stealth/chameleon/on_life(mob/living/M) //look if a ghost gets this, its an admins problem
if((world.time - M.last_movement) >= 30 && !M.stat && (M.mobility_flags & MOBILITY_STAND) && !M.restrained())
if(M.invisibility != INVISIBILITY_OBSERVER)
if(M.invisibility != INVISIBILITY_LEVEL_TWO)
M.alpha -= 25
else
M.reset_visibility()
@@ -3,7 +3,7 @@
//Don't hear deadchat and are NOT normal ghosts
//Admin-spawn or random event
#define INVISIBILITY_REVENANT 50
#define INVISIBILITY_REVENANT 45
#define REVENANT_NAME_FILE "revenant_names.json"
/mob/living/simple_animal/revenant
+1 -1
View File
@@ -1566,7 +1566,7 @@ GLOBAL_LIST_INIT(holy_areas, typecacheof(list(
add_to_all_human_data_huds()
/mob/proc/make_invisible()
invisibility = INVISIBILITY_OBSERVER
invisibility = INVISIBILITY_LEVEL_TWO
alpha = 128
remove_from_all_data_huds()
+2 -2
View File
@@ -314,7 +314,7 @@
receive_damage(2, 1) //No flicky flicky on / off to fully negate damage
RegisterSignal(owner, COMSIG_CARBON_FLASH_EYES, PROC_REF(got_flashed))
active = TRUE
see_invisible = SEE_INVISIBLE_OBSERVER_AI_EYE
see_invisible = SEE_INVISIBLE_LEVEL_TWO
vision_flags = SEE_MOBS | SEE_OBJS | SEE_TURFS
lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE
flash_protect = FLASH_PROTECTION_VERYVUNERABLE //Flashing is it's weakness. I don't care how many protections you have up
@@ -351,4 +351,4 @@
name = "eye mark"
icon_state = "shield_reversed"
duration = 2 SECONDS
invisibility = INVISIBILITY_OBSERVER
invisibility = INVISIBILITY_LEVEL_TWO