Rebalances wound determination values, wounding escalation and wound armor to hopefully be less explosive (#91099)

## About The Pull Request

This is a big one so please bear with me, wounds are complicated

### Max Potential Wound Rolls

We've decreased the max contributed damage to wound rolls from 35 to 25.
This results, after the exponent, a max possible wound roll of 1 to 91
before any modifiers (assuming the attack, after armor, is 25 or above).

The minimum value to wound is still 5.

### Wound Escalation Penalties

Most wounds were contributing significant numbers per wound type to the
potential for a new wound to occur. Getting wounded once meant you were
getting wound a lot, but actually getting past that first wounding may
be the tricky part.

We have significantly reigned in the wound penalty that having a wound
contributes, and instead utilize the series wound penalty to allow same
type wounds to escalate themselves faster as a priority. Having wounds
still makes you more wound vulnerable, just not to such an extreme
degree.

The priority here for what wounds matter most for contributing to
overall wounding vulnerability is ``Infected BURNS > BURNS >
SLASH|PIERCE > BLUNT.``

### Wound Armor

Wound armor, unlike all other kinds of armor, was used as a additive
value to the wound roll modifiers rather than a multiplicative value.

We have reworked how wound armor is determined by changing how wound
modifiers are calculated.

Firstly, we're passing our entire injury roll into the
``check_woundings_mod()`` proc, as we're not treating this as a proc
that just adds values anymore.

Secondly, bare wound bonus only applies if there is no potential wound
protection from any source, as expected. But it comes last in the
calculations.

Thirdly, wound protection is applied to the injury roll last, after
wound bonuses from the attack, wound bonuses from other wounds and wound
bonuses from a disabled limb are applied. This does not include serial
wound bonuses, which are determined outside of this proc.

Wound protection comes from two sources. Clothing and limb wound
resistance. Your chest and head have an amount of wound resistance so
long as they are not mangled in any fashion. Being mangled means having
either a hairline fracture or a weeping avulsion wound.

Wound protection reduces the final injury roll by a percentage. Say our
roll is 50, and we have effectively 50% wound protection. The final roll
would be 25.

### ~~Wound Armor on Clothing~~ Reverted

~~Most clothing have had their wound armor values changed. As a loose
rule, I used the highest of melee or bomb armor, except where that value
was 100, in which case I used the lowest instead. I'm basing this
decision on how embeds are calculated, which is attack type agnostic.~~

~~Some armor have inconsistent values because they are alternative
armors to an existing armor type or are hyperspecialized armor.
Ablative, bulletproof and security vests all share a value of 35,
despite the former two not having decent melee or bomb armor.~~

~~Some clothing missing wound armor that should have had them now have
wound armor.~~

~~This may need a bit of scrutiny in case one or two seem weirdly high.
Some have maybe become too low. Its a bit hard to say.~~

### The ``bare_wound_bonus`` variable

I changed it to ``exposed_wound_bonus`` to better represent when it
applies. You can be naked and still not be affected by this bonus if the
limb has wound resistance.

## Why It's Good For The Game

I'm not promising anything with this PR, but this is an attempt to
sanity check the values on wounds so that we're not seeing what the data
that determined the removal of beheading presented. An extreme
over-representation of tier 3 wounds. ~~And, from that, maybe I can
argue for beheadings coming back. That's my goal. I think beheadings
happened so much because the numbers were in need of work.~~ Well okay I
just wanna make wounds a bit more workable actually more than I want
beheadings.

Why is it that tier 3 wounds were so over-represented? Because wounds
will often force more severe wounds of other types by merit of any
wounds existing at all on a limb. Having **_a_** wound makes you more
wound prone for any kind of wound, and not just making you more likely
to suffer a more severe type of the same wound.

The threshold mechanic was intended to simulate making a wound worse,
but oddly just made a limb broadly more prone to getting worse from any
kind of attack to such a degree that future wound rolls of different
types were often going to start at the threshold necessary to be a tier
3 wound.

Dismemberment, mind you, requires you to suffer a flesh wound while you
have a bone wound of tier 2 or higher (with tier 3 giving a bonus to
this). You can do this readily via just a sharp weapon, because having a
mangled limb causes the wound to turn into a bone wound. Technically,
this is meant to be less likely as the effective damage for this wound
is halved. But the wound bonus from having a flesh wound was almost
always significant enough to kick your new bone wound up to a tier 3.

In other words; its not surprising that you saw so many beheadings,
because the system wanted to behead you as fast as it possibly can
thanks to all these escalating values.

Wound armor was only applied as a flat reduction on the roll. The
average for wound armor was 10. After receiving a single wound, you can
expect wound rolls to reach upwards of 100, even if the actual damage
roll was not particularly high, due to wound stacking bonuses form being
wounded.

This meant that wounds, if they happened, came thick and fast after the
first, regardless of what your protection might be to wounds. It was
just a matter of getting past the initial bump.

This is why effects that forced wounds were so powerful. They basically
made a given limb more prone to taking a wound without having to deal
with the protection problem first.

Finally, this is just a broad flaw with the system that is not its
fault. It is actually a problem that isn't a problem. Most people in the
game are not wearing helmets that protect their head. So most people are
going to suffer from a higher proclivity of being wounded if people are
aiming for the head. There is this...kind of cargo cult belief that
aiming for the head means you do more damage, or can stun someone if
you're lucky or what have you. It's entirely nonsense, but it has a
grain of truth in that people rarely wear, or even have access too,
headwear that provides wound protection or any protection at all. People
have jumpsuits, which are universally wound protected, but that isn't
true of the head. Look, the point is, they're not aiming at the head
because it is usually less armored, its for other reasons but it just so
happens to become true due to wounds and how wounds roll their type.

To soften this issue, I've decided to treat wound resistance as armor
until the limb suffers a tier 3 wound. This way, hits to the head MAY
not necessarily escalate to tier 3 instantly as they would on live even
from relatively low power weapons. Some weapons have very low force, but
have extreme bare wound bonuses. This should be less likely after this
change. I doubt this will necessarily make high damage high wound
weapons like energy swords any less prone to cutting you clean open, but
it might thanks to the reduction to contributed damage to the injury
roll. The system is now _a bit more random_.

## Changelog
🆑
balance: Wounds do not make you as vulnerable to suffering wounds of all
types as before. Instead, wounds make you more vulnerable to suffering
worse versions of themselves as a priority.
balance: Wound armor is now more impactful when protecting you from
wounds when you have already been wounded.
balance: Your head and chest are more difficult to wound until they have
been mangled; either from suffering from a weeping avulsion or a
hairline fracture.
code: Changed the variable for bare_wound_bonus to exposed_wound_bonus
to better explain what that variable is doing.
/🆑

---------

Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
This commit is contained in:
necromanceranne
2025-06-20 01:49:59 +10:00
committed by GitHub
parent 22d3ff892a
commit 57624ca1e2
85 changed files with 222 additions and 217 deletions

View File

@@ -65,8 +65,8 @@
loaded_projectile.wound_bonus += gun.projectile_wound_bonus
loaded_projectile.wound_bonus *= loaded_projectile.wound_bonus >= 0 ? 1 : 2 - integrity_mult
loaded_projectile.bare_wound_bonus += gun.projectile_wound_bonus
loaded_projectile.bare_wound_bonus *= loaded_projectile.bare_wound_bonus >= 0 ? 1 : 2 - integrity_mult
loaded_projectile.exposed_wound_bonus += gun.projectile_wound_bonus
loaded_projectile.exposed_wound_bonus *= loaded_projectile.exposed_wound_bonus >= 0 ? 1 : 2 - integrity_mult
if(tk_firing(user, fired_from))
loaded_projectile.ignore_source_check = TRUE

View File

@@ -303,9 +303,9 @@
span_hear("You can hear sound of plastic shattering."))
if (poor_sod)
poor_sod.receive_damage((damage_to_take - atom_integrity) * 0.5, wound_bonus = -10, bare_wound_bonus = 20, sharpness = SHARP_EDGED, damage_source = src)
poor_sod.receive_damage((damage_to_take - atom_integrity) * 0.5, wound_bonus = -10, exposed_wound_bonus = 20, sharpness = SHARP_EDGED, damage_source = src)
else
user.take_bodypart_damage((damage_to_take - atom_integrity) * 0.5, wound_bonus = -10, bare_wound_bonus = 20, sharpness = SHARP_EDGED)
user.take_bodypart_damage((damage_to_take - atom_integrity) * 0.5, wound_bonus = -10, exposed_wound_bonus = 20, sharpness = SHARP_EDGED)
if (shrapnel_bomb)
var/obj/item/shrapnel/plastic/shrapnel = new(user.loc)

