Adjusts diver visibility in shallow water (#8697)

This commit is contained in:
Verkister
2024-07-27 18:21:52 +02:00
committed by GitHub
parent dba6af8168
commit f07e693ed0
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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"
@@ -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)