diff --git a/code/__DEFINES/genetics.dm b/code/__DEFINES/genetics.dm index 4b8f65601af..dd5ce7b52c6 100644 --- a/code/__DEFINES/genetics.dm +++ b/code/__DEFINES/genetics.dm @@ -7,6 +7,8 @@ #define DISABILITY_FLAG_FAT 2 #define DISABILITY_FLAG_EPILEPTIC 4 #define DISABILITY_FLAG_DEAF 8 +#define DISABILITY_FLAG_BLIND 16 +#define DISABILITY_FLAG_MUTE 32 /////////////////////////////////////// // MUTATIONS @@ -93,4 +95,4 @@ //sdisabilities #define BLIND 1 #define MUTE 2 -#define DEAF 4 \ No newline at end of file +#define DEAF 4 diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index e2d4a48e58d..a2e2387eebc 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -670,6 +670,8 @@ datum/preferences HTML += ShowDisabilityState(user,DISABILITY_FLAG_FAT,"Obese") HTML += ShowDisabilityState(user,DISABILITY_FLAG_EPILEPTIC,"Seizures") HTML += ShowDisabilityState(user,DISABILITY_FLAG_DEAF,"Deaf") + HTML += ShowDisabilityState(user,DISABILITY_FLAG_BLIND,"Blind") + HTML += ShowDisabilityState(user,DISABILITY_FLAG_MUTE,"Mute") // AUTOFIXED BY fix_string_idiocy.py diff --git a/code/modules/mob/new_player/new_player.dm b/code/modules/mob/new_player/new_player.dm index cdbf376e97f..fcde5e4a7f3 100644 --- a/code/modules/mob/new_player/new_player.dm +++ b/code/modules/mob/new_player/new_player.dm @@ -505,6 +505,14 @@ new_character.dna.SetSEState(DEAFBLOCK,1,1) new_character.sdisabilities |= DEAF + if(client.prefs.disabilities & DISABILITY_FLAG_BLIND) + new_character.dna.SetSEState(BLINDBLOCK,1,1) + new_character.sdisabilities |= BLIND + + if(client.prefs.disabilities & DISABILITY_FLAG_MUTE) + new_character.dna.SetSEState(MUTEBLOCK,1,1) + new_character.sdisabilities |= MUTE + chosen_species.handle_dna(new_character) domutcheck(new_character)