View File

@@ -262,7 +262,7 @@
var/damage_falloff_tile
/// How much we want to drop stamina damage (defined by the stamina variable) per tile as it travels through the air
var/stamina_falloff_tile
/// How much we want to drop both wound_bonus and bare_wound_bonus (to a minimum of 0 for the latter) per tile, for falloff purposes
/// How much we want to drop both wound_bonus and exposed_wound_bonus (to a minimum of 0 for the latter) per tile, for falloff purposes
var/wound_falloff_tile
/// How much we want to drop the embed_chance value, if we can embed, per tile, for falloff purposes
var/embed_falloff_tile
@@ -301,7 +301,7 @@
pixels_moved_last_tile -= ICON_SIZE_ALL
if(wound_falloff_tile && wound_bonus != CANT_WOUND)
wound_bonus += wound_falloff_tile
bare_wound_bonus = max(0, bare_wound_bonus + wound_falloff_tile)
exposed_wound_bonus = max(0, exposed_wound_bonus + wound_falloff_tile)
if(embed_falloff_tile && get_embed())
embed_data.embed_chance += embed_falloff_tile
if(damage_falloff_tile && damage >= 0)

View File

@@ -17,7 +17,7 @@
ricochet_chance = 80
reflectable = TRUE
wound_bonus = -20
bare_wound_bonus = 10
exposed_wound_bonus = 10
/obj/projectile/beam/laser
@@ -26,7 +26,7 @@
impact_type = /obj/effect/projectile/impact/laser
wound_bonus = -20
damage = 25
bare_wound_bonus = 40
exposed_wound_bonus = 40
/obj/projectile/beam/laser/carbine
icon_state = "carbine_laser"
@@ -102,7 +102,7 @@
icon_state = "scatterlaser"
damage = 7.5
wound_bonus = 5
bare_wound_bonus = 5
exposed_wound_bonus = 5
damage_falloff_tile = -0.45
wound_falloff_tile = -2.5
@@ -206,7 +206,7 @@
impact_effect_type = /obj/effect/temp_visual/impact_effect/green_laser
light_color = LIGHT_COLOR_GREEN
wound_bonus = -40
bare_wound_bonus = 70
exposed_wound_bonus = 70
/obj/projectile/beam/emitter/singularity_pull(atom/singularity, current_size)
return //don't want the emitters to miss

