mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +01:00
Merge pull request #16720 from Qwertytoforty/grabbing-your-attention
Makes revive, biodegrade, and freedom break grabs
This commit is contained in:
@@ -13,6 +13,15 @@
|
||||
if(iscarbon(imp_in))
|
||||
var/mob/living/carbon/C_imp_in = imp_in
|
||||
C_imp_in.uncuff()
|
||||
for(var/obj/item/grab/G in C_imp_in.grabbed_by)
|
||||
var/mob/living/carbon/M = G.assailant
|
||||
C_imp_in.visible_message("<span class='warning'>[C_imp_in] suddenly shocks [M] from their wrists and slips out of their grab!</span>")
|
||||
M.Stun(1) //Drops the grab
|
||||
M.apply_damage(2, BURN, "r_hand", M.run_armor_check("r_hand", "energy"))
|
||||
M.apply_damage(2, BURN, "l_hand", M.run_armor_check("l_hand", "energy"))
|
||||
C_imp_in.SetStunned(0) //This only triggers if they are grabbed, to have them break out of the grab, without the large stun time.
|
||||
C_imp_in.SetWeakened(0)
|
||||
playsound(C_imp_in.loc, "sound/weapons/Egloves.ogg", 75, 1)
|
||||
if(!uses)
|
||||
qdel(src)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user