mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 15:00:25 +00:00
[Feature] Add SE_IncreaseArchery and rules to tune archery (#4335)
* [Feature] Add SE_IncreaseArchery and rules to tune archery * Adjustments per comments, also added to the tune system. * Update bonuses.cpp --------- Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
@@ -1323,6 +1323,11 @@ int64 Mob::TuneGetTotalToHit(EQ::skills::SkillType skill, int chance_mod, int ac
|
||||
aabonuses.HitChanceEffect[skill] +
|
||||
spellbonuses.HitChanceEffect[skill];
|
||||
|
||||
if (skill == EQ::skills::SkillArchery) {
|
||||
hit_bonus += spellbonuses.increase_archery + aabonuses.increase_archery + itembonuses.increase_archery;
|
||||
hit_bonus -= hit_bonus * RuleR(Combat, ArcheryHitPenalty);
|
||||
}
|
||||
|
||||
accuracy = (accuracy * (100 + hit_bonus)) / 100;
|
||||
return accuracy;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user