mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Better Client Colors and Drugs (#9102)
The druggy overlay has been upgraded. Ports NebulaSS13/Nebula#619 Also ports CrimsonShrike's colour multiplication code which allows client colours to affect eachother.
This commit is contained in:
@@ -225,8 +225,12 @@
|
||||
if (eye_blurry)
|
||||
client.screen += global_hud.blurry
|
||||
|
||||
if (druggy)
|
||||
if(druggy)
|
||||
client.screen += global_hud.druggy
|
||||
if(druggy > 5)
|
||||
add_client_color(/datum/client_color/oversaturated)
|
||||
else
|
||||
remove_client_color(/datum/client_color/oversaturated)
|
||||
|
||||
if (stat != 2)
|
||||
if (machine)
|
||||
|
||||
@@ -494,8 +494,15 @@
|
||||
H.client.screen += global_hud.darkMask
|
||||
else if((!H.equipment_prescription && (H.disabilities & NEARSIGHTED)) || H.equipment_tint_total == TINT_MODERATE)
|
||||
H.client.screen += global_hud.vimpaired
|
||||
if(H.eye_blurry) H.client.screen += global_hud.blurry
|
||||
if(H.druggy) H.client.screen += global_hud.druggy
|
||||
if(H.eye_blurry)
|
||||
H.client.screen += global_hud.blurry
|
||||
|
||||
if(H.druggy)
|
||||
H.client.screen += global_hud.druggy
|
||||
if(H.druggy > 5)
|
||||
H.add_client_color(/datum/client_color/oversaturated)
|
||||
else
|
||||
H.remove_client_color(/datum/client_color/oversaturated)
|
||||
|
||||
for(var/overlay in H.equipment_overlays)
|
||||
H.client.screen |= overlay
|
||||
|
||||
@@ -152,12 +152,17 @@
|
||||
blind.invisibility = 0
|
||||
else
|
||||
blind.invisibility = 101
|
||||
if (disabilities & NEARSIGHTED)
|
||||
if(disabilities & NEARSIGHTED)
|
||||
client.screen += global_hud.vimpaired
|
||||
if (eye_blurry)
|
||||
if(eye_blurry)
|
||||
client.screen += global_hud.blurry
|
||||
if (druggy)
|
||||
|
||||
if(druggy)
|
||||
client.screen += global_hud.druggy
|
||||
if(druggy > 5)
|
||||
add_client_color(/datum/client_color/oversaturated)
|
||||
else
|
||||
remove_client_color(/datum/client_color/oversaturated)
|
||||
if(machine)
|
||||
var/viewflags = machine.check_eye(src)
|
||||
if(viewflags < 0)
|
||||
|
||||
Reference in New Issue
Block a user