From f07e693ed0fd87629cd6efd023622ddb781f3ebd Mon Sep 17 00:00:00 2001 From: Verkister Date: Sat, 27 Jul 2024 19:21:52 +0300 Subject: [PATCH] Adjusts diver visibility in shallow water (#8697) --- code/__defines/mobs.dm | 2 +- code/modules/mob/_modifiers/modifiers_vr.dm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/code/__defines/mobs.dm b/code/__defines/mobs.dm index 8f0e3bf7a5..2d75d33a9d 100644 --- a/code/__defines/mobs.dm +++ b/code/__defines/mobs.dm @@ -447,7 +447,7 @@ #define MAX_NUTRITION 6000 //VOREStation Edit -#define FAKE_INVIS_ALPHA_THRESHOLD 127 // If something's alpha var is at or below this number, certain things will pretend it is invisible. +#define FAKE_INVIS_ALPHA_THRESHOLD 64 //CHOMPEdit. 25% down from 50% // If something's alpha var is at or below this number, certain things will pretend it is invisible. #define DEATHGASP_NO_MESSAGE "no message" diff --git a/code/modules/mob/_modifiers/modifiers_vr.dm b/code/modules/mob/_modifiers/modifiers_vr.dm index de156b2803..db06f73c1d 100644 --- a/code/modules/mob/_modifiers/modifiers_vr.dm +++ b/code/modules/mob/_modifiers/modifiers_vr.dm @@ -77,6 +77,10 @@ var/turf/simulated/floor/water/water_floor = holder.loc if(water_floor.depth < 1) //You're not in deep enough water anymore. expire(silent = FALSE) + if(water_floor.depth > 1) //CHOMPAdd Start + holder.alpha = 50 + else + holder.alpha = 65 //CHOMPAdd End else expire(silent = FALSE)