2025/07/21 Update

Updated PEPS AI.
Full compile.
This commit is contained in:
Jaysyn904
2025-07-21 09:41:55 -04:00
parent 0e9e2c6950
commit ca8d5eba41
282 changed files with 920 additions and 646 deletions

View File

@@ -26,15 +26,11 @@ void main()
//**************************** SKILL FEATURES ****************************
if(ai_TryAnimalEmpathy(oCreature)) return;
//**************************** CLASS FEATURES ****************************
if(ai_TryBarbarianRageFeat(oCreature)) return;
if(ai_TryBardSongFeat(oCreature)) return;
if(ai_TryTurningTalent(oCreature)) return;
if(GetLocalInt(GetModule(), AI_RULE_SUMMON_COMPANIONS))
{
if(ai_TrySummonFamiliarTalent(oCreature)) return;
if(ai_TrySummonAnimalCompanionTalent(oCreature)) return;
}
if(ai_TryPolymorphSelfFeat(oCreature)) return;
//************************** DEFENSIVE TALENTS ***************************
int nRound = ai_GetCurrentRound(oCreature);
if(ai_TryDefensiveTalents(oCreature, nInMelee, nMaxLevel, nRound)) return;
@@ -44,6 +40,11 @@ void main()
// Look for a touch attack since we are in melee.
if(nInMelee > 0 && ai_UseCreatureTalent(oCreature, AI_TALENT_TOUCH, nInMelee, nMaxLevel)) return;
if(ai_UseCreatureTalent(oCreature, AI_TALENT_RANGED, nInMelee, nMaxLevel)) return;
//**************************** CLASS FEATURES ****************************
if(ai_TryPolymorphSelfFeat(oCreature)) return;
if(ai_TryBarbarianRageFeat(oCreature)) return;
if(ai_TryBardSongFeat(oCreature)) return;
if(ai_TryTurningTalent(oCreature)) return;
// PHYSICAL ATTACKS - Either we don't have talents or we are saving them.
ai_DoPhysicalAttackOnNearest(oCreature, nInMelee);
}