Skip to content

Commit

Permalink
Merge pull request #3249 from OverDriveZ/no-delimb-by-explosion
Browse files Browse the repository at this point in the history
No more limb loss by big explosions [ready to merge]
  • Loading branch information
Tk420634 authored Oct 2, 2023
2 parents 827ab70 + 0e7d239 commit ab8a10f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions code/modules/mob/living/carbon/human/human_defense.dm
Original file line number Diff line number Diff line change
Expand Up @@ -348,16 +348,16 @@
take_overall_damage(brute_loss,burn_loss)

//attempt to dismember bodyparts
if(severity <= 2 || !bomb_armor)
var/max_limb_loss = round(4/severity) //so you don't lose four limbs at severity 3.
for(var/X in bodyparts)
var/obj/item/bodypart/BP = X
if(prob(15/severity) && !prob(getarmor(BP, "bomb")) && BP.body_zone != BODY_ZONE_HEAD && BP.body_zone != BODY_ZONE_CHEST)
BP.brute_dam = BP.max_damage
BP.dismember()
max_limb_loss--
if(!max_limb_loss)
break
// if(severity <= 2 || !bomb_armor)
// var/max_limb_loss = round(4/severity) //so you don't lose four limbs at severity 3.
// for(var/X in bodyparts)
// var/obj/item/bodypart/BP = X
// if(prob(15/severity) && !prob(getarmor(BP, "bomb")) && BP.body_zone != BODY_ZONE_HEAD && BP.body_zone != BODY_ZONE_CHEST)
// BP.brute_dam = BP.max_damage
// BP.dismember()
// max_limb_loss--
// if(!max_limb_loss)
// break


/mob/living/carbon/human/blob_act(obj/structure/blob/B)
Expand Down

0 comments on commit ab8a10f

Please sign in to comment.