Fixes attaching bits to smithed knives (#31235)

Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
PollardTheDragon
2025-12-18 09:22:53 +00:00
committed by GitHub
parent 6fc59844e9
commit fd63d61526
@@ -92,9 +92,8 @@
update_icon(UPDATE_OVERLAYS)
/obj/item/kitchen/knife/smithed/item_interaction(mob/living/user, obj/item/used, list/modifiers)
. = ..()
if(!isstack(used))
return ITEM_INTERACT_COMPLETE
return ..()
var/obj/item/stack/stacked_item = used
if(wrap_type)
to_chat(user, SPAN_WARNING("There is already a wrap on [src]!"))
@@ -114,7 +113,7 @@
wrap_to_attach = /datum/handle_wrapping/mothsilk
if(!wrap_to_attach)
to_chat(user, SPAN_WARNING("You cannot wrap [stacked_item] around [src]!"))
return ITEM_INTERACT_COMPLETE
return ..()
if(do_after_once(user, 5 SECONDS, target = src))
if(stacked_item.use(5))
attach_wrapping(wrap_to_attach)