Added the Charming the Arrow feat

Added the Charming the Arrow feat.  Updated Release archive.
This commit is contained in:
Jaysyn904
2025-01-17 13:58:32 -05:00
parent f52cab6870
commit 5e7d00f711
9 changed files with 953 additions and 923 deletions

View File

@@ -114,6 +114,26 @@ void PRCFeat_Equip(object oPC, object oSkin, int iEquip)
SetCompositeAttackBonus(oPC, "BrutalThrow", 0);
}
}
//:: Charming the Arrow - Apply bonus if Charisma > Dexterity for bows & crossbows
if (GetHasFeat(FEAT_CHARMING_THE_ARROW, oPC))
{
if (nType == BASE_ITEM_HEAVYCROSSBOW || nType == BASE_ITEM_LIGHTCROSSBOW || nType == BASE_ITEM_LONGBOW || nType == BASE_ITEM_SHORTBOW)
{
int nChaMod = GetAbilityModifier(ABILITY_CHARISMA, oPC);
int nDexMod = GetAbilityModifier(ABILITY_DEXTERITY, oPC);
// Apply Charisma modifier as composite attack bonus if greater than Dexterity modifier
if (nChaMod > nDexMod)
{
SetCompositeAttackBonus(oPC, "CharmingTheArrow", nChaMod - nDexMod);
}
else
{
// Remove the bonus if Charisma is not greater
SetCompositeAttackBonus(oPC, "CharmingTheArrow", 0);
}
}
}
}
}