mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
stam crit (#50297)
This commit is contained in:
@@ -253,12 +253,13 @@
|
||||
/// After the initial stun period, we check to see if the target needs to have the stun applied.
|
||||
/obj/item/melee/baton/proc/apply_stun_effect_end(mob/living/target)
|
||||
var/trait_check = HAS_TRAIT(target, TRAIT_STUNRESISTANCE) //var since we check it in out to_chat as well as determine stun duration
|
||||
if(!target.IsKnockdown())
|
||||
to_chat(target, "<span class='warning'>Your muscles seize, making you collapse[trait_check ? ", but your body quickly recovers..." : "!"]</span>")
|
||||
|
||||
if(trait_check)
|
||||
target.Knockdown(stun_time * 0.1)
|
||||
else
|
||||
target.Knockdown(stun_time)
|
||||
if(!target.IsKnockdown())
|
||||
to_chat(target, "<span class='warning'>Your muscles seize, making you collapse[trait_check ? ", but your body quickly recovers..." : "!"]</span>")
|
||||
|
||||
/obj/item/melee/baton/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user