From 0ebe28dbea8c4d494f45c79473555e116ac7dbdd Mon Sep 17 00:00:00 2001 From: mwerezak Date: Wed, 28 Jan 2015 13:19:01 -0500 Subject: [PATCH 1/2] Fixes #7958 --- code/modules/clothing/spacesuits/void/void.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/modules/clothing/spacesuits/void/void.dm b/code/modules/clothing/spacesuits/void/void.dm index a1e6ab2714..2c5b9f2378 100644 --- a/code/modules/clothing/spacesuits/void/void.dm +++ b/code/modules/clothing/spacesuits/void/void.dm @@ -55,6 +55,13 @@ var/obj/item/clothing/shoes/magboots/boots = null // Deployable boots, if any. var/obj/item/clothing/head/helmet/helmet = null // Deployable helmet, if any. +/obj/item/clothing/suit/space/void/refit_for_species(var/target_species) + ..() + if(istype(helmet)) + helmet.refit_for_species(target_species) + if(istype(boots)) + boots.refit_for_species(target_species) + /obj/item/clothing/suit/space/void/equipped(mob/M) ..() From 0c82682578a0af9482086b6b8e14e52284b39504 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 29 Jan 2015 13:18:48 -0500 Subject: [PATCH 2/2] Clothing that does not use species restrictions no longer gains species restrictions when refit. --- code/modules/clothing/clothing.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 83a0e1864d..d85db87608 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -44,6 +44,9 @@ return 1 /obj/item/clothing/proc/refit_for_species(var/target_species) + if(!species_restricted) + return //this item doesn't use the species_restricted system + //Set species_restricted list switch(target_species) if("Human", "Skrell") //humanoid bodytypes @@ -63,6 +66,9 @@ icon = initial(icon) /obj/item/clothing/head/helmet/refit_for_species(var/target_species) + if(!species_restricted) + return //this item doesn't use the species_restricted system + //Set species_restricted list switch(target_species) if("Skrell")