diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index 27b9d71f7ec..d5a7808b98b 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -557,6 +557,8 @@ var/ignore_suitadjust = TRUE var/adjust_flavour = null var/list/hide_tail_by_species = null + /// Maximum weight class of an item in the suit storage slot. + var/max_suit_w = WEIGHT_CLASS_BULKY //Proc that opens and closes jackets. /obj/item/clothing/suit/proc/adjustsuit(mob/user) diff --git a/code/modules/clothing/suits/wiz_robe.dm b/code/modules/clothing/suits/wiz_robe.dm index 55a11bd3be9..f59a6bf7985 100644 --- a/code/modules/clothing/suits/wiz_robe.dm +++ b/code/modules/clothing/suits/wiz_robe.dm @@ -89,7 +89,8 @@ permeability_coefficient = 0.01 body_parts_covered = UPPER_TORSO|LOWER_TORSO|ARMS|LEGS armor = list(MELEE = 20, BULLET = 10, LASER = 10, ENERGY = 10, BOMB = 10, RAD = 10, FIRE = INFINITY, ACID = INFINITY) - allowed = list(/obj/item/teleportation_scroll) + allowed = list(/obj/item/teleportation_scroll, /obj/item/gun/magic/staff, /obj/item/melee/ghost_sword, /obj/item/lava_staff, /obj/item/hierophant_club) + max_suit_w = WEIGHT_CLASS_HUGE flags_inv = HIDEJUMPSUIT strip_delay = 50 put_on_delay = 50 diff --git a/code/modules/mob/living/carbon/human/species/_species.dm b/code/modules/mob/living/carbon/human/species/_species.dm index 86f1f6f0841..e3424dd4557 100644 --- a/code/modules/mob/living/carbon/human/species/_species.dm +++ b/code/modules/mob/living/carbon/human/species/_species.dm @@ -809,7 +809,7 @@ if(!disable_warning) to_chat(H, "You somehow have a suit with no defined allowed items for suit storage, stop that.") return FALSE - if(I.w_class > WEIGHT_CLASS_BULKY) + if(I.w_class > H.wear_suit.max_suit_w) if(!disable_warning) to_chat(H, "[I] is too big to attach.") return FALSE diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index bad40d7dbaf..374a7339c2c 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -461,7 +461,7 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \ if(!disable_warning) to_chat(usr, "You somehow have a suit with no defined allowed items for suit storage, stop that.") return 0 - if(src.w_class > WEIGHT_CLASS_BULKY) + if(w_class > H.wear_suit.max_suit_w) if(!disable_warning) to_chat(usr, "The [name] is too big to attach.") return 0