mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
[Rules] Bash Two Hander use Shoulders (#3925)
Rule: BashTwoHanderUseShoulderAC Default: False Allows server operators to choose if they want two handed bash to utilize the shoulder armor or not. Rule: BashACBonusDivisor Default: 25.0 Allows adjustment for bash AC value contributions. Lower to increase damage.
This commit is contained in:
@@ -137,12 +137,16 @@ int Mob::GetBaseSkillDamage(EQ::skills::SkillType skill, Mob *target)
|
||||
if (HasShieldEquipped()) {
|
||||
inst = CastToClient()->GetInv().GetItem(EQ::invslot::slotSecondary);
|
||||
} else if (HasTwoHanderEquipped()) {
|
||||
inst = CastToClient()->GetInv().GetItem(EQ::invslot::slotPrimary);
|
||||
if (RuleB(Combat, BashTwoHanderUseShoulderAC)) {
|
||||
inst = CastToClient()->GetInv().GetItem(EQ::invslot::slotShoulders);
|
||||
} else {
|
||||
inst = CastToClient()->GetInv().GetItem(EQ::invslot::slotPrimary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (inst) {
|
||||
ac_bonus = inst->GetItemArmorClass(true) / 25.0f;
|
||||
ac_bonus = inst->GetItemArmorClass(true) / RuleR(Combat, BashACBonusDivisor);
|
||||
} else {
|
||||
return 0;
|
||||
} // return 0 in cases where we don't have an item
|
||||
|
||||
Reference in New Issue
Block a user