Up-to-Date Stabbing Mechanisms?
Posted: Sunday, 5th April 2020, 19:06
I want to know how stabbing works under the hood in 0.25. The wiki article is for 0.17 and refers to four stabbing tiers, but there have only been two stabbing tiers since 0.19. LearnDb is even more obsolete since it refers to long blades and one-handed polearms as having a distinct stab multiplier, but weapons have been treated as Sbl/non-SBl for stabs since 0.16.
What I've gathered is the following, but I'd like to confirm the algorithm and learn the mathematical functions.
Might someone know the answer to this, or point me please to the correct place in the code for me to look into this?
Thank you!
What I've gathered is the following, but I'd like to confirm the algorithm and learn the mathematical functions.
- Short blades get a damage bonus added to the weapon's damage. This is a function of DEX,SBl and Stealth skills, is halved if the weapon isn't a dagger, then capped at 30.
- There are two stab tiers: 1 is Sleep/Paralysis/Petrified, and 4 is confused, distracted, netted or webbed, enslaved or ally, attacker invisible, petrifying.
- All weapons get a stabbing multiplier, applied to the weapon damage roll after Str, Fgt, Weapon Skill, Might/Berserk, and Slaying are accounted for, plus the Sbl damage bonus. This is a function of weapon skill and Stealth and then divided by stab tier.
- Short blades may still have a second stab multiplier that is multiplied onto the stab multiplier of all weapons that is also a function of SBl, Sth and stab tier.
Might someone know the answer to this, or point me please to the correct place in the code for me to look into this?
Thank you!