mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 07:39:13 +01:00
[MIRROR] Changes some elements of punch code and shredding (#12373)
Co-authored-by: Olive <49600480+zeskorion@users.noreply.github.com>
This commit is contained in:
co-authored by
Olive
parent
b5c74e2215
commit
706132899e
@@ -34,7 +34,7 @@
|
||||
var/attack_message = "kicks"
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(H.species.can_shred(H))
|
||||
if(H.species.can_shred(H, FALSE, 10))
|
||||
attack_message = "mangles"
|
||||
damage_dealt = 5
|
||||
|
||||
|
||||
@@ -201,8 +201,9 @@
|
||||
|
||||
if(ishuman(user))
|
||||
var/mob/living/carbon/human/H = user
|
||||
if(H.species.can_shred(H))
|
||||
attack_generic(H,25)
|
||||
var/shreddamage = H.species.can_shred(H, FALSE, 15)
|
||||
if(shreddamage)
|
||||
attack_generic(H, shreddamage + 5, "attacks")
|
||||
return
|
||||
|
||||
playsound(src, 'sound/effects/glassknock.ogg', 80, 1)
|
||||
|
||||
Reference in New Issue
Block a user