diff options
Diffstat (limited to 'src/wram.asm')
-rw-r--r-- | src/wram.asm | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/src/wram.asm b/src/wram.asm index 8e1de6b..20abcf6 100644 --- a/src/wram.asm +++ b/src/wram.asm @@ -972,6 +972,8 @@ wccc8:: ; ccc8 wGotHeadsFromConfusionCheck:: ; ccc9 ds $1 +; used to store card indices of all stages, in order, of a Play Area Pokémon +wAllStagesIndices:: ; ccca ds $3 wEffectFunctionsFeedbackIndex:: ; cccd @@ -1225,7 +1227,9 @@ wTempCardType:: ; cdba wAIScore:: ; cdbe ds $1 -wBenchAIScore:: ; cdbf +; used for AI decisions that involve +; each card in the Play Area. +wPlayAreaAIScore:: ; cdbf ds MAX_PLAY_AREA_POKEMON ds $0a @@ -1280,7 +1284,9 @@ wcddb:: ; cddb wcddc:: ; cddc ds $1 -wcddd:: ; cddd +; used to compliment wPlayAreaAIScore, +; to temporarily do calculations and store results. +wTempPlayAreaAIScore:: ; cddd ds MAX_PLAY_AREA_POKEMON wcde3:: ; cde3 @@ -1292,11 +1298,15 @@ wcde4:: ; cde4 wcdea:: ; cdea ds MAX_PLAY_AREA_POKEMON +; whether AI cannot inflict damage on player's active Pokémon +; (due to No Damage or Effect substatus). +; $00 = can damage +; $01 = can't damage +wAICannotDamage:: ; cdf0 ds $1 -; a PLAY_AREA_* constant (0: arena card, 1-5: bench card) -; used by the AI to temporarily store card location -wCurCardPlayAreaLocation:: ; cdf1 +; used by AI to store variable information +wTempAI:: ; cdf1 ds $1 ; used for AI to store whether this card can use any attack @@ -1330,12 +1340,22 @@ wce00:: ; ce00 wce01:: ; ce01 ds $1 +; whether AI's move is a damaging move or not +; (move that only damages bench is treated as non-damaging) +; $00 = is a damaging move +; $01 = is a non damaging move +wAIMoveIsNonDamaging:: ; ce02 ds $1 wce03:: ; ce03 ds $1 - ds $12 + ds $2 + +wce06:: ; ce06 + ds $1 + + ds $0f wce16:: ; ce16 ds $1 |