Game folder
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
if(flags & COMPONENT_STOP_IMPLANTING)
|
||||
UNSETEMPTY(target.implants)
|
||||
return FALSE
|
||||
|
||||
|
||||
if(istype(imp_e, type))
|
||||
if(!allow_multiple)
|
||||
if(imp_e.uses < initial(imp_e.uses)*2)
|
||||
@@ -84,7 +84,7 @@
|
||||
H.sec_hud_set_implants()
|
||||
|
||||
if(user)
|
||||
add_logs(user, target, "implanted", "\a [name]")
|
||||
log_combat(user, target, "implanted", "\a [name]")
|
||||
|
||||
return TRUE
|
||||
|
||||
|
||||
@@ -48,14 +48,14 @@
|
||||
|
||||
/obj/item/implant/mindshield/removed(mob/target, silent = FALSE, special = 0)
|
||||
if(..())
|
||||
if(target.stat != DEAD && !silent)
|
||||
to_chat(target, "<span class='boldnotice'>Your mind suddenly feels terribly vulnerable. You are no longer safe from brainwashing.</span>")
|
||||
if(isliving(target))
|
||||
var/mob/living/L = target
|
||||
L.remove_trait(TRAIT_MINDSHIELD, "implant")
|
||||
L.sec_hud_set_implants()
|
||||
return TRUE
|
||||
return FALSE
|
||||
if(target.stat != DEAD && !silent)
|
||||
to_chat(target, "<span class='boldnotice'>Your mind suddenly feels terribly vulnerable. You are no longer safe from brainwashing.</span>")
|
||||
return 1
|
||||
return 0
|
||||
|
||||
/obj/item/implanter/mindshield
|
||||
name = "implanter (mindshield)"
|
||||
|
||||
@@ -9,11 +9,10 @@
|
||||
name = "inconspicious box"
|
||||
desc = "It's so normal that you didn't notice it before."
|
||||
icon_state = "agentbox"
|
||||
use_mob_movespeed = TRUE
|
||||
move_speed_multiplier = 0.5
|
||||
|
||||
/obj/structure/closet/cardboard/agent/proc/go_invisible()
|
||||
animate(src, , alpha = 0, time = 5)
|
||||
START_PROCESSING(SSobj, src)
|
||||
|
||||
/obj/structure/closet/cardboard/agent/Initialize()
|
||||
. = ..()
|
||||
@@ -25,14 +24,18 @@
|
||||
qdel(src)
|
||||
|
||||
/obj/structure/closet/cardboard/agent/process()
|
||||
animate(src, , alpha = alpha - 50, time = 3)
|
||||
alpha = max(0, alpha - 50)
|
||||
|
||||
/obj/structure/closet/cardboard/agent/Move()
|
||||
. = ..()
|
||||
if(.)
|
||||
alpha = min(alpha + 5, 255)
|
||||
/obj/structure/closet/cardboard/agent/proc/reveal()
|
||||
alpha = 255
|
||||
addtimer(CALLBACK(src, .proc/go_invisible), 10, TIMER_OVERRIDE|TIMER_UNIQUE)
|
||||
|
||||
/obj/structure/closet/cardboard/agent/Bump(atom/movable/A)
|
||||
. = ..()
|
||||
if(isliving(A))
|
||||
alpha = 255
|
||||
reveal()
|
||||
|
||||
/obj/structure/closet/cardboard/agent/Bumped(atom/movable/A)
|
||||
. = ..()
|
||||
if(isliving(A))
|
||||
reveal()
|
||||
|
||||
@@ -74,4 +74,4 @@
|
||||
|
||||
/obj/item/implanter/stealth
|
||||
name = "implanter (stealth)"
|
||||
imp_type = /obj/item/implant/stealth
|
||||
imp_type = /obj/item/implant/stealth
|
||||
Reference in New Issue
Block a user