Better Screen Tints (#12155)

This commit is contained in:
Geeves
2021-07-31 12:49:24 +02:00
committed by GitHub
parent a6b4229591
commit 15099384da
13 changed files with 39 additions and 8 deletions
+1 -1
View File
@@ -170,7 +170,7 @@ var/list/slot_equipment_priority = list( \
else
W.forceMove(get_turf(W))
W.layer = initial(W.layer)
W.dropped()
W.dropped(src)
return 0
// Removes an item from inventory and places it in the target atom.
@@ -521,7 +521,10 @@
H.set_fullscreen(H.stat == UNCONSCIOUS, "blackout", /obj/screen/fullscreen/blackout)
if(config.welder_vision)
H.set_fullscreen(H.equipment_tint_total, "welder", /obj/screen/fullscreen/impaired, H.equipment_tint_total)
if(H.equipment_tint_total)
H.overlay_fullscreen("welder", /obj/screen/fullscreen/impaired, H.equipment_tint_total, 0.5 SECONDS)
else
H.clear_fullscreen("welder")
var/how_nearsighted = get_how_nearsighted(H)
H.set_fullscreen(how_nearsighted, "nearsighted", /obj/screen/fullscreen/oxy, how_nearsighted)
H.set_fullscreen(H.eye_blurry, "blurry", /obj/screen/fullscreen/blurry)
+1 -1
View File
@@ -126,7 +126,7 @@
return FALSE
return TRUE
/mob/living/proc/handle_vision()
/mob/living/handle_vision()
update_sight()
if(stat == DEAD)
+4 -1
View File
@@ -1246,4 +1246,7 @@ proc/is_blind(A)
if(r_grab.wielded)
. = max(MOB_GRAB_FIREMAN, .)
else
. = max(MOB_GRAB_NORMAL, .)
. = max(MOB_GRAB_NORMAL, .)
/mob/proc/handle_vision()
return