mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
Fixes attaching bits to smithed knives (#31235)
Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user