Reworks the syndicate chainsaw (#18252)

* Reworks the syndicate chainsaw

* fixes merge conflict

* not work on dead people

* makes stun absorption removal respect stamina

* requested changes
This commit is contained in:
Qwertytoforty
2022-07-11 22:15:47 +01:00
committed by GitHub
parent f028d4a9bf
commit 69a9206b78
6 changed files with 58 additions and 6 deletions
@@ -115,7 +115,7 @@ Difficulty: Medium
/obj/item/melee/energy/cleaving_saw/miner/attack(mob/living/target, mob/living/carbon/human/user)
target.add_stun_absorption("miner", 10, INFINITY)
..()
target.stun_absorption -= "miner"
target.remove_stun_absorption("miner")
/obj/item/projectile/kinetic/miner
damage = 20
+9
View File
@@ -853,6 +853,15 @@ moving up or down retains their old lying angle
priority_absorb_key["stuns_absorbed"] += amount
return TRUE
/mob/living/proc/remove_stun_absorption(id_flag)
stun_absorption -= id_flag
if(ishuman(src))
var/mob/living/carbon/human/H = src
if(H.getStaminaLoss() <= 100)
return
H.enter_stamcrit()
/mob/living/proc/set_shocked()
flags_2 |= SHOCKED_2