Migrate pens to the new attack chain. (#31992)

* Migrate pens to the new attack chain.

* Set attack chain var to new.

* Migrate more procs in pen.dm and misc_robot_items.dm

* Call parent attack proc in pen.dm.

* Apply suggestions from CRUNCH review.

Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

* Change sleepy pen attack() to interact_with_atom().

* Apply suggestions from CRUNCH review.

Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

---------

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>
Co-authored-by: CRUNCH <143041327+CRUNCH-Borg@users.noreply.github.com>
This commit is contained in:
Alan
2026-05-17 18:42:36 +00:00
committed by GitHub
co-authored by CRUNCH
parent 96b19c91ef
commit e7c33633fa
2 changed files with 44 additions and 32 deletions
@@ -6,10 +6,12 @@
name = "Printing Pen"
var/mode = 1
/obj/item/pen/multi/robopen/attack_self__legacy__attackchain(mob/user as mob)
var/choice = tgui_input_list(user, "Would you like to change colour or mode?", name, list("Colour","Mode"))
/obj/item/pen/multi/robopen/activate_self(mob/user)
if(!user)
return ..()
var/choice = tgui_input_list(user, "Would you like to change colour or mode?", name, list("Colour", "Mode"))
if(!choice)
return
return ITEM_INTERACT_COMPLETE
switch(choice)
if("Colour")
@@ -21,7 +23,7 @@
mode = 1
to_chat(user, "Changed printing mode to '[mode == 2 ? "Rename Paper" : "Write Paper"]'")
playsound(src.loc, 'sound/effects/pop.ogg', 50, 0)
return
return ITEM_INTERACT_COMPLETE
// Copied over from paper's rename verb
// see code\modules\paperwork\paper.dm line 62