diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-09 00:50:59 -0500 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2017-12-09 02:15:46 -0500 |
commit | 512863989fb2cb17bcca2f27a61fe3fa8f567b9a (patch) | |
tree | 84ab5a58da5e42fa32bc5eb2779d6a47c54ce71e /battle/ai/items.asm | |
parent | 89b9292db0898f8ad2b6ea8513a3190762eb58c8 (diff) |
Document constants with comments, actual names, and more thorough usage
Diffstat (limited to 'battle/ai/items.asm')
-rw-r--r-- | battle/ai/items.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/battle/ai/items.asm b/battle/ai/items.asm index 325c7b555..5a292763e 100644 --- a/battle/ai/items.asm +++ b/battle/ai/items.asm @@ -27,7 +27,7 @@ AI_SwitchOrTryItem: ; 38000 ld a, [TrainerClass] dec a - ld bc, 7 + ld bc, NUM_TRAINER_ATTRIBUTES call AddNTimes .ok bit SWITCH_OFTEN_F, [hl] @@ -174,8 +174,8 @@ AI_TryItem: ; 38105 ld a, [TrainerClass] dec a - ld hl, TrainerClassAttributes + 5 - ld bc, 7 + ld hl, TrainerClassAttributes + TRNATTR_AI_ITEM_SWITCH + ld bc, NUM_TRAINER_ATTRIBUTES call AddNTimes ld b, h ld c, l |