mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-29 19:42:42 +00:00
fix this really annoying bug (#4115)
What the title says, so if the bullet hits your left leg and there is shrapnel, it should not go to your chest instead.
This commit is contained in:
@@ -14,8 +14,6 @@ emp_act
|
||||
if(!has_organ(def_zone))
|
||||
return PROJECTILE_FORCE_MISS //if they don't have the organ in question then the projectile just passes by.
|
||||
|
||||
var/obj/item/organ/external/organ = get_organ()
|
||||
|
||||
//Shields
|
||||
var/shield_check = check_shields(P.damage, P, null, def_zone, "the [P.name]")
|
||||
if(shield_check)
|
||||
@@ -27,6 +25,7 @@ emp_act
|
||||
|
||||
//Shrapnel
|
||||
if(!(species.flags & NO_EMBED) && P.can_embed())
|
||||
var/obj/item/organ/external/organ = get_organ(def_zone)
|
||||
var/armor = getarmor_organ(organ, "bullet")
|
||||
if(prob(20 + max(P.damage - armor, -10)))
|
||||
var/obj/item/weapon/SP = new P.shrapnel_type()
|
||||
|
||||
Reference in New Issue
Block a user