mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
@@ -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
|
||||
|
||||
@@ -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 ..()
|
||||
|
||||
Reference in New Issue
Block a user