Smith Polish - Item Insertion QOL (#28973)

* QOL

* Extra QOL
This commit is contained in:
PollardTheDragon
2025-04-24 14:33:16 +00:00
committed by GitHub
parent a545c21887
commit bef2f57a9d
2 changed files with 11 additions and 8 deletions
@@ -115,13 +115,14 @@
to_chat(user, "<span class='warning'>[used] does not fit in [src]'s cast slot.</span>")
return
if(cast)
to_chat(user, "<span class='warning'>[src] already has a cast inserted.</span>")
return
if(used.flags & NODROP || !user.transfer_item_to(used, src))
to_chat(user, "<span class='warning'>[used] is stuck to your hand!</span>")
return ITEM_INTERACT_COMPLETE
if(cast)
user.put_in_active_hand(cast)
to_chat(user, "<span class='notice'>You swap [used] with [cast] in [src].</span>")
else
to_chat(user, "<span class='notice'>You insert [used] into [src].</span>")
cast = used
update_icon(UPDATE_OVERLAYS)
return ITEM_INTERACT_COMPLETE
+6 -4
View File
@@ -52,14 +52,16 @@
return FINISH_ATTACK
if(istype(used, /obj/item/smithed_item/component))
if(working_component)
to_chat(user, "<span class='warning'>There is already a component in the machine!</span>")
return ITEM_INTERACT_COMPLETE
if(used.flags & NODROP || !user.drop_item() || !used.forceMove(src))
to_chat(user, "<span class='warning'>[used] is stuck to your hand!</span>")
return ITEM_INTERACT_COMPLETE
if(working_component)
user.put_in_active_hand(working_component)
to_chat(user, "<span class='notice'>You swap [used] with [working_component] in [src].</span>")
else
to_chat(user, "<span class='notice'>You insert [used] into [src].</span>")
working_component = used
return ITEM_INTERACT_COMPLETE
return ..()