mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
[MIRROR] Fixes staminacrit not paralyzing (#331)
* Fixes staminacrit not paralyzing (#52906) Additionally removes the now-superfluous stam_paralyzed variable. We can already track this with the incapacitated effect from the stamina source. * Fixes staminacrit not paralyzing Co-authored-by: Rohesie <rohesie@gmail.com> Co-authored-by: Useroth <37159550+Useroth@users.noreply.github.com>
This commit is contained in:
co-authored by
Rohesie
Useroth
parent
7f88c2ea4e
commit
4325c025ef
@@ -133,7 +133,7 @@
|
||||
|
||||
var/damage = weapon.w_class * pain_mult
|
||||
var/pain_chance_current = pain_chance
|
||||
if(pain_stam_pct && victim.stam_paralyzed) //if it's a less-lethal embed, give them a break if they're already stamcritted
|
||||
if(pain_stam_pct && HAS_TRAIT_FROM(victim, TRAIT_INCAPACITATED, STAMINA)) //if it's a less-lethal embed, give them a break if they're already stamcritted
|
||||
pain_chance_current *= 0.2
|
||||
damage *= 0.5
|
||||
else if(victim.mobility_flags & ~MOBILITY_STAND)
|
||||
|
||||
Reference in New Issue
Block a user