Update holy_weapons.dm

This commit is contained in:
silicons
2021-09-12 20:05:47 -07:00
committed by GitHub
parent baa8d26428
commit 7aae90a360
+12 -7
View File
@@ -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)