mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
fix fortitude giving you permanent stun immunity (#5158)
## About The Pull Request fix fortitude giving you permanent stun immunity ## Why It's Good For The Game permanent stun immunity is not intentional ## Proof Of Testing <details> <summary>Screenshots/Videos</summary> </details> ## Changelog 🆑 fix: fortitude no longer gives you permanent stun immunity /🆑
This commit is contained in:
@@ -20,16 +20,20 @@
|
||||
. += "You will additionally gain resistance to both brute, burn and stamina damage, scaling with level."
|
||||
. += "Fortitude will make you receive [GetFortitudeResist() * 10]% less brute and and stamina and [GetBurnResist() * 10]% less burn damage."
|
||||
. += "While using Fortitude, attempting to run will crush you."
|
||||
. += "At level [FORTITUDE_STUN_IMMUNITY_LEVEL], you gain complete stun immunity."
|
||||
. += "At level [FORTITUDE_STUN_IMMUNITY_LEVEL], you gain complete stun immunity while [src] is active."
|
||||
. += "Higher levels will increase Brute and Stamina resistance."
|
||||
|
||||
/datum/action/cooldown/bloodsucker/fortitude/upgrade_power()
|
||||
. = ..()
|
||||
if(level_current >= FORTITUDE_STUN_IMMUNITY_LEVEL)
|
||||
traits_to_add |= TRAIT_STUNIMMUNE
|
||||
|
||||
/datum/action/cooldown/bloodsucker/fortitude/ActivatePower(atom/target)
|
||||
owner.balloon_alert(owner, "fortitude turned on.")
|
||||
to_chat(owner, span_notice("Your flesh, skin, and muscles become as steel."))
|
||||
// Traits & Effects
|
||||
owner.add_traits(traits_to_add, BLOODSUCKER_TRAIT)
|
||||
if(level_current >= FORTITUDE_STUN_IMMUNITY_LEVEL)
|
||||
ADD_TRAIT(owner, TRAIT_STUNIMMUNE, BLOODSUCKER_TRAIT)
|
||||
|
||||
var/mob/living/carbon/human/bloodsucker_user = owner
|
||||
if(IS_BLOODSUCKER(owner) || IS_GHOUL(owner))
|
||||
fortitude_resist = GetFortitudeResist()
|
||||
|
||||
Reference in New Issue
Block a user