After about 50 hours of working on the new feature, I got the code working, and gone over almost all feats and class & racial features for adding code for this new feature.
A rundown of the features that have been edited:
• Feats:
o Crossbow Expert
o Great Weapon Fighting
o Sharpshooter
o Tavern Brawler
o Tough [HP]
• Class Features:
o Rage (Barbarian)
o Brutal Critical (Barbarian)
o Martial Arts (Monk)
o Ki-Empowered Strikes (Monk)
o Archery Fighting Style
o Dueling Fighting Style
o Great Weapon Fighting Style
o Two-Weapon Fighting Style
o Close Quarters Shooter Fighting Style
o Improved Divine Smite (Paladin)
o Sneak Attack (Rogue)
o Pact of the Blade (Warlock)
o Lifedrinker (Warlock invocation)
o Repelling Blast (Warlock invocation)
o Potent Spellcasting (Cleric archetypes)
o Divine Strike (Cleric archetypes)
o Channel Divinity: Sacred Weapon (Paladin, Oath of Devotion)
o Draconic Resilience (Sorcerer, Draconic Bloodline [HP])
o Elemental Affinity (Sorcerer, Draconic Bloodline)
o Song of Victory (Wizard, Bladesinger)
o Improved Critical (Fighter, Champion)
o Superior Critical (Fighter, Champion)
o Radiant Soul (Warlock, the Undying Light)
o Favored Enemy & Greater Favored Enemy (UA Ranger)
o Raging Storm: Sea (Barbarian, Path of the Storm Herald)
o Arcane Arrow (Fighter, Arcane Archer)
o Implacable Mark (Fighter, Knight)
o Hold the Line (Fighter, Knight)
o Steady Aim (Fighter, Sharpshooter)
o Kensei Weapons (Monk, Way of the Kensei)
o One with the Blade (Monk, Way of the Kensei)
o Precise Strike (Monk, Way of the Kensei)
o Invincible Conqueror (Paladin, Oath of Conquest)
o Channel Divinity: Poison Strike (Paladin, Oath of Treachery)
o Piercing Thorns (Ranger, Primeval Guardian Conclave)
• Racial Features:
o Talons (Aarakocra, converged with unarmed strike)
o Dwarven Toughness (Hill Dwarf [HP])
o Savage Attacks (Half-Orc)
As far as I can tell, I have done all Feats, Class Features, and Racial Features that you would want to have an affect on the attack calculations. The only ones that I still have to do are the Artificer features.
If you think of more things that could benefit from the new context-aware attack calculation, let me know, and I can add them to the list!