mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user