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
@@ -152,6 +152,7 @@ Due to the small chemical capacity of the implant, the life of the implant is re
|
||||
entities to perform espionage and in some parts of space are used off the books for interrogation. Most of the makers of these modified implants have put in \
|
||||
safeties to prevent lethal or actively harmful commands from being input to lessen the severity of the crime if they are caught. This one has a golden stamp \
|
||||
with the shape of a star on it, the letters 'KE' in black text on it."
|
||||
special_handling = TRUE
|
||||
|
||||
/obj/item/implanter/compliance/Initialize(mapload)
|
||||
. = ..()
|
||||
@@ -159,6 +160,9 @@ Due to the small chemical capacity of the implant, the life of the implant is re
|
||||
update()
|
||||
|
||||
/obj/item/implanter/compliance/attack_self(mob/user)
|
||||
. = ..(user)
|
||||
if(.)
|
||||
return TRUE
|
||||
if(istype(imp,/obj/item/implant/compliance))
|
||||
var/obj/item/implant/compliance/implant = imp
|
||||
var/newlaws = tgui_input_text(user, "Please Input Laws", "Compliance Laws", "", multiline = TRUE, prevent_enter = TRUE)
|
||||
|
||||
@@ -46,4 +46,7 @@
|
||||
..()
|
||||
|
||||
/obj/item/implant/integrated_circuit/attack_self(mob/user)
|
||||
. = ..(user)
|
||||
if(.)
|
||||
return TRUE
|
||||
IC.attack_self(user)
|
||||
|
||||
@@ -9,8 +9,15 @@
|
||||
matter = list(MAT_STEEL = 1000, MAT_GLASS = 1000)
|
||||
var/obj/item/implant/imp = null
|
||||
var/active = 1
|
||||
///Var for attack_self chain
|
||||
var/special_handling = FALSE
|
||||
|
||||
/obj/item/implanter/attack_self(var/mob/user)
|
||||
/obj/item/implanter/attack_self(mob/user)
|
||||
. = ..(user)
|
||||
if(.)
|
||||
return TRUE
|
||||
if(special_handling)
|
||||
return FALSE
|
||||
active = !active
|
||||
to_chat(user, span_notice("You [active ? "" : "de"]activate \the [src]."))
|
||||
update()
|
||||
|
||||
@@ -47,7 +47,10 @@
|
||||
return
|
||||
|
||||
|
||||
/obj/item/implantpad/attack_self(mob/user as mob)
|
||||
/obj/item/implantpad/attack_self(mob/user)
|
||||
. = ..(user)
|
||||
if(.)
|
||||
return TRUE
|
||||
user.set_machine(src)
|
||||
var/dat = span_bold("Implant Mini-Computer:") + "<HR>"
|
||||
if (src.case)
|
||||
|
||||
Reference in New Issue
Block a user