Mount & Blade II: Bannerlord
0 of 0

File information

Last updated

Original upload

Created by

johnnydue

Uploaded by

johnnydue

Virus scan

Safe to use

About this mod

Calculating damage based on if weapon penetrates armor.

Permissions and credits
Changelogs
This mod remakes the damage calculation formula based on if weapon penetrates armor.
Unfortunately I wasn't able to include damage factor so only part size/weight matter and not tier.
There is a config.xml for configuration.
Install by dropping the mod in GameFolder/Modules and activate in default launcher.

Damage is calculated with this formula where x... is a configurable value
damage = bluntDmg + bleedDmg
bluntDmg = magnitude * 100f / (100f + armorEffectiveness) * xBluntDmg
bleedDmg = (magnitude - (xArmor * armorValue)) * xDmg

Some exampels of damage with default config
imperial_veteran_infantryman
id="Item.legionary_mail"
id="Item.mail_mitten"
id="Item.leather_cavalier_boots"
id="Item.heavy_nasalhelm_over_imperial_leather"
id="Item.imperial_studded_strip_shoulders"
One handed sword
type Cut magnitude 20.81798 bluntDmg 14.55803 bleedDmg 0 armorEffectiveness 43
type Pierce magnitude 16.16008 bluntDmg 16.95113 bleedDmg 0 armorEffectiveness 43
Two handed sword
type Cut magnitude 30.25965 bluntDmg 19.27366 bleedDmg 0 armorEffectiveness 57
type Pierce magnitude 19.47614 bluntDmg 19.09426 bleedDmg 0 armorEffectiveness 53
One handed Mace
type Blunt magnitude 18.27683 bluntDmg 23.13523 bleedDmg 0 armorEffectiveness 58
Spear
type Pierce magnitude 21.27002 bluntDmg 20.71755 bleedDmg 0 armorEffectiveness 54
Spear on horse in "running speed"
type Pierce magnitude 47.66256 bluntDmg 45.82938 bleedDmg 39.32511 armorEffectiveness 56
Sword on horse in "running speed"
type Cut magnitude 39.51849 bluntDmg 27.25413 bleedDmg 0 armorEffectiveness 45

imperial_infantryman
id="Item.arming_coif"
id="Item.empire_warrior_padded_armor_a"
id="Item.empire_horseman_boots
id="Item.buttoned_leather_bracers"
One handed sword
type Cut magnitude 17.87041 bluntDmg 16.09947 bleedDmg 34.35207 armorEffectiveness 11
type Pierce magnitude 17.54043 bluntDmg 23.49165 bleedDmg 23.08086 armorEffectiveness 12
Two handed sword
type Cut magnitude 24.93911 bluntDmg 22.46766 bleedDmg 69.69554 armorEffectiveness 11
One handed Mace
type Blunt magnitude 22.9885 bluntDmg 41.42072 bleedDmg 0 armorEffectiveness 11

Full source https://github.com/jzju/AnotherArmorDamage/blob/master/Main.cs
I also have a site for default troops stats and equipment: https://jzju.github.io/bannerlord_stats/