Skip to content

Commit

Permalink
Fixing some rock candy effects...
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperjll committed Oct 14, 2024
1 parent 00bd274 commit 612216f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions hypermods/code/modules/movespeed/modifiers/reagent.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@
/datum/movespeed_modifier/reagent/diseasensstim
multiplicative_slowdown = -0.05

/datum/movespeed_modifier/reagent/rockcandymagic
multiplicative_slowdown = -0.05

/datum/movespeed_modifier/reagent/emeraldrockcandy
multiplicative_slowdown = -0.15

/datum/movespeed_modifier/reagent/hyperzine
multiplicative_slowdown = -1
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@

/datum/reagent/rockcandyemerald/on_mob_metabolize(mob/living/L)
..()
L.add_movespeed_modifier("emeraldrockcandy", update=TRUE, priority=100, multiplicative_slowdown=-0.15)
L.add_movespeed_modifier(/datum/movespeed_modifier/reagent/emeraldrockcandy)

/datum/reagent/rockcandyemerald/on_mob_end_metabolize(mob/living/L)
L.remove_movespeed_modifier("emeraldrockcandy")
L.remove_movespeed_modifier(/datum/movespeed_modifier/reagent/emeraldrockcandy)

/datum/reagent/rockcandytopaz
name = "Topaz Rock Candy"
Expand Down Expand Up @@ -174,7 +174,7 @@

/datum/reagent/rockcandymagic/on_mob_metabolize(mob/living/L)
..()
L.add_movespeed_modifier("magicrockcandy", update=TRUE, priority=100, multiplicative_slowdown=-0.05)
L.add_movespeed_modifier(/datum/movespeed_modifier/reagent/rockcandymagic)

var/mob/living/carbon/human/H = L
if(ishuman(L))
Expand All @@ -185,7 +185,7 @@
H.physiology.oxy_mod *= 0.925

/datum/reagent/rockcandymagic/on_mob_end_metabolize(mob/living/L)
L.remove_movespeed_modifier("magicrockcandy")
L.remove_movespeed_modifier(/datum/movespeed_modifier/reagent/rockcandymagic)

var/mob/living/carbon/human/H = L
if(ishuman(L))
Expand Down

0 comments on commit 612216f

Please sign in to comment.