Skip to content

Commit

Permalink
Spitter ability bugfix (#5296)
Browse files Browse the repository at this point in the history
# 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
<details>
it works
</details>


# 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 <[email protected]>
  • Loading branch information
Red-byte3D and InsaneRed authored Dec 26, 2023
1 parent e14cac0 commit a102a70
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a102a70

Please sign in to comment.