8983a37320
cl Skoglol code: Added missing typepaths for syndicate implanters. tweak: Stealth implant now comes in a box. spellcheck: Changed the names of some syndicate boxes. /cl Some implanters were specific typepaths, others were basic implanters that had implants put in when the box was created. This makes them all behave the same. I considered removing the boxes for the implants as they aren't strictly needed to hold one thing, but I know some people like using boxes in their atmosphere and inventory management sim so I left them in. Otherwise, specifying that a box contains something that is boxed was silly so I changed that. Except for the space suit, because that feels right. And of course the stealth implant gotta come in a box.
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
/obj/item/implant/stealth
|
|
name = "S3 implant"
|
|
desc = "Allows you to be hidden in plain sight."
|
|
actions_types = list(/datum/action/item_action/agent_box)
|
|
|
|
/obj/item/implanter/stealth
|
|
name = "implanter (stealth)"
|
|
imp_type = /obj/item/implant/stealth
|
|
|
|
//Box Object
|
|
|
|
/obj/structure/closet/cardboard/agent
|
|
name = "inconspicious box"
|
|
desc = "It's so normal that you didn't notice it before."
|
|
icon_state = "agentbox"
|
|
move_speed_multiplier = 0.5
|
|
|
|
/obj/structure/closet/cardboard/agent/proc/go_invisible()
|
|
animate(src, , alpha = 0, time = 20)
|
|
|
|
/obj/structure/closet/cardboard/agent/Initialize()
|
|
. = ..()
|
|
go_invisible()
|
|
|
|
|
|
/obj/structure/closet/cardboard/agent/open()
|
|
. = ..()
|
|
qdel(src)
|
|
|
|
/obj/structure/closet/cardboard/agent/process()
|
|
alpha = max(0, alpha - 50)
|
|
|
|
/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))
|
|
reveal()
|
|
|
|
/obj/structure/closet/cardboard/agent/Bumped(atom/movable/A)
|
|
. = ..()
|
|
if(isliving(A))
|
|
reveal()
|