View File

@@ -37,7 +37,7 @@
armor_flag = BOMB
speed = 0.8
wound_bonus = 30
bare_wound_bonus = 30
exposed_wound_bonus = 30
wound_falloff_tile = -4
fire_stacks = 3
@@ -84,7 +84,7 @@
LAZYADD(launched_items, iter_item)
else if(isliving(iter))
var/mob/living/incineratee = iter
incineratee.take_bodypart_damage(0, damage, check_armor = TRUE, wound_bonus=wound_bonus, bare_wound_bonus=bare_wound_bonus)
incineratee.take_bodypart_damage(0, damage, check_armor = TRUE, wound_bonus=wound_bonus, exposed_wound_bonus=exposed_wound_bonus)
incineratee.adjust_fire_stacks(fire_stacks)
#undef BACKBLAST_MAX_ITEM_KNOCKBACK

View File

@@ -78,7 +78,7 @@
damage = 10
embed_type = /datum/embedding/bullet/junk/ripper
wound_bonus = 10
bare_wound_bonus = 30
exposed_wound_bonus = 30
/datum/embedding/bullet/junk/ripper
embed_chance = 100

View File

@@ -44,7 +44,7 @@
sharpness = SHARP_EDGED
weak_against_armour = TRUE
wound_bonus = -40
bare_wound_bonus = 30
exposed_wound_bonus = 30
wound_falloff_tile = -8
/obj/projectile/bullet/incendiary/a7mm

View File

@@ -20,7 +20,7 @@
ricochet_auto_aim_angle = 10
ricochet_auto_aim_range = 3
wound_bonus = -20
bare_wound_bonus = 10
exposed_wound_bonus = 10
embed_type = /datum/embedding/bullet/c38
embed_falloff_tile = -4
@@ -74,7 +74,7 @@
ricochets_max = 0
sharpness = SHARP_EDGED
wound_bonus = 20
bare_wound_bonus = 20
exposed_wound_bonus = 20
embed_type = /datum/embedding/bullet/c38/dumdum
wound_falloff_tile = -5
embed_falloff_tile = -15

View File

