From 38a22b8e7c08160c29d27ed8d5116dc9ea36d883 Mon Sep 17 00:00:00 2001 From: fira Date: Mon, 6 Nov 2023 10:40:08 +0100 Subject: [PATCH] Hotfixes being able to put anything in your boots (#4845) ![](https://cdn.discordapp.com/attachments/862155128441012234/1170748366125277214/dreamseeker_Akwa4enIMm.gif) # About the pull request Typechecks weren't actually acted upon, letting you put anything in your boots. Like, anything. It's funny but it's both breaking things and problematic for balance # Explain why it's good for the game Self evident i think # Testing Photographs and Procedure Can only put knives in now, as CM Dev intended # Changelog :cl: fix: Fixed being able to put anything in your boots. You're not wizards! /:cl: --- code/modules/clothing/clothing.dm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/code/modules/clothing/clothing.dm b/code/modules/clothing/clothing.dm index a8f2a1776733..bffbda9f538a 100644 --- a/code/modules/clothing/clothing.dm +++ b/code/modules/clothing/clothing.dm @@ -341,9 +341,13 @@ return if(stored_item) return + var/allowed = FALSE for(var/allowed_item in items_allowed) - if(!istype(attacking_item, allowed_item)) - continue + if(istype(attacking_item, allowed_item)) + allowed = TRUE + break + if(!allowed) + return if(!insert_after) return TRUE insert_item(user, attacking_item)