Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Adds colorblindness as a mild brain trauma (#76527) #2546

Merged
merged 1 commit into from
Mar 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions code/datums/brain_damage/mild.dm
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,18 @@
speak_dejavu += speech_args[SPEECH_MESSAGE]
else
speak_dejavu += speech_args[SPEECH_MESSAGE]

/datum/brain_trauma/mild/color_blindness
name = "Achromatopsia"
desc = "Patient's occipital lobe is unable to recognize and interpret color, rendering the patient completely colorblind."
scan_desc = "colorblindness"
gain_text = span_warning("The world around you seems to lose its color.")
lose_text = span_notice("The world feels bright and colorful again.")

/datum/brain_trauma/mild/color_blindness/on_gain()
owner.add_client_colour(/datum/client_colour/monochrome/colorblind)
return ..()

/datum/brain_trauma/mild/color_blindness/on_lose(silent)
owner.remove_client_colour(/datum/client_colour/monochrome/colorblind)
return ..()
3 changes: 3 additions & 0 deletions code/modules/client/client_colour.dm
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
fade_in = 20
fade_out = 20

/datum/client_colour/monochrome/colorblind
priority = PRIORITY_HIGH

/datum/client_colour/monochrome/trance
priority = PRIORITY_NORMAL

Expand Down
Loading