2017-12-15 04:00:54 +00:00
|
|
|
; base data struct members (see data/pokemon/base_stats/*.asm)
|
2021-03-04 03:22:41 +00:00
|
|
|
rsreset
|
|
|
|
BASE_DEX_NO rb
|
|
|
|
BASE_STATS rb NUM_STATS
|
|
|
|
rsset BASE_STATS
|
|
|
|
BASE_HP rb
|
|
|
|
BASE_ATK rb
|
|
|
|
BASE_DEF rb
|
|
|
|
BASE_SPD rb
|
|
|
|
BASE_SAT rb
|
|
|
|
BASE_SDF rb
|
|
|
|
BASE_TYPES rw
|
|
|
|
rsset BASE_TYPES
|
|
|
|
BASE_TYPE_1 rb
|
|
|
|
BASE_TYPE_2 rb
|
|
|
|
BASE_CATCH_RATE rb
|
|
|
|
BASE_EXP rb
|
|
|
|
BASE_ITEMS rw
|
|
|
|
rsset BASE_ITEMS
|
|
|
|
BASE_ITEM_1 rb
|
|
|
|
BASE_ITEM_2 rb
|
|
|
|
BASE_GENDER rb
|
2021-03-04 23:13:33 +00:00
|
|
|
rb_skip
|
2021-03-04 03:22:41 +00:00
|
|
|
BASE_EGG_STEPS rb
|
2021-03-04 23:13:33 +00:00
|
|
|
rb_skip
|
2021-03-04 03:22:41 +00:00
|
|
|
BASE_PIC_SIZE rb
|
|
|
|
BASE_FRONTPIC rw
|
|
|
|
BASE_BACKPIC rw
|
|
|
|
BASE_GROWTH_RATE rb
|
|
|
|
BASE_EGG_GROUPS rb
|
|
|
|
BASE_TMHM rb (NUM_TM_HM_TUTOR + 7) / 8
|
|
|
|
BASE_DATA_SIZE EQU _RS
|
2017-12-11 22:35:35 +00:00
|
|
|
|
2017-12-13 22:59:14 +00:00
|
|
|
; gender ratio constants
|
2020-05-07 15:09:41 +00:00
|
|
|
GENDER_F0 EQU 0 percent
|
|
|
|
GENDER_F12_5 EQU 12 percent + 1
|
|
|
|
GENDER_F25 EQU 25 percent
|
|
|
|
GENDER_F50 EQU 50 percent
|
|
|
|
GENDER_F75 EQU 75 percent
|
2018-02-26 17:43:30 +00:00
|
|
|
GENDER_F100 EQU 100 percent - 1
|
|
|
|
GENDER_UNKNOWN EQU -1
|
2017-12-13 22:59:14 +00:00
|
|
|
|
2018-01-23 22:39:09 +00:00
|
|
|
; wBaseGrowthRate values
|
2017-12-16 02:32:43 +00:00
|
|
|
; GrowthRates indexes (see data/growth_rates.asm)
|
2015-07-13 05:37:11 +00:00
|
|
|
const_def
|
2018-01-31 17:03:43 +00:00
|
|
|
const GROWTH_MEDIUM_FAST
|
|
|
|
const GROWTH_SLIGHTLY_FAST
|
|
|
|
const GROWTH_SLIGHTLY_SLOW
|
|
|
|
const GROWTH_MEDIUM_SLOW
|
|
|
|
const GROWTH_FAST
|
|
|
|
const GROWTH_SLOW
|
2021-03-22 20:41:17 +00:00
|
|
|
NUM_GROWTH_RATES EQU const_value
|
2014-02-02 22:12:04 +00:00
|
|
|
|
2018-01-23 22:39:09 +00:00
|
|
|
; wBaseEggGroups values
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1
|
2018-03-13 09:54:07 +00:00
|
|
|
const EGG_MONSTER ; 1
|
|
|
|
const EGG_WATER_1 ; 2 (Amphibian)
|
|
|
|
const EGG_BUG ; 3
|
|
|
|
const EGG_FLYING ; 4
|
|
|
|
const EGG_GROUND ; 5 (Field)
|
|
|
|
const EGG_FAIRY ; 6
|
|
|
|
const EGG_PLANT ; 7 (Grass)
|
|
|
|
const EGG_HUMANSHAPE ; 8 (Human-Like)
|
|
|
|
const EGG_WATER_3 ; 9 (Invertebrate)
|
|
|
|
const EGG_MINERAL ; a
|
|
|
|
const EGG_INDETERMINATE ; b (Amorphous)
|
|
|
|
const EGG_WATER_2 ; c (Fish)
|
|
|
|
const EGG_DITTO ; d
|
|
|
|
const EGG_DRAGON ; e
|
|
|
|
const EGG_NONE ; f (Undiscovered)
|
2014-02-02 22:12:04 +00:00
|
|
|
|
2018-01-11 17:00:01 +00:00
|
|
|
; pokedex entries (see data/pokemon/dex_entries.asm)
|
|
|
|
NUM_DEX_ENTRY_BANKS EQU 4
|
|
|
|
|
2017-12-11 21:51:12 +00:00
|
|
|
; party_struct members (see macros/wram.asm)
|
2021-03-04 03:22:41 +00:00
|
|
|
rsreset
|
|
|
|
MON_SPECIES rb
|
|
|
|
MON_ITEM rb
|
|
|
|
MON_MOVES rb NUM_MOVES
|
|
|
|
MON_ID rw
|
|
|
|
MON_EXP rb 3
|
|
|
|
MON_STAT_EXP rw NUM_EXP_STATS
|
|
|
|
rsset MON_STAT_EXP
|
|
|
|
MON_HP_EXP rw
|
|
|
|
MON_ATK_EXP rw
|
|
|
|
MON_DEF_EXP rw
|
|
|
|
MON_SPD_EXP rw
|
|
|
|
MON_SPC_EXP rw
|
|
|
|
MON_DVS rw
|
|
|
|
MON_PP rb NUM_MOVES
|
|
|
|
MON_HAPPINESS rb
|
2021-06-08 00:00:21 +00:00
|
|
|
MON_POKERUS rb
|
2021-03-04 03:22:41 +00:00
|
|
|
MON_CAUGHTDATA rw
|
|
|
|
rsset MON_CAUGHTDATA
|
|
|
|
MON_CAUGHTTIME rb
|
|
|
|
MON_CAUGHTGENDER rb
|
|
|
|
rsset MON_CAUGHTDATA
|
|
|
|
MON_CAUGHTLEVEL rb
|
|
|
|
MON_CAUGHTLOCATION rb
|
|
|
|
MON_LEVEL rb
|
|
|
|
BOXMON_STRUCT_LENGTH EQU _RS
|
2021-03-04 23:13:33 +00:00
|
|
|
MON_STATUS rb
|
|
|
|
rb_skip
|
2021-03-04 03:22:41 +00:00
|
|
|
MON_HP rw
|
|
|
|
MON_MAXHP rw
|
2021-03-17 15:38:01 +00:00
|
|
|
MON_STATS rw NUM_BATTLE_STATS
|
|
|
|
rsset MON_STATS
|
2021-03-04 03:22:41 +00:00
|
|
|
MON_ATK rw
|
|
|
|
MON_DEF rw
|
|
|
|
MON_SPD rw
|
|
|
|
MON_SAT rw
|
|
|
|
MON_SDF rw
|
|
|
|
PARTYMON_STRUCT_LENGTH EQU _RS
|
|
|
|
|
|
|
|
NICKNAMED_MON_STRUCT_LENGTH EQU PARTYMON_STRUCT_LENGTH + MON_NAME_LENGTH
|
2017-12-11 21:51:12 +00:00
|
|
|
REDMON_STRUCT_LENGTH EQU 44
|
|
|
|
|
2018-01-11 17:00:01 +00:00
|
|
|
; caught data
|
|
|
|
|
|
|
|
CAUGHT_TIME_MASK EQU %11000000
|
|
|
|
CAUGHT_LEVEL_MASK EQU %00111111
|
|
|
|
|
|
|
|
CAUGHT_GENDER_MASK EQU %10000000
|
|
|
|
CAUGHT_LOCATION_MASK EQU %01111111
|
|
|
|
|
|
|
|
CAUGHT_BY_UNKNOWN EQU 0
|
|
|
|
CAUGHT_BY_GIRL EQU 1
|
|
|
|
CAUGHT_BY_BOY EQU 2
|
|
|
|
|
|
|
|
CAUGHT_EGG_LEVEL EQU 1
|
|
|
|
|
2021-03-04 03:22:41 +00:00
|
|
|
MON_CRY_LENGTH EQU 6
|
|
|
|
|
2017-12-11 21:51:12 +00:00
|
|
|
; maximum number of party pokemon
|
|
|
|
PARTY_LENGTH EQU 6
|
|
|
|
|
2018-01-25 22:00:31 +00:00
|
|
|
; boxes
|
|
|
|
MONS_PER_BOX EQU 20
|
2021-04-27 16:11:39 +00:00
|
|
|
; box: count, species, mons, OTs, nicknames, padding
|
|
|
|
BOX_LENGTH EQU 1 + MONS_PER_BOX + 1 + (BOXMON_STRUCT_LENGTH + NAME_LENGTH + MON_NAME_LENGTH) * MONS_PER_BOX + 2 ; $450
|
2021-03-21 21:47:53 +00:00
|
|
|
NUM_BOXES EQU 14
|
2018-01-25 22:00:31 +00:00
|
|
|
|
|
|
|
; hall of fame
|
2021-04-27 16:11:39 +00:00
|
|
|
; hof_mon: species, id, dvs, level, nicknames
|
|
|
|
HOF_MON_LENGTH EQU 1 + 2 + 2 + 1 + (MON_NAME_LENGTH - 1) ; $10
|
|
|
|
; hall_of_fame: win count, party, terminator
|
|
|
|
HOF_LENGTH EQU 1 + HOF_MON_LENGTH * PARTY_LENGTH + 1 ; $62
|
2019-01-03 00:04:50 +00:00
|
|
|
NUM_HOF_TEAMS EQU 30
|
2018-01-25 22:00:31 +00:00
|
|
|
|
2017-12-15 04:00:54 +00:00
|
|
|
; evolution types (used in data/pokemon/evos_attacks.asm)
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1
|
2015-07-13 05:37:11 +00:00
|
|
|
const EVOLVE_LEVEL
|
|
|
|
const EVOLVE_ITEM
|
|
|
|
const EVOLVE_TRADE
|
|
|
|
const EVOLVE_HAPPINESS
|
|
|
|
const EVOLVE_STAT
|
2014-02-02 22:12:04 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; EVOLVE_HAPPINESS triggers
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1
|
2015-07-13 05:37:11 +00:00
|
|
|
const TR_ANYTIME
|
|
|
|
const TR_MORNDAY
|
|
|
|
const TR_NITE
|
2014-02-02 22:12:04 +00:00
|
|
|
|
2017-12-09 05:50:59 +00:00
|
|
|
; EVOLVE_STAT triggers
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1
|
2015-07-13 05:37:11 +00:00
|
|
|
const ATK_GT_DEF
|
|
|
|
const ATK_LT_DEF
|
|
|
|
const ATK_EQ_DEF
|
2015-07-23 07:41:52 +00:00
|
|
|
|
2018-01-22 16:30:17 +00:00
|
|
|
; wild data
|
|
|
|
|
|
|
|
NUM_GRASSMON EQU 7 ; data/wild/*_grass.asm table size
|
|
|
|
NUM_WATERMON EQU 3 ; data/wild/*_water.asm table size
|
|
|
|
|
2022-02-12 15:01:12 +00:00
|
|
|
GRASS_WILDDATA_LENGTH EQU 2 + 3 + NUM_GRASSMON * 2 * 3
|
|
|
|
WATER_WILDDATA_LENGTH EQU 2 + 1 + NUM_WATERMON * 2
|
2018-06-24 15:46:55 +00:00
|
|
|
FISHGROUP_DATA_LENGTH EQU 1 + 2 * 3
|
2018-01-22 16:30:17 +00:00
|
|
|
|
|
|
|
NUM_ROAMMON_MAPS EQU 16 ; RoamMaps table size (see data/wild/roammon_maps.asm)
|
|
|
|
|
2018-01-11 07:35:46 +00:00
|
|
|
; treemon sets
|
|
|
|
; TreeMons indexes (see data/wild/treemons.asm)
|
|
|
|
const_def
|
|
|
|
const TREEMON_SET_CITY
|
|
|
|
const TREEMON_SET_CANYON
|
2018-01-22 16:30:17 +00:00
|
|
|
const TREEMON_SET_TOWN
|
2018-01-11 07:35:46 +00:00
|
|
|
const TREEMON_SET_ROUTE
|
|
|
|
const TREEMON_SET_KANTO
|
|
|
|
const TREEMON_SET_LAKE
|
|
|
|
const TREEMON_SET_FOREST
|
|
|
|
const TREEMON_SET_ROCK
|
|
|
|
NUM_TREEMON_SETS EQU const_value
|
|
|
|
|
|
|
|
; treemon scores
|
|
|
|
const_def
|
|
|
|
const TREEMON_SCORE_BAD ; 0
|
|
|
|
const TREEMON_SCORE_GOOD ; 1
|
|
|
|
const TREEMON_SCORE_RARE ; 2
|
|
|
|
|
2021-03-17 15:38:01 +00:00
|
|
|
; ChangeHappiness arguments (see data/events/happiness_changes.asm)
|
2020-10-26 19:45:57 +00:00
|
|
|
const_def 1
|
2018-01-25 22:30:13 +00:00
|
|
|
const HAPPINESS_GAINLEVEL ; 01
|
|
|
|
const HAPPINESS_USEDITEM ; 02
|
|
|
|
const HAPPINESS_USEDXITEM ; 03
|
|
|
|
const HAPPINESS_GYMBATTLE ; 04
|
|
|
|
const HAPPINESS_LEARNMOVE ; 05
|
|
|
|
const HAPPINESS_FAINTED ; 06
|
|
|
|
const HAPPINESS_POISONFAINT ; 07
|
|
|
|
const HAPPINESS_BEATENBYSTRONGFOE ; 08
|
2019-05-18 17:27:32 +00:00
|
|
|
const HAPPINESS_OLDERCUT1 ; 09
|
|
|
|
const HAPPINESS_OLDERCUT2 ; 0a
|
|
|
|
const HAPPINESS_OLDERCUT3 ; 0b
|
|
|
|
const HAPPINESS_YOUNGCUT1 ; 0c
|
|
|
|
const HAPPINESS_YOUNGCUT2 ; 0d
|
|
|
|
const HAPPINESS_YOUNGCUT3 ; 0e
|
2018-01-25 22:30:13 +00:00
|
|
|
const HAPPINESS_BITTERPOWDER ; 0f
|
|
|
|
const HAPPINESS_ENERGYROOT ; 10
|
|
|
|
const HAPPINESS_REVIVALHERB ; 11
|
|
|
|
const HAPPINESS_GROOMING ; 12
|
|
|
|
const HAPPINESS_GAINLEVELATHOME ; 13
|
2021-03-04 03:22:41 +00:00
|
|
|
NUM_HAPPINESS_CHANGES EQU const_value - 1
|
2018-01-25 22:30:13 +00:00
|
|
|
|
2018-01-11 07:35:46 +00:00
|
|
|
; significant happiness values
|
|
|
|
BASE_HAPPINESS EQU 70
|
|
|
|
FRIEND_BALL_HAPPINESS EQU 200
|
|
|
|
HAPPINESS_TO_EVOLVE EQU 220
|
|
|
|
HAPPINESS_THRESHOLD_1 EQU 100
|
|
|
|
HAPPINESS_THRESHOLD_2 EQU 200
|
|
|
|
|
|
|
|
; PP
|
|
|
|
PP_UP_MASK EQU %11000000
|
|
|
|
PP_UP_ONE EQU %01000000
|
|
|
|
PP_MASK EQU %00111111
|