From b29643dace3308e6e9304c404d33cd3b600393b7 Mon Sep 17 00:00:00 2001 From: KasparoVy Date: Sat, 29 Aug 2015 14:03:45 -0400 Subject: [PATCH 1/3] Part 1 of new Disabilities in Player Creation Part 1 of the addition of Blind and Mute to the disabilities in the player creation dialogue. --- code/__DEFINES/genetics.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 From 963a7c0c96375b58e17cd016992feb2c789abb2f Mon Sep 17 00:00:00 2001 From: KasparoVy Date: Sat, 29 Aug 2015 14:05:12 -0400 Subject: [PATCH 2/3] Part 2 of new Disabilities in Player Creation Adds blind and mute to the disabilities list. --- code/modules/mob/new_player/new_player.dm | 8 ++++++++ 1 file changed, 8 insertions(+) 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) From 89547828e89ec244b95cc11289830928b11f57e2 Mon Sep 17 00:00:00 2001 From: KasparoVy Date: Sat, 29 Aug 2015 14:06:29 -0400 Subject: [PATCH 3/3] Part 3 of new Disabilities in Player Creation Adds blind and mute to the disabilities list. --- code/modules/client/preferences.dm | 2 ++ 1 file changed, 2 insertions(+) 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