Skip to content

Commit

Permalink
balance: Rework DNA Increaserun (#6366)
Browse files Browse the repository at this point in the history
* False_bipki

* Delete

* Я скорость

* Это мой последний заезд
  • Loading branch information
lolybomb authored Jan 19, 2025
1 parent 37c6464 commit 24a0b8b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
18 changes: 11 additions & 7 deletions code/game/dna/genes/powers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,32 @@
name = "Super Speed"
activation_messages = list("Вы чувствуете себя быстрым и свободным.")
deactivation_messages = list("Вы чувствуете себя медленным.")
instability = GENE_INSTABILITY_MINOR
instability = GENE_INSTABILITY_MAJOR


/datum/dna/gene/basic/increaserun/New()
..()
block = GLOB.increaserunblock


/datum/dna/gene/basic/increaserun/can_activate(mob/living/mutant, flags)
/datum/dna/gene/basic/increaserun/can_activate(mob/living/carbon/human/human, flags)
. = ..()
if(mutant.dna.species.speed_mod && !(flags & MUTCHK_FORCED))
if(human.dna.species.speed_mod && !HASBIT(flags, MUTCHK_FORCED))
return FALSE


/datum/dna/gene/basic/increaserun/activate(mob/living/mutant, flags)
/datum/dna/gene/basic/increaserun/activate(mob/living/carbon/human/human, flags)
. = ..()
mutant.ignore_slowdown(DNA_TRAIT)
human.add_movespeed_modifier(/datum/movespeed_modifier/increaserun)
human.physiology.brute_mod *= 1.2
human.physiology.burn_mod *= 1.2


/datum/dna/gene/basic/increaserun/deactivate(mob/living/mutant, flags)
/datum/dna/gene/basic/increaserun/deactivate(mob/living/carbon/human/human, flags)
. = ..()
mutant.unignore_slowdown(DNA_TRAIT)
human.remove_movespeed_modifier(/datum/movespeed_modifier/increaserun)
human.physiology.brute_mod /= 1.2
human.physiology.burn_mod /= 1.2


/datum/dna/gene/basic/heat_resist
Expand Down
3 changes: 3 additions & 0 deletions code/modules/movespeed/modifiers/innate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
blacklisted_movetypes = (FLYING|FLOATING)
multiplicative_slowdown = -1

/datum/movespeed_modifier/increaserun
blacklisted_movetypes = (FLYING|FLOATING)
multiplicative_slowdown = -0.5

0 comments on commit 24a0b8b

Please sign in to comment.