From ae12f47463a8eb9c49238f44ea3df779b1720f65 Mon Sep 17 00:00:00 2001 From: ivanmixo Date: Sat, 28 Sep 2024 21:39:03 +0200 Subject: [PATCH] Temporary hotfix for stripmenu equipping --- code/modules/mob/living/carbon/human/inventory.dm | 3 +++ code/modules/mob/living/carbon/xenomorph/xenomorph.dm | 3 +++ 2 files changed, 6 insertions(+) diff --git a/code/modules/mob/living/carbon/human/inventory.dm b/code/modules/mob/living/carbon/human/inventory.dm index f50534ca9b3d9..bd69d865f03b1 100644 --- a/code/modules/mob/living/carbon/human/inventory.dm +++ b/code/modules/mob/living/carbon/human/inventory.dm @@ -249,6 +249,9 @@ //set redraw_mob to 0 if you don't wish the hud to be updated - if you're doing it manually in your own proc. /mob/living/carbon/human/equip_to_slot(obj/item/item_to_equip, slot, bitslot = FALSE) . = ..() + if(bitslot) + var/oldslot = slot + slot = slotbit2slotdefine(oldslot) if(!has_limb_for_slot(slot)) return diff --git a/code/modules/mob/living/carbon/xenomorph/xenomorph.dm b/code/modules/mob/living/carbon/xenomorph/xenomorph.dm index 7d89916306004..b55b8c47cc207 100644 --- a/code/modules/mob/living/carbon/xenomorph/xenomorph.dm +++ b/code/modules/mob/living/carbon/xenomorph/xenomorph.dm @@ -516,6 +516,9 @@ Returns TRUE when loc_weeds_type changes. Returns FALSE when it doesn’t change /mob/living/carbon/xenomorph/equip_to_slot(obj/item/item_to_equip, slot, bitslot) . = ..() + if(bitslot) + var/oldslot = slot + slot = slotbit2slotdefine(oldslot) switch(slot) if(SLOT_BACK) back = item_to_equip