From fd6785277fccb7433abd013f8b5b3a41daa3a8a7 Mon Sep 17 00:00:00 2001 From: Arokha Sieyes Date: Wed, 22 Feb 2017 22:57:16 -0500 Subject: [PATCH] Further tweak spawn boxes Now you get an empty box if you're synthetic rather than nothing --- .../living/carbon/human/species/species.dm | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/code/modules/mob/living/carbon/human/species/species.dm b/code/modules/mob/living/carbon/human/species/species.dm index c65e79865d..93c06a647f 100644 --- a/code/modules/mob/living/carbon/human/species/species.dm +++ b/code/modules/mob/living/carbon/human/species/species.dm @@ -187,13 +187,18 @@ return sanitizeName(name) /datum/species/proc/equip_survival_gear(var/mob/living/carbon/human/H,var/extendedtank = 1) - if(!H.isSynthetic()) - if(H.backbag == 1) - if (extendedtank) H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/engineer(H), slot_r_hand) - else H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/survival(H), slot_r_hand) - else - if (extendedtank) H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/engineer(H.back), slot_in_backpack) - else H.equip_to_slot_or_del(new /obj/item/weapon/storage/box/survival(H.back), slot_in_backpack) + var/boxtype = /obj/item/weapon/storage/box/survival //Default survival box + if(H.isSynthetic()) + boxtype = /obj/item/weapon/storage/box //Empty box for synths + else if(extendedtank) + boxtype = /obj/item/weapon/storage/box/engineer //Special box for engineers + + if(H.backbag == 1) + if (extendedtank) H.equip_to_slot_or_del(new boxtype(H), slot_r_hand) + else H.equip_to_slot_or_del(new boxtype(H), slot_r_hand) + else + if (extendedtank) H.equip_to_slot_or_del(new boxtype(H.back), slot_in_backpack) + else H.equip_to_slot_or_del(new boxtype(H.back), slot_in_backpack) /datum/species/proc/create_organs(var/mob/living/carbon/human/H) //Handles creation of mob organs.