diff options
author | Daniel Harding <33dannye@gmail.com> | 2020-12-20 12:24:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 12:24:07 -0600 |
commit | b02e5e9cf9e424eacfa8dfffc769b35a3dadfee2 (patch) | |
tree | b288155ee9410be5108e2f53bbacb742a529e750 /src/constants/deck_ai_constants.asm | |
parent | d8f98d97bcd41f710d51925470dc799a6051f022 (diff) | |
parent | 180af7b96f32afa74d6fc77e0132de8655fee318 (diff) |
Merge pull request #83 from ElectroDeoxys/master
Effect commands
Diffstat (limited to 'src/constants/deck_ai_constants.asm')
-rw-r--r-- | src/constants/deck_ai_constants.asm | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/constants/deck_ai_constants.asm b/src/constants/deck_ai_constants.asm index a0b87f7..4533c99 100644 --- a/src/constants/deck_ai_constants.asm +++ b/src/constants/deck_ai_constants.asm @@ -42,7 +42,8 @@ AI_ENERGY_FLAG_SKIP_ARENA_CARD EQU 1 << 7 ; whether to include Arena card in det ; used by wAIBarrierFlagCounter to determine ; whether Player is running Mewtwo1 mill deck. ; flag set means true, flag not set means false. -AI_FLAG_MEWTWO_MILL EQU 1 << 7 +AI_MEWTWO_MILL_F EQU 7 +AI_MEWTWO_MILL EQU 1 << AI_MEWTWO_MILL_F ; defines the behaviour of HandleAIEnergyTrans, for determining ; whether to move energy cards from the Bench to the Arena or vice-versa @@ -59,3 +60,19 @@ AI_ENERGY_TRANS_TO_BENCH EQU $e ; moves energy cards away from Arena card const AIACTION_FORCED_SWITCH ; $3 const AIACTION_KO_SWITCH ; $4 const AIACTION_TAKE_PRIZE ; $5 + +; this bit is set when the AI decides to use Peek on their Prize cards, +; with the following bits deciding which one to Peek. That is: +; %10'0000 = first prize card +; %10'0001 = second prize card +; %10'0010 = third prize card +; etc... +AI_PEEK_TARGET_PRIZE_F EQU 6 +AI_PEEK_TARGET_PRIZE EQU 1 << AI_PEEK_TARGET_PRIZE_F +; this bit is set when the AI decides to use Peek on Player hand card, +; with the following bits deciding which one to Peek. That is: +; %1XXX XXXX, where XXX XXXX is the deck index of card chosen +AI_PEEK_TARGET_HAND_F EQU 7 +AI_PEEK_TARGET_HAND EQU 1 << AI_PEEK_TARGET_HAND_F +; all bits set means AI chose to look at Player's top deck card +AI_PEEK_TARGET_DECK EQU $ff |