Skip to content

Commit

Permalink
Add dark type argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Drulikar committed Apr 7, 2024
1 parent 5a1312e commit 4aa65d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/mob/living/living.dm
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,10 @@
/mob/proc/flash_eyes()
return

/mob/living/flash_eyes(intensity = EYE_PROTECTION_FLASH, bypass_checks, type = /atom/movable/screen/fullscreen/flash, flash_timer = 40)
/mob/living/flash_eyes(intensity = EYE_PROTECTION_FLASH, bypass_checks, flash_timer = 40, type = /atom/movable/screen/fullscreen/flash, dark_type = /atom/movable/screen/fullscreen/flash/dark)
if(bypass_checks || (get_eye_protection() < intensity && !(sdisabilities & DISABILITY_BLIND)))
if(client?.prefs?.flash_overlay_pref == FLASH_OVERLAY_DARK)
overlay_fullscreen("flash", /atom/movable/screen/fullscreen/flash/dark)
overlay_fullscreen("flash", dark_type)
else
overlay_fullscreen("flash", type)
spawn(flash_timer)
Expand Down

0 comments on commit 4aa65d2

Please sign in to comment.