From 24a0b8b12d710d893d02fe88b195ccb569118c53 Mon Sep 17 00:00:00 2001 From: NoName <74314211+lolybomb@users.noreply.github.com> Date: Mon, 20 Jan 2025 00:10:26 +0200 Subject: [PATCH] balance: Rework DNA Increaserun (#6366) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * False_bipki * Delete * Я скорость * Это мой последний заезд --- code/game/dna/genes/powers.dm | 18 +++++++++++------- code/modules/movespeed/modifiers/innate.dm | 3 +++ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/code/game/dna/genes/powers.dm b/code/game/dna/genes/powers.dm index 516d508005b..f3b5ad15942 100644 --- a/code/game/dna/genes/powers.dm +++ b/code/game/dna/genes/powers.dm @@ -36,7 +36,7 @@ name = "Super Speed" activation_messages = list("Вы чувствуете себя быстрым и свободным.") deactivation_messages = list("Вы чувствуете себя медленным.") - instability = GENE_INSTABILITY_MINOR + instability = GENE_INSTABILITY_MAJOR /datum/dna/gene/basic/increaserun/New() @@ -44,20 +44,24 @@ 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 diff --git a/code/modules/movespeed/modifiers/innate.dm b/code/modules/movespeed/modifiers/innate.dm index 3621beaecc0..f0584770c43 100644 --- a/code/modules/movespeed/modifiers/innate.dm +++ b/code/modules/movespeed/modifiers/innate.dm @@ -7,3 +7,6 @@ blacklisted_movetypes = (FLYING|FLOATING) multiplicative_slowdown = -1 +/datum/movespeed_modifier/increaserun + blacklisted_movetypes = (FLYING|FLOATING) + multiplicative_slowdown = -0.5