Skip to content

Commit

Permalink
Adds basic trainer and smart trainer flags (#5298)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOn1ine authored Aug 31, 2024
1 parent 4f39354 commit bbcb1cd
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 358 deletions.
4 changes: 4 additions & 0 deletions include/constants/battle_ai.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@

#define AI_FLAG_COUNT 20

// The following options are enough to have a basic/smart trainer. Any other addtion could make the trainer worse/better depending on the flag
#define AI_FLAG_BASIC_TRAINER (AI_FLAG_CHECK_BAD_MOVE | AI_FLAG_TRY_TO_FAINT | AI_FLAG_CHECK_VIABILITY)
#define AI_FLAG_SMART_TRAINER (AI_FLAG_BASIC_TRAINER | AI_FLAG_OMNISCIENT | AI_FLAG_SMART_SWITCHING | AI_FLAG_SMART_MON_CHOICES)

// 'other' ai logic flags
#define AI_FLAG_DYNAMIC_FUNC (1 << 28) // Create custom AI functions for specific battles via "setdynamicaifunc" cmd
#define AI_FLAG_ROAMING (1 << 29)
Expand Down
Loading

0 comments on commit bbcb1cd

Please sign in to comment.