[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:
Fryguy
2024-05-26 08:37:23 -04:00
committed by GitHub
parent 2df5f3f55a
commit 87c207e862
7 changed files with 30 additions and 1 deletions
+8
View File
@@ -232,6 +232,11 @@ int Mob::GetTotalToHit(EQ::skills::SkillType skill, int chance_mod)
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;
// TODO: April 2003 added an archery/throwing PVP accuracy penalty while moving, should be in here some where,
@@ -6348,6 +6353,9 @@ void Mob::CommonOutgoingHitSuccess(Mob* defender, DamageHitInfo &hit, ExtraAttac
MessageString(Chat::MeleeCrit, BOW_DOUBLE_DAMAGE);
}
}
//Scale Factor for Archery Damage Tuning
hit.damage_done *= RuleR(Combat, ArcheryBaseDamageBonus);
}
int extra_mincap = 0;