fix: Fixes provocation for pre-pub 16 (#1335)

This commit is contained in:
Kamron Batman 2023-02-07 23:33:45 -08:00 committed by GitHub
parent 44c69620a6
commit 3cf6db73f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 28 additions and 32 deletions

View file

@ -260,7 +260,10 @@ namespace Server.Items
- Summoning Undead
*/
var val = targ.HitsMax * 1.6 + targ.StamMax + targ.ManaMax;
// Before LBR, the success rate is actually your skill rate.
// We are going to fudge the numbers so it feels right without having two separate provocation calculations
// To do this, we should *undo* the 1.6x multiplier on HitsMaxSeed
var val = targ.HitsMax * (Core.LBR ? 1.6 : 0.625) + targ.StamMax + targ.ManaMax;
val += targ.SkillsTotal / 10.0;