mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-26 23:46:48 +01:00
reworks staggering effects (#5504)
Co-authored-by: silicons <no@you.cat>
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
#define MAX_STAGGER_STACKS 30
|
||||
#define STACKS_TO_SLOWDOWN(amt) (amt * (1 / 3.5))
|
||||
|
||||
/datum/status_effect/stacking/staggered
|
||||
identifier = "staggered"
|
||||
duration = 1 SECONDS
|
||||
max_stacks = MAX_STAGGER_STACKS
|
||||
|
||||
|
||||
/datum/status_effect/stacking/staggered/on_stacks(old_stacks, new_stacks, decayed)
|
||||
. = ..()
|
||||
if(!new_stacks)
|
||||
owner.remove_movespeed_modifier(/datum/movespeed_modifier/mob_staggered)
|
||||
else
|
||||
owner.add_or_update_variable_movespeed_modifier(/datum/movespeed_modifier/mob_staggered, multiplicative_slowdown = STACKS_TO_SLOWDOWN(new_stacks))
|
||||
|
||||
#undef STACKS_TO_SLOWDOWN
|
||||
#undef MAX_STAGGER_STACKS
|
||||
Reference in New Issue
Block a user