Adds the Stealth implant, available to traitors (#21235)

* adds the stealth implant

* changes

- rename "implant" to "bio-chip"
- removes the stealth implant box in favor of spawning implant directly for the traitor
- makes the fake box not show up on right click. Makes the real box not show up on right click when invis

* sirryan pt1

* lewcc review 1

* fix conflict

* fix conflict

* signal handler
This commit is contained in:
SteelSlayer
2023-07-01 05:20:18 -05:00
committed by GitHub
parent 980fee9b60
commit 05c08aa01d
11 changed files with 213 additions and 19 deletions

View File

@@ -12,8 +12,10 @@
open_sound_volume = 35
close_sound_volume = 35
material_drop = /obj/item/stack/sheet/cardboard
/// How fast a mob can move inside this box.
var/move_speed_multiplier = 1
var/amt = 4
var/move_delay = 0
var/move_delay = FALSE
var/egged = 0
/obj/structure/closet/cardboard/relaymove(mob/living/user, direction)
@@ -22,8 +24,12 @@
move_delay = TRUE
var/oldloc = loc
step(src, direction)
// By default, while inside a box, we move at walk speed times the speed multipler of the box.
var/delay = GLOB.configuration.movement.base_walk_speed * move_speed_multiplier
if(IS_DIR_DIAGONAL(direction))
delay *= SQRT_2 // Moving diagonal counts as moving 2 tiles, we need to slow them down accordingly.
if(oldloc != loc)
addtimer(CALLBACK(src, PROC_REF(ResetMoveDelay)), GLOB.configuration.movement.base_walk_speed)
addtimer(CALLBACK(src, PROC_REF(ResetMoveDelay)), delay)
else
move_delay = FALSE
@@ -46,7 +52,7 @@
L.do_alert_animation(L)
egged = 1
alerted << sound('sound/machines/chime.ogg')
..()
return ..()
/mob/living/proc/do_alert_animation(atom/A)
var/image/I