Skip to content

Commit

Permalink
tweak: Cardboard Speed Fix (#4106)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gottfrei authored Dec 22, 2023
1 parent 5e37e58 commit 3bae879
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/game/objects/items/weapons/implants/implant_stealth.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
/datum/action/item_action/agent_box/proc/start_cooldown(datum/source)
SIGNAL_HANDLER
on_cooldown = TRUE
addtimer(CALLBACK(src, PROC_REF(end_cooldown)), 10 SECONDS)
addtimer(CALLBACK(src, PROC_REF(end_cooldown)), 1 SECONDS)
UpdateButtonIcon()


Expand Down Expand Up @@ -131,7 +131,6 @@
desc = "It's so normal that you didn't notice it before."
icon_state = "agentbox"
max_integrity = 1
move_speed_multiplier = 0.5 // You can move at run speed while in this box.
material_drop = null
/// UID of the person who summoned this box with an implant.
var/implant_user_UID
Expand Down Expand Up @@ -185,9 +184,8 @@

/obj/structure/closet/cardboard/agent/proc/go_invisible(invis_time = 2 SECONDS)
animate(src, alpha = 0, time = invis_time)
sleep(invis_time)
// This is so people can't locate the box by spamming right click everywhere.
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
addtimer(VARSET_CALLBACK(src, mouse_opacity, MOUSE_OPACITY_TRANSPARENT), invis_time)


/obj/structure/closet/cardboard/agent/proc/reveal()
Expand Down

0 comments on commit 3bae879

Please sign in to comment.