mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-22 04:24:20 +01:00
Migrates /obj/item/clothing to the New Attack Chain (#31421)
* the beginning of my torment * This was a very small piece of torment * God agghhghhhh the suffering * pain and suffering and destruction * Update bot_construction.dm * Update heretic_necks.dm * Update heretic_armor.dm * Apply suggestions from code review Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> * Apply suggestion from @DGamerL Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --------- Signed-off-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com> Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -185,17 +185,22 @@
|
||||
. = ..()
|
||||
mod_link?.end_call()
|
||||
|
||||
/obj/item/clothing/neck/link_scryer/attack_self__legacy__attackchain(mob/user)
|
||||
/obj/item/clothing/neck/link_scryer/activate_self(mob/user)
|
||||
if(..())
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
var/new_label = reject_bad_text(tgui_input_text(user, "Change the visible name", "Set Name", label, MAX_NAME_LEN))
|
||||
if(!user.is_holding(src))
|
||||
return
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(!new_label)
|
||||
to_chat(user, SPAN_WARNING("That name is invalid!"))
|
||||
return
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
label = new_label
|
||||
to_chat(user, SPAN_NOTICE("You set the name as [label]."))
|
||||
update_appearance(UPDATE_NAME)
|
||||
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
/obj/item/clothing/neck/link_scryer/multitool_act(mob/user, obj/item/I)
|
||||
. = TRUE
|
||||
@@ -247,16 +252,22 @@
|
||||
return
|
||||
cell.use(50)
|
||||
|
||||
/obj/item/clothing/neck/link_scryer/attackby__legacy__attackchain(obj/item/O, mob/user, params)
|
||||
. = ..()
|
||||
if(cell || !istype(O, /obj/item/stock_parts/cell))
|
||||
return
|
||||
/obj/item/clothing/neck/link_scryer/item_interaction(mob/living/user, obj/item/used, list/modifiers)
|
||||
if(!istype(used, /obj/item/stock_parts/cell))
|
||||
return ..()
|
||||
|
||||
if(cell)
|
||||
to_chat(user, SPAN_WARNING("[src] already has a cell!"))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(!user.drop_item())
|
||||
to_chat(user, SPAN_WARNING("[O] is stuck to your hand!"))
|
||||
return
|
||||
O.forceMove(src)
|
||||
cell = O
|
||||
to_chat(user, SPAN_NOTICE("You load [O] into [src]."))
|
||||
to_chat(user, SPAN_WARNING("[used] is stuck to your hand!"))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
used.forceMove(src)
|
||||
cell = used
|
||||
to_chat(user, SPAN_NOTICE("You load [used] into [src]."))
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
/obj/item/clothing/neck/link_scryer/update_name(updates)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user