From 40b556165b215e514864c6e4520ffdd0d1a0b23e Mon Sep 17 00:00:00 2001 From: Cael_Aislinn Date: Sat, 25 Aug 2012 07:11:09 +1000 Subject: [PATCH] tajaran and soghuns trying to put on fullbody suits have a 50% chance to do 10 brute damage to themselves by twisting their tails. skrell have the same chance and damage, but with their eartails instead Signed-off-by: Cael_Aislinn --- .../mob/living/carbon/human/inventory.dm | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index 306ca86f30..4d519d6cb9 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -219,10 +219,39 @@ src << "\red You are trying to eqip this item to an unsupported inventory slot. How the heck did you manage that? Stop it..." return + + //can't quite fit some alien bodyparts + var/cur_species = get_species() + if( W.body_parts_covered & LOWER_TORSO && W.flags_inv & HIDEJUMPSUIT && (cur_species == "Tajaran" || cur_species == "Soghun")) + if(prob(50)) + src << "\red You twist your tail trying to fit it in!" + apply_damage(10) + if( W.body_parts_covered & HEAD && W.flags & BLOCKHAIR && (cur_species == "Skrell")) + if(prob(50)) + src << "\red You twist your eartails trying to fit it in!" + apply_damage(10) + W.layer = 20 return +/* +/mob/living/carbon/human/proc/update_tail_showing(var/update_icons=1) + overlays_lying[TAIL_LAYER] = null + overlays_standing[TAIL_LAYER] = null + var/cur_species = get_species() + if( cur_species == "Tajaran") + if(!wear_suit || !(wear_suit.flags_inv & HIDEJUMPSUIT) && !istype(wear_suit, /obj/item/clothing/suit/space)) + overlays_lying[TAIL_LAYER] = image("icon" = 'icons/effects/genetics.dmi', "icon_state" = "tajtail_l") + overlays_standing[TAIL_LAYER] = image("icon" = 'icons/effects/genetics.dmi', "icon_state" = "tajtail_s") + else if( cur_species == "Soghun") + if(!wear_suit || !(wear_suit.flags_inv & HIDEJUMPSUIT) && !istype(wear_suit, /obj/item/clothing/suit/space)) + overlays_lying[TAIL_LAYER] = image("icon" = 'icons/effects/genetics.dmi', "icon_state" = "sogtail_l") + overlays_standing[TAIL_LAYER] = image("icon" = 'icons/effects/genetics.dmi', "icon_state" = "sogtail_s") + + if(update_icons) update_icons() + +*/