mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Refactor sync_nightvision_screen() into sync_lighting_plane_alpha()
Done to avoid having to manually write in the call of the proc since it is needed everywhere sync_lighting_plane_alph() is anyhow.
This commit is contained in:
@@ -1357,7 +1357,6 @@ var/list/slot_equipment_priority = list( \
|
||||
/mob/proc/update_sight()
|
||||
SEND_SIGNAL(src, COMSIG_MOB_UPDATE_SIGHT)
|
||||
sync_lighting_plane_alpha()
|
||||
sync_nightvision_screen()
|
||||
|
||||
/mob/proc/sync_lighting_plane_alpha()
|
||||
if(hud_used)
|
||||
@@ -1365,6 +1364,8 @@ var/list/slot_equipment_priority = list( \
|
||||
if(L)
|
||||
L.alpha = lighting_alpha
|
||||
|
||||
sync_nightvision_screen() //Sync up the overlay used for nightvision to the amount of see_in_dark a mob has. This needs to be called everywhere sync_lighting_plane_alpha() is.
|
||||
|
||||
/mob/proc/sync_nightvision_screen()
|
||||
var/obj/screen/fullscreen/see_through_darkness/S = screens["see_through_darkness"]
|
||||
if(S)
|
||||
|
||||
Reference in New Issue
Block a user