@@ -47,7 +47,7 @@
damage = 60
armour_penetration = 50
wound_bonus = -20
bare_wound_bonus = 80
exposed_wound_bonus = 80
embed_type = /datum/embedding/harpoon
wound_falloff_tile = -5
shrapnel_type = null
@@ -71,7 +71,7 @@
dismemberment = 1 //because a 1 in 100 chance to just blow someones arm off is enough to be cool but also not enough to be reliable
armour_penetration = 10
wound_bonus = -20
bare_wound_bonus = 20
exposed_wound_bonus = 20
embed_type = /datum/embedding/rebar
embed_falloff_tile = -5
wound_falloff_tile = -2
@@ -96,7 +96,7 @@
dismemberment = 2 //It's a budget sniper rifle.
armour_penetration = 20 //A bit better versus armor. Gets past anti laser armor or a vest, but doesnt wound proc on sec armor.
wound_bonus = 10
bare_wound_bonus = 20
exposed_wound_bonus = 20
embed_falloff_tile = -3
embed_type = /datum/embedding/rebar_syndie
shrapnel_type = /obj/item/ammo_casing/rebar/syndie
@@ -121,7 +121,7 @@
eyeblur = 5
armour_penetration = 20 // not nearly as good, as its not as sharp.
wound_bonus = 10
bare_wound_bonus = 40
exposed_wound_bonus = 40
embed_type = /datum/embedding/rebar_zaukerite
embed_falloff_tile = 0 // very spiky.
shrapnel_type = /obj/item/ammo_casing/rebar/zaukerite
@@ -149,7 +149,7 @@
damage_type = BRUTE
armour_penetration = 30 //very pointy.
wound_bonus = -100
bare_wound_bonus = 0
exposed_wound_bonus = 0
shrapnel_type = /obj/item/ammo_casing/rebar/hydrogen
embed_type = /datum/embedding/rebar_hydrogen
embed_falloff_tile = -3
@@ -175,7 +175,7 @@
damage_type = BRUTE
armour_penetration = 100
wound_bonus = -100
bare_wound_bonus = -100
exposed_wound_bonus = -100
embed_type = null
embed_falloff_tile = -3
shrapnel_type = /obj/item/ammo_casing/rebar/healium

View File

@@ -5,7 +5,7 @@
armour_penetration = 30
sharpness = SHARP_POINTY
wound_bonus = 0
bare_wound_bonus = 15
exposed_wound_bonus = 15
/obj/projectile/bullet/shotgun_slug/milspec
name = "12g shotgun milspec slug"
@@ -83,7 +83,7 @@
name = "buckshot pellet"
damage = 5
wound_bonus = 5
bare_wound_bonus = 5
exposed_wound_bonus = 5
speed = 1.1
wound_falloff_tile = -0.5 //We would very much like this to cause wounds despite the low damage, so the drop off is relatively slow
sharpness = SHARP_EDGED
@@ -95,7 +95,7 @@
/obj/projectile/bullet/pellet/shotgun_buckshot/old
damage_falloff_tile = -1
wound_bonus = -100
bare_wound_bonus = -100
exposed_wound_bonus = -100
/obj/projectile/bullet/pellet/shotgun_buckshot/milspec
name = "milspec buckshot pellet"
@@ -135,7 +135,7 @@
icon_state = "flechette"
damage = 2
wound_bonus = 5
bare_wound_bonus = 5
exposed_wound_bonus = 5
armour_penetration = 30
damage_falloff_tile = -0.2
wound_falloff_tile = -0.5
@@ -159,7 +159,7 @@
icon_state = "flechette_plastic"
damage = 1 // good god its awful
wound_bonus = 20 // but it WILL mulch you if you don't have armor.
bare_wound_bonus = 20
exposed_wound_bonus = 20
armour_penetration = 0
damage_falloff_tile = -0.1
wound_falloff_tile = -2

View File

@@ -26,7 +26,7 @@
name = "4.6x30mm bullet"
damage = 20
wound_bonus = -5
bare_wound_bonus = 5
exposed_wound_bonus = 5
embed_falloff_tile = -4
/obj/projectile/bullet/c46x30mm/ap

View File

@@ -7,7 +7,7 @@
armour_penetration = 10
reflectable = NONE
wound_bonus = 0
bare_wound_bonus = 10
exposed_wound_bonus = 10
impact_effect_type = /obj/effect/temp_visual/impact_effect/red_laser
/obj/projectile/energy/inferno/on_hit(atom/target, blocked = 0, pierce_hit)
@@ -36,7 +36,7 @@
sharpness = SHARP_POINTY //it's a big ol' shard of ice
reflectable = NONE
wound_bonus = 0
bare_wound_bonus = 10
exposed_wound_bonus = 10
/obj/projectile/energy/cryo/on_hit(atom/target, blocked = 0, pierce_hit)
. = ..()