From 12aa256a38af4a91ef9f274416a943234c5869f4 Mon Sep 17 00:00:00 2001 From: HugoLuman Date: Thu, 14 Apr 2016 15:22:47 -0700 Subject: [PATCH] Adds karma/whitelist code This makes them a 30 KP shop option, but could be altered to 45 KP without having to move their place on the list. Signed-off-by: HugoLuman --- code/modules/client/client procs.dm | 10 ++++++++-- code/modules/mob/language.dm | 2 +- code/modules/mob/living/carbon/human/species/drask.dm | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/code/modules/client/client procs.dm b/code/modules/client/client procs.dm index 31db10045f0..be394de2e69 100644 --- a/code/modules/client/client procs.dm +++ b/code/modules/client/client procs.dm @@ -163,20 +163,26 @@ src.DB_species_unlock("Grey",30) return if("4") + if(karma <30) + to_chat(usr, "You do not have enough karma!") + return + else + src.DB_species_unlock("Drask",30) + if("5") if(karma <45) to_chat(usr, "You do not have enough karma!") return else src.DB_species_unlock("Vox",45) return - if("5") + if("6") if(karma <45) to_chat(usr, "You do not have enough karma!") return else src.DB_species_unlock("Slime People",45) return - if("6") + if("7") if(karma <100) to_chat(usr, "You do not have enough karma!") return diff --git a/code/modules/mob/language.dm b/code/modules/mob/language.dm index ead49d9af6f..d40b0ad9253 100644 --- a/code/modules/mob/language.dm +++ b/code/modules/mob/language.dm @@ -284,7 +284,7 @@ exclaim_verb = "rumbles" colour = "drask" key = "%" - flags = RESTRICTED + flags = RESTRICTED | WHITELISTED syllables = list("hoorb","vrrm","ooorm","urrrum","ooum","ee","ffm","hhh","mn","ongg") /datum/language/drask/get_random_name() diff --git a/code/modules/mob/living/carbon/human/species/drask.dm b/code/modules/mob/living/carbon/human/species/drask.dm index 73e134c9782..57dc991b1d0 100644 --- a/code/modules/mob/living/carbon/human/species/drask.dm +++ b/code/modules/mob/living/carbon/human/species/drask.dm @@ -26,7 +26,7 @@ in their labyrinthine settlements, carved out beneath Hoorlm's icy surface, where the air \ is of breathable density." - flags = HAS_LIPS + flags = IS_WHITELISTED | HAS_LIPS clothing_flags = HAS_UNDERWEAR | HAS_UNDERSHIRT bodyflags = FEET_CLAWS | HAS_SKIN_TONE dietflags = DIET_OMNI