From e952644ae27fbc3e01931d2e0f2ae341bbcb9f0a Mon Sep 17 00:00:00 2001 From: Remie Richards Date: Sat, 21 May 2016 21:20:31 +0100 Subject: [PATCH] Improves how a seifuku is picked, abides by japanese honour system. --- code/modules/admin/secrets.dm | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/code/modules/admin/secrets.dm b/code/modules/admin/secrets.dm index 87a68d3ea90..7300e294879 100644 --- a/code/modules/admin/secrets.dm +++ b/code/modules/admin/secrets.dm @@ -393,17 +393,12 @@ if(H.dna.features["tail_human"] == "None" || H.dna.features["ears"] == "None") H.dna.features["tail_human"] = "Cat" H.dna.features["ears"] = "Cat" - var/obj/item/clothing/under/schoolgirl/I - var/random = rand(1,4) - switch(random) - if(1) - I = new /obj/item/clothing/under/schoolgirl - if(2) - I = new /obj/item/clothing/under/schoolgirl/red - if(3) - I = new /obj/item/clothing/under/schoolgirl/green - if(4) - I = new /obj/item/clothing/under/schoolgirl/orange + var/seifuku = pick(typesof(/obj/item/clothing/under/schoolgirl)) + var/obj/item/clothing/under/schoolgirl/I = new seifuku + var/list/honorifics = list(MALE = list("kun"), FEMALE = list("chan","tan"), NEUTER = list("san")) //John Robust -> Robust-kun + var/list/names = splittext(H.real_name," ") + var/newname = "[names[2]]-[pick(honorifics[H.gender])]" + H.fully_replace_character_name(H.real_name,newname) H.unEquip(H.w_uniform) H.equip_to_slot_or_del(I, slot_w_uniform) I.flags |= NODROP