mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
you CHECK those zones
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
/mob/living/carbon/attacked_by(obj/item/I, mob/living/user)
|
||||
var/obj/item/bodypart/affecting
|
||||
if(user == src)
|
||||
affecting = get_bodypart(user.zone_selected) //we're self-mutilating! yay!
|
||||
affecting = get_bodypart(check_zone(user.zone_selected)) //we're self-mutilating! yay!
|
||||
else
|
||||
affecting = get_bodypart(ran_zone(user.zone_selected))
|
||||
if(!affecting) //missing limb? we select the first bodypart (you can never have zero, because of chest)
|
||||
|
||||
@@ -158,8 +158,7 @@
|
||||
|
||||
var/obj/item/bodypart/affecting
|
||||
if(user == src)
|
||||
to_chat(user, "stab!")
|
||||
affecting = get_bodypart(user.zone_selected) //stabbing yourself always hits the right target
|
||||
affecting = get_bodypart(check_zone(user.zone_selected)) //stabbing yourself always hits the right target
|
||||
else
|
||||
affecting = get_bodypart(ran_zone(user.zone_selected))
|
||||
var/target_area = parse_zone(check_zone(user.zone_selected)) //our intended target
|
||||
|
||||
Reference in New Issue
Block a user