mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-23 05:07:51 +01:00
Adjusts diver visibility in shallow water (#8697)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user