More comments

Fix some constants
This commit is contained in:
Remy Oukaour 2018-01-09 15:39:48 -05:00
parent a3242b4ad4
commit a849c3557b
9 changed files with 16 additions and 9 deletions

View File

@ -17,6 +17,9 @@ MIN_NEUTRAL_DAMAGE EQU 2
REST_SLEEP_TURNS EQU 2 REST_SLEEP_TURNS EQU 2
TREEMON_SLEEP_TURNS EQU 7 TREEMON_SLEEP_TURNS EQU 7
; default move priority
BASE_PRIORITY EQU 1
; PlayerStatLevels and EnemyStatLevels indexes ; PlayerStatLevels and EnemyStatLevels indexes
; used for GetStatName ; used for GetStatName
const_def const_def

View File

@ -18,7 +18,6 @@
; - BitmasksPointers (see gfx/pokemon/bitmask_pointers.asm) ; - BitmasksPointers (see gfx/pokemon/bitmask_pointers.asm)
; - FramesPointers (see gfx/pokemon/frame_pointers.asm) ; - FramesPointers (see gfx/pokemon/frame_pointers.asm)
; - Footprints (see gfx/footprints.asm) ; - Footprints (see gfx/footprints.asm)
; - SortedPokemon (see mobile/fixed_words.asm)
const_value set 1 const_value set 1
const BULBASAUR ; 01 const BULBASAUR ; 01
const IVYSAUR ; 02 const IVYSAUR ; 02

View File

@ -1,3 +1,5 @@
; Pics are defined in gfx/pics.asm
PokemonPicPointers:: PokemonPicPointers::
; entries correspond to Pokémon species, two apiece ; entries correspond to Pokémon species, two apiece
dba_pic BulbasaurFrontpic dba_pic BulbasaurFrontpic

View File

@ -1,6 +1,7 @@
; Each trainer class has its own group. See trainers.asm. ; Groups are defined in data/trainers/parties.asm.
TrainerGroups: ; 0x39999 TrainerGroups: ; 0x39999
; entries correspond to trainer classes (see constants/trainer_constants.asm)
dw FalknerGroup dw FalknerGroup
dw WhitneyGroup dw WhitneyGroup
dw BugsyGroup dw BugsyGroup

View File

@ -1,3 +1,5 @@
; Pics are defined in gfx/pics.asm
TrainerPicPointers:: TrainerPicPointers::
; entries correspond to trainer classes (see constants/trainer_constants.asm) ; entries correspond to trainer classes (see constants/trainer_constants.asm)
dba_pic FalknerPic dba_pic FalknerPic

View File

@ -857,7 +857,7 @@ GetMovePriority: ; 3c5c5
cp -1 cp -1
jr nz, .loop jr nz, .loop
ld a, 1 ld a, BASE_PRIORITY
ret ret
.done .done
@ -4808,7 +4808,7 @@ PrintPlayerHUD: ; 3dfbf
ld [de], a ld [de], a
ld hl, BattleMonLevel ld hl, BattleMonLevel
ld de, TempMonLevel ld de, TempMonLevel
ld bc, $0011 ld bc, $11
call CopyBytes call CopyBytes
ld a, [CurBattleMon] ld a, [CurBattleMon]
ld hl, PartyMon1Species ld hl, PartyMon1Species

View File

@ -1436,7 +1436,7 @@ RareCandy: ; ef14
call TextBox call TextBox
hlcoord 11, 1 hlcoord 11, 1
ld bc, $0004 ld bc, 4
predef PrintTempMonStats predef PrintTempMonStats
call WaitPressAorB_BlinkCursor call WaitPressAorB_BlinkCursor
@ -2572,7 +2572,7 @@ Mysteryberry: ; f5bf
cp SKETCH cp SKETCH
jr z, .CantUsePPUpOnSketch jr z, .CantUsePPUpOnSketch
ld bc, $0015 ld bc, MON_PP - MON_MOVES
add hl, bc add hl, bc
ld a, [hl] ld a, [hl]
cp 3 << 6 ; have 3 PP Ups already been used? cp 3 << 6 ; have 3 PP Ups already been used?

View File

@ -2106,11 +2106,11 @@ GetMapHeaderMember:: ; 0x2c04
; Extract data from the current map's header. ; Extract data from the current map's header.
; inputs: ; inputs:
; de = offset of desired data within the mapheader ; de = offset of desired data within the mapheader (a MAPHEADER_* constant)
; outputs: ; outputs:
; bc = data from the current map's header ; bc = data from the current map's header
; (e.g., de = $0003 would return a pointer to the secondary map header) ; (e.g., de = MAPHEADER_MAPHEADER2 would return a pointer to the secondary map header)
ld a, [MapGroup] ld a, [MapGroup]
ld b, a ld b, a

View File

@ -517,7 +517,7 @@ ClearWindowData:: ; 1fbf
; 1ff0 ; 1ff0
.bytefill ; 1ff0 .bytefill ; 1ff0
ld bc, $0010 ld bc, $10
xor a xor a
call ByteFill call ByteFill
ret ret