From a102a70d5ce69b42c406660eb01230f91b392096 Mon Sep 17 00:00:00 2001 From: InsaneRed <47158596+InsaneRed@users.noreply.github.com> Date: Tue, 26 Dec 2023 07:43:52 +0300 Subject: [PATCH] Spitter ability bugfix (#5296) # About the pull request Properly recalculates armor for when the ability is being used / deactivated # Explain why it's good for the game bugfix # Testing Photographs and Procedure
it works
# Changelog :cl: fix: Spitter's charge spit abiltiy now properly adds and removes the 5 armor like its supposed to initially. /:cl: Co-authored-by: InsaneRed --- .../living/carbon/xenomorph/abilities/spitter/spitter_powers.dm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/modules/mob/living/carbon/xenomorph/abilities/spitter/spitter_powers.dm b/code/modules/mob/living/carbon/xenomorph/abilities/spitter/spitter_powers.dm index 1385eb1cf668..c6ba00d9a3bb 100644 --- a/code/modules/mob/living/carbon/xenomorph/abilities/spitter/spitter_powers.dm +++ b/code/modules/mob/living/carbon/xenomorph/abilities/spitter/spitter_powers.dm @@ -23,6 +23,7 @@ zenomorf.speed_modifier -= speed_buff_amount zenomorf.armor_modifier += armor_buff_amount zenomorf.recalculate_speed() + zenomorf.recalculate_armor() /// Though the ability's other buffs are supposed to last for its duration, it's only supposed to enhance one spit. RegisterSignal(zenomorf, COMSIG_XENO_POST_SPIT, PROC_REF(disable_spatter)) @@ -50,6 +51,7 @@ zenomorf.speed_modifier += speed_buff_amount zenomorf.armor_modifier -= armor_buff_amount zenomorf.recalculate_speed() + zenomorf.recalculate_armor() to_chat(zenomorf, SPAN_XENOHIGHDANGER("We feel our movement speed slow down!")) disable_spatter() buffs_active = FALSE