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