Update holy_weapons.dm
This commit is contained in:
@@ -780,14 +780,19 @@
|
||||
if(iscarbon(loc))
|
||||
var/mob/living/carbon/wielder = loc
|
||||
if(wielder.is_holding(src))
|
||||
var/datum/movespeed_modifier/M = wielder.add_or_update_variable_movespeed_modifier(/datum/movespeed_modifier/item/arrythmic_knife, multiplicative_slowdown =
|
||||
pick(
|
||||
-10,
|
||||
-10,
|
||||
0,
|
||||
((10 / max(wielder.cached_multiplicative_movespeed, world.tick_lag) - 2) / 10),
|
||||
((10 / max(wielder.cached_multiplicative_movespeed, world.tick_lag) - 4) / 10))
|
||||
var/datum/movespeed_modifier/M = wielder.add_or_update_variable_movespeed_modifier(/datum/movespeed_modifier/item/arrythmic_knife,
|
||||
update = FALSE,
|
||||
multiplicative_slowdown =
|
||||
pick(
|
||||
-10,
|
||||
-10,
|
||||
0,
|
||||
((10 / max(wielder.cached_multiplicative_movespeed, world.tick_lag) - 2) / 10),
|
||||
((10 / max(wielder.cached_multiplicative_movespeed, world.tick_lag) - 4) / 10)
|
||||
)
|
||||
)
|
||||
M.max_tiles_per_second_boost = pick(3, 6)
|
||||
wielder.update_movespeed() // update movespeed manually
|
||||
|
||||
/obj/item/nullrod/tribal_knife/dropped(mob/user)
|
||||
user.remove_movespeed_modifier(/datum/movespeed_modifier/item/arrhythmic_knife)
|
||||
|
||||
Reference in New Issue
Block a user