mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 16:48:12 +01:00
[MIRROR] Begin clickcode attack_self fix (#12173)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
063cf6cf48
commit
3cac28f9ad
@@ -32,7 +32,22 @@
|
||||
toolspeed = 1
|
||||
tool_qualities = list(TOOL_MULTITOOL)
|
||||
|
||||
var/uplink = FALSE
|
||||
|
||||
/obj/item/multitool/attack_self(mob/living/user)
|
||||
. = ..(user)
|
||||
if(.)
|
||||
return TRUE
|
||||
if(uplink)
|
||||
return
|
||||
|
||||
if(selected_io)
|
||||
selected_io = null
|
||||
to_chat(user, span_notice("You clear the wired connection from the multitool."))
|
||||
update_icon()
|
||||
return
|
||||
|
||||
update_icon()
|
||||
var/choice = tgui_alert(user, "What do you want to do with \the [src]?", "Multitool Menu", list("Switch Mode", "Clear Buffers", "Cancel"))
|
||||
switch(choice)
|
||||
if("Clear Buffers")
|
||||
@@ -52,8 +67,6 @@
|
||||
|
||||
update_icon()
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/item/multitool/proc/mode_switch(mob/living/user)
|
||||
if(mode_index + 1 > modes.len) mode_index = 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user