More AI commentary

This commit is contained in:
xCrystal
2014-10-21 20:44:42 +02:00
parent 44377acb2a
commit 96a89ffad7
2 changed files with 61 additions and 40 deletions

View File

@@ -41682,9 +41682,9 @@ TrainerClassNames:: ; 2c1ef
AISpecialEffects: ; 2c41a (b:441a)
; Specific AI for certain move effects
; Return z if the move is a good choice
; Return nz if the move is a bad choice
; Specific AI for certain move effects.
; Return z if the move is a good choice.
; Return nz if the move is a bad choice.
ld a, c
ld de, 3
ld hl, SpecialEffectMoves
@@ -47179,8 +47179,8 @@ AIChooseMove: ; 440ce
jr .CheckLayer
; Decrement the scores of all moves one by one until one reaches 0
; If the Pokemon has no moves, the game will loop indefinitely
; Decrement the scores of all moves one by one until one reaches 0.
; If the Pokemon has no moves, the game will loop indefinitely.
.DecrementScores
ld hl, Buffer1
ld de, EnemyMonMoves
@@ -47204,8 +47204,8 @@ AIChooseMove: ; 440ce
jr .DecrementNextScore
; In order to avoid bias towards the moves located first in memory, increment the scores
; that were decremented one more time than the rest (in case there was a tie)
; This means that the minimum score will be 1
; that were decremented one more time than the rest (in case there was a tie).
; This means that the minimum score will be 1.
.PickLowestScoreMoves
ld a, c