mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 02:34:00 +00:00
Collapsed all organs into one object type. Added more interesting amputation. Added dislocation. WIP.
This commit is contained in:
@@ -41,6 +41,12 @@
|
||||
// TODO: needs to be refactored into a mob/living level attacked_by() proc. ~Z
|
||||
if(istype(M, /mob/living/carbon/human))
|
||||
var/mob/living/carbon/human/H = M
|
||||
|
||||
// Handle striking to cripple.
|
||||
if(user.a_intent == "disarm" && H.attack_joint(src, user, def_zone))
|
||||
add_fingerprint(user)
|
||||
return 1
|
||||
|
||||
var/hit = H.attacked_by(src, user, def_zone)
|
||||
if(hit && hitsound)
|
||||
playsound(loc, hitsound, 50, 1, -1)
|
||||
@@ -50,7 +56,7 @@
|
||||
user.visible_message("<span class='danger'>[M] has been [pick(attack_verb)] with [src] by [user]!</span>")
|
||||
else
|
||||
user.visible_message("<span class='danger'>[M] has been attacked with [src] by [user]!</span>")
|
||||
|
||||
|
||||
if (hitsound)
|
||||
playsound(loc, hitsound, 50, 1, -1)
|
||||
switch(damtype)
|
||||
|
||||
Reference in New Issue
Block a user