mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
pokemon base stats
This commit is contained in:
parent
6c87e0143d
commit
54183f2d07
172
asm/emerald.s
172
asm/emerald.s
@ -1,6 +1,10 @@
|
||||
.include "constants/gba_constants.s"
|
||||
.include "constants/misc_constants.s"
|
||||
.include "constants/species_constants.s"
|
||||
.include "constants/ability_constants.s"
|
||||
.include "constants/item_constants.s"
|
||||
.include "constants/type_constants.s"
|
||||
.include "constants/pokemon_data_constants.s"
|
||||
.include "asm/macros.s"
|
||||
.include "asm/charmap.s"
|
||||
|
||||
@ -29914,7 +29918,7 @@ sub_8017D04: ; 8017D04
|
||||
ldrb r0, [r0]
|
||||
cmp r4, r0
|
||||
bge @08017D8E
|
||||
ldr r6, =gUnknown_083203CC
|
||||
ldr r6, =gBaseStats
|
||||
@08017D50:
|
||||
movs r0, 0x64
|
||||
muls r0, r4
|
||||
@ -98360,7 +98364,7 @@ sub_8039F40: ; 8039F40
|
||||
bl pokemon_getattr
|
||||
ldr r6, [r5]
|
||||
adds r6, 0x7C
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
lsls r1, 2
|
||||
@ -99562,7 +99566,7 @@ sub_803A75C: ; 803A75C
|
||||
.pool
|
||||
@0803AB6C:
|
||||
adds r2, r4
|
||||
ldr r5, =gUnknown_083203CC
|
||||
ldr r5, =gBaseStats
|
||||
ldrh r1, [r2]
|
||||
lsls r0, r1, 3
|
||||
subs r0, r1
|
||||
@ -99750,7 +99754,7 @@ sub_803AC84: ; 803AC84
|
||||
mov r2, r8
|
||||
adds r3, r0, r2
|
||||
movs r2, 0
|
||||
ldr r6, =gUnknown_083203CC
|
||||
ldr r6, =gBaseStats
|
||||
ldr r5, =0x02023864
|
||||
ldr r4, =0x02024064
|
||||
@0803AD0E:
|
||||
@ -122765,7 +122769,7 @@ ai_rate_move: ; 80477BC
|
||||
movs r7, 0
|
||||
mov r0, sp
|
||||
strb r7, [r0]
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r0, r1, 3
|
||||
subs r0, r1
|
||||
lsls r0, 2
|
||||
@ -127909,7 +127913,7 @@ sub_804A32C: ; 804A32C
|
||||
adds r7, 0x1
|
||||
cmp r7, 0x5
|
||||
ble @0804A418
|
||||
ldr r3, =gUnknown_083203CC
|
||||
ldr r3, =gBaseStats
|
||||
ldr r2, =0x02024084
|
||||
ldr r0, =0x0202420d
|
||||
ldrb r1, [r0]
|
||||
@ -132385,7 +132389,7 @@ sub_804C904: ; 804C904
|
||||
adds r2, r0, 0
|
||||
muls r2, r7
|
||||
adds r2, r4
|
||||
ldr r3, =gUnknown_083203CC
|
||||
ldr r3, =gBaseStats
|
||||
ldrh r1, [r2]
|
||||
lsls r0, r1, 3
|
||||
subs r0, r1
|
||||
@ -147246,7 +147250,7 @@ atkC4_802B910: ; 80546E4
|
||||
str r0, [r1]
|
||||
ldr r2, =0x020241f0
|
||||
mov r8, r2
|
||||
ldr r5, =gUnknown_083203CC
|
||||
ldr r5, =gBaseStats
|
||||
mov r1, r9
|
||||
ldrb r0, [r1]
|
||||
movs r4, 0x64
|
||||
@ -149686,7 +149690,7 @@ sub_8055C00: ; 8055C00
|
||||
beq @08055CC4
|
||||
movs r6, 0
|
||||
mov r7, sp
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
mov r8, r0
|
||||
@08055C2A:
|
||||
movs r0, 0x64
|
||||
@ -149786,7 +149790,7 @@ sub_8055C00: ; 8055C00
|
||||
lsls r0, r5, 3
|
||||
subs r0, r5
|
||||
lsls r0, 2
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
adds r0, r1
|
||||
ldrb r0, [r0, 0x17]
|
||||
b @08055D3C
|
||||
@ -149811,7 +149815,7 @@ sub_8055C00: ; 8055C00
|
||||
lsls r0, r5, 3
|
||||
subs r0, r5
|
||||
lsls r0, 2
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
adds r0, r1
|
||||
ldrb r0, [r0, 0x16]
|
||||
@08055D3C:
|
||||
@ -150569,7 +150573,7 @@ sub_8056300: ; 8056300
|
||||
.align 2, 0
|
||||
.pool
|
||||
@080563B0:
|
||||
ldr r3, =gUnknown_083203CC
|
||||
ldr r3, =gBaseStats
|
||||
ldr r2, =0x02024084
|
||||
ldrb r1, [r6]
|
||||
movs r0, 0x58
|
||||
@ -155910,7 +155914,7 @@ sub_80591B8: ; 80591B8
|
||||
ldr r3, =gExperienceTables
|
||||
adds r4, 0x1
|
||||
lsls r4, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r1, r5, 3
|
||||
subs r1, r5
|
||||
lsls r1, 2
|
||||
@ -156070,7 +156074,7 @@ sub_8059330: ; 8059330
|
||||
adds r3, r0, 0
|
||||
ldr r6, =gExperienceTables
|
||||
lsls r1, r4, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r0, r5, 3
|
||||
subs r0, r5
|
||||
lsls r0, 2
|
||||
@ -156189,7 +156193,7 @@ sub_8059400: ; 8059400
|
||||
ldr r3, =gExperienceTables
|
||||
adds r4, 0x1
|
||||
lsls r4, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
lsls r1, 2
|
||||
@ -174415,7 +174419,7 @@ sub_8062E54: ; 8062E54
|
||||
adds r5, r4, 0
|
||||
cmp r5, r10
|
||||
bge @080630AC
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
mov r9, r0
|
||||
@08062FF0:
|
||||
movs r0, 0x64
|
||||
@ -175058,7 +175062,7 @@ ai_switchout_something: ; 8063364
|
||||
lsls r0, r4, 3
|
||||
subs r0, r4
|
||||
lsls r0, 2
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
adds r0, r1
|
||||
ldrb r2, [r0, 0x17]
|
||||
b @08063564
|
||||
@ -175068,7 +175072,7 @@ ai_switchout_something: ; 8063364
|
||||
lsls r0, r4, 3
|
||||
subs r0, r4
|
||||
lsls r0, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
adds r0, r2
|
||||
ldrb r2, [r0, 0x16]
|
||||
@08063564:
|
||||
@ -175925,7 +175929,7 @@ sub_8063A90: ; 8063A90
|
||||
ldrb r0, [r0]
|
||||
cmp r7, r0
|
||||
beq @08063CD8
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r5, 3
|
||||
subs r0, r5
|
||||
lsls r0, 2
|
||||
@ -183569,7 +183573,7 @@ create_pokemon: ; 8067BBC
|
||||
mov r2, sp
|
||||
adds r2, 0xE
|
||||
bl pokemon_setattr_encrypted
|
||||
ldr r4, =gUnknown_083203CC
|
||||
ldr r4, =gBaseStats
|
||||
mov r2, sp
|
||||
ldrh r1, [r2, 0xE]
|
||||
lsls r0, r1, 3
|
||||
@ -183725,7 +183729,7 @@ create_pokemon: ; 8067BBC
|
||||
adds r2, r4, 0
|
||||
bl pokemon_setattr_encrypted
|
||||
@08067E50:
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
mov r3, sp
|
||||
ldrh r1, [r3, 0xE]
|
||||
lsls r0, r1, 3
|
||||
@ -185629,7 +185633,7 @@ pokemon_calc_effective_stats: ; 8068D0C
|
||||
.align 2, 0
|
||||
.pool
|
||||
@08068DF8:
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r2, r7, 3
|
||||
subs r0, r2, r7
|
||||
lsls r0, 2
|
||||
@ -185669,7 +185673,7 @@ pokemon_calc_effective_stats: ; 8068D0C
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x3A
|
||||
bl pokemon_setattr
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
subs r1, r6, r7
|
||||
lsls r1, 2
|
||||
adds r6, r1, r0
|
||||
@ -185933,7 +185937,7 @@ level_by_exp: ; 8069054
|
||||
adds r3, r0, 0
|
||||
movs r2, 0x1
|
||||
ldr r6, =gExperienceTables
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r4, 3
|
||||
subs r0, r4
|
||||
lsls r0, 2
|
||||
@ -185988,7 +185992,7 @@ sub_80690C0: ; 80690C0
|
||||
adds r3, r0, 0
|
||||
movs r2, 0x1
|
||||
ldr r6, =gExperienceTables
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r4, 3
|
||||
subs r0, r4
|
||||
lsls r0, 2
|
||||
@ -187899,7 +187903,7 @@ pokemon_roll_gender: ; 8069FC4
|
||||
movs r2, 0
|
||||
bl pokemon_getattr_encrypted
|
||||
adds r2, r0, 0
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r5, 3
|
||||
subs r0, r5
|
||||
lsls r0, 2
|
||||
@ -187914,7 +187918,7 @@ pokemon_roll_gender: ; 8069FC4
|
||||
cmp r0, 0xFE
|
||||
bge @0806A01A
|
||||
@08069FFC:
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r5, 3
|
||||
subs r0, r5
|
||||
lsls r0, 2
|
||||
@ -187942,7 +187946,7 @@ pokemon_species_get_gender_info: ; 806A020
|
||||
adds r3, r1, 0
|
||||
lsls r0, 16
|
||||
lsrs r2, r0, 16
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r2, 3
|
||||
subs r0, r2
|
||||
lsls r0, 2
|
||||
@ -190884,7 +190888,7 @@ sub_806B694: ; 806B694
|
||||
cmp r1, 0
|
||||
beq @0806B6B8
|
||||
ldr r2, =0x0202420a
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r3, 3
|
||||
subs r0, r3
|
||||
lsls r0, 2
|
||||
@ -190895,7 +190899,7 @@ sub_806B694: ; 806B694
|
||||
.pool
|
||||
@0806B6B8:
|
||||
ldr r2, =0x0202420a
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r3, 3
|
||||
subs r0, r3
|
||||
lsls r0, 2
|
||||
@ -191593,7 +191597,7 @@ battle_data_fill: ; 806B9FC
|
||||
adds r1, 0x48
|
||||
adds r1, r5, r1
|
||||
str r0, [r1]
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
ldrh r1, [r7]
|
||||
lsls r0, r1, 3
|
||||
subs r0, r1
|
||||
@ -192237,7 +192241,7 @@ sub_806BD28: ; 806BD28
|
||||
bl pokemon_getattr
|
||||
adds r4, 0x1
|
||||
lsls r4, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
lsls r1, 2
|
||||
@ -195505,7 +195509,7 @@ sub_806DADC: ; 806DADC
|
||||
.4byte @0806DBA0
|
||||
.4byte @0806DBB4
|
||||
@0806DB50:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r5, 3
|
||||
subs r1, r5
|
||||
lsls r1, 2
|
||||
@ -195516,7 +195520,7 @@ sub_806DADC: ; 806DADC
|
||||
.align 2, 0
|
||||
.pool
|
||||
@0806DB64:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r5, 3
|
||||
subs r1, r5
|
||||
lsls r1, 2
|
||||
@ -195526,7 +195530,7 @@ sub_806DADC: ; 806DADC
|
||||
.align 2, 0
|
||||
.pool
|
||||
@0806DB78:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r5, 3
|
||||
subs r1, r5
|
||||
lsls r1, 2
|
||||
@ -195537,7 +195541,7 @@ sub_806DADC: ; 806DADC
|
||||
.align 2, 0
|
||||
.pool
|
||||
@0806DB8C:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r5, 3
|
||||
subs r1, r5
|
||||
lsls r1, 2
|
||||
@ -195548,7 +195552,7 @@ sub_806DADC: ; 806DADC
|
||||
.align 2, 0
|
||||
.pool
|
||||
@0806DBA0:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r5, 3
|
||||
subs r1, r5
|
||||
lsls r1, 2
|
||||
@ -195559,7 +195563,7 @@ sub_806DADC: ; 806DADC
|
||||
.align 2, 0
|
||||
.pool
|
||||
@0806DBB4:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r5, 3
|
||||
subs r1, r5
|
||||
lsls r1, 2
|
||||
@ -196085,7 +196089,7 @@ sub_806DF74: ; 806DF74
|
||||
bl pokemon_getattr
|
||||
str r0, [sp, 0x4]
|
||||
ldr r6, =gExperienceTables
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r1, r4, 3
|
||||
subs r1, r4
|
||||
lsls r1, 2
|
||||
@ -197180,7 +197184,7 @@ sub_806E804: ; 806E804
|
||||
sub_806E840: ; 806E840
|
||||
lsls r0, 16
|
||||
lsrs r0, 16
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
lsls r1, 2
|
||||
@ -197542,12 +197546,12 @@ sub_806EA68: ; 806EA68
|
||||
lsls r2, r4, 3
|
||||
subs r2, r4
|
||||
lsls r2, 2
|
||||
ldr r1, =gUnknown_083203DA
|
||||
ldr r1, =gBaseStats + 0xe ; item 2 offset
|
||||
b @0806EB6C
|
||||
.align 2, 0
|
||||
.pool
|
||||
@0806EB2C:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
mov r12, r0
|
||||
lsls r0, r4, 3
|
||||
subs r1, r0, r4
|
||||
@ -197577,7 +197581,7 @@ sub_806EA68: ; 806EA68
|
||||
@0806EB66:
|
||||
subs r2, r4
|
||||
lsls r2, 2
|
||||
ldr r1, =gUnknown_083203D8
|
||||
ldr r1, =gBaseStats + 0xc ; item 1 offset
|
||||
@0806EB6C:
|
||||
adds r2, r1
|
||||
@0806EB6E:
|
||||
@ -197590,7 +197594,7 @@ sub_806EA68: ; 806EA68
|
||||
ldr r0, =0x02024744
|
||||
subs r2, r4
|
||||
lsls r2, 2
|
||||
ldr r1, =gUnknown_083203DA
|
||||
ldr r1, =gBaseStats + 0xe ; item 2 offset
|
||||
adds r2, r1
|
||||
movs r1, 0xC
|
||||
bl pokemon_setattr
|
||||
@ -201595,7 +201599,7 @@ sub_8070954: ; 8070954
|
||||
lsls r2, r5, 3
|
||||
subs r2, r5
|
||||
lsls r2, 2
|
||||
ldr r0, =gUnknown_083203DD
|
||||
ldr r0, =gBaseStats + 0x11 ; egg cycles offset
|
||||
adds r2, r0
|
||||
adds r0, r7, 0
|
||||
movs r1, 0x20
|
||||
@ -201684,7 +201688,7 @@ sub_8070A0C: ; 8070A0C
|
||||
lsls r2, r5, 3
|
||||
subs r2, r5
|
||||
lsls r2, 2
|
||||
ldr r0, =gUnknown_083203DD
|
||||
ldr r0, =gBaseStats + 0x11 ; egg cycles offset
|
||||
adds r2, r0
|
||||
adds r0, r6, 0
|
||||
movs r1, 0x20
|
||||
@ -202075,7 +202079,7 @@ daycare_relationship_score: ; 8070D4C
|
||||
adds r2, 0x14
|
||||
str r2, [sp, 0x24]
|
||||
subs r0, 0x6
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
mov r10, r1
|
||||
ldr r5, [sp, 0x20]
|
||||
mov r8, r0
|
||||
@ -209349,7 +209353,7 @@ healthbar_draw_field_maybe: ; 8074860
|
||||
ldr r0, =gExperienceTables
|
||||
mov r12, r0
|
||||
lsls r1, r4, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r0, r5, 3
|
||||
subs r0, r5
|
||||
lsls r0, 2
|
||||
@ -220980,7 +220984,7 @@ sub_807A7E0: ; 807A7E0
|
||||
movs r0, 0x2
|
||||
b @0807A8C0
|
||||
@0807A84E:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r7, 3
|
||||
subs r1, r7
|
||||
lsls r1, 2
|
||||
@ -340734,7 +340738,7 @@ sub_80B4E68: ; 80B4E68
|
||||
lsrs r7, r1, 24
|
||||
bl zero_enemy_party_data
|
||||
movs r2, 0x1
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r6, 3
|
||||
subs r0, r6
|
||||
lsls r0, 2
|
||||
@ -342157,7 +342161,7 @@ sub_80B5990: ; 80B5990
|
||||
movs r3, 0
|
||||
cmp r4, r2
|
||||
bcs @080B5A12
|
||||
ldr r6, =gUnknown_083203CC
|
||||
ldr r6, =gBaseStats
|
||||
mov r10, r6
|
||||
@080B59DE:
|
||||
lsls r0, r3, 2
|
||||
@ -364312,7 +364316,7 @@ sub_80C0F30: ; 80C0F30
|
||||
cmp r6, r0
|
||||
bcs @080C10A2
|
||||
adds r7, r1, 0
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
mov r8, r0
|
||||
@080C105A:
|
||||
ldr r0, [r7]
|
||||
@ -364399,7 +364403,7 @@ sub_80C0F30: ; 80C0F30
|
||||
bl NationalPokedexNumToSpecies
|
||||
lsls r0, 16
|
||||
lsrs r2, r0, 16
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r2, 3
|
||||
subs r0, r2
|
||||
lsls r0, 2
|
||||
@ -364462,7 +364466,7 @@ sub_80C0F30: ; 80C0F30
|
||||
bl NationalPokedexNumToSpecies
|
||||
lsls r0, 16
|
||||
lsrs r2, r0, 16
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r2, 3
|
||||
subs r0, r2
|
||||
lsls r0, 2
|
||||
@ -422592,7 +422596,7 @@ sub_80DE864: ; 80DE864
|
||||
beq @080DE920
|
||||
b @080DE9A2
|
||||
@080DE8FA:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r6, 3
|
||||
subs r1, r6
|
||||
lsls r1, 2
|
||||
@ -589463,7 +589467,7 @@ tai2F_unk: ; 8132400
|
||||
.align 2, 0
|
||||
.pool
|
||||
@08132480:
|
||||
ldr r6, =gUnknown_083203CC
|
||||
ldr r6, =gBaseStats
|
||||
ldrh r0, [r4]
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
@ -589598,7 +589602,7 @@ tai60_unk: ; 813251C
|
||||
.align 2, 0
|
||||
.pool
|
||||
@08132588:
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
ldrh r1, [r4]
|
||||
lsls r0, r1, 3
|
||||
subs r0, r1
|
||||
@ -602779,7 +602783,7 @@ sub_81390B4: ; 81390B4
|
||||
sub_81390E0: ; 81390E0
|
||||
push {r4-r6,lr}
|
||||
movs r5, 0
|
||||
ldr r6, =gUnknown_083203CC
|
||||
ldr r6, =gBaseStats
|
||||
@081390E6:
|
||||
movs r0, 0x64
|
||||
adds r1, r5, 0
|
||||
@ -691171,7 +691175,7 @@ sub_8166188: ; 8166188
|
||||
bl sub_8165C40
|
||||
lsls r0, 24
|
||||
movs r5, 0
|
||||
ldr r7, =gUnknown_083203CC
|
||||
ldr r7, =gBaseStats
|
||||
lsrs r0, 22
|
||||
ldr r1, =gExperienceTables
|
||||
adds r6, r0, r1
|
||||
@ -770332,7 +770336,7 @@ sub_818F02C: ; 818F02C
|
||||
movs r3, 0
|
||||
mov r10, r3
|
||||
ldr r6, =gUnknown_0832A328
|
||||
ldr r5, =gUnknown_083203CC
|
||||
ldr r5, =gBaseStats
|
||||
@0818F38A:
|
||||
ldr r0, =0x03005d90
|
||||
ldr r0, [r0]
|
||||
@ -770532,7 +770536,7 @@ sub_818F02C: ; 818F02C
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
lsls r1, 2
|
||||
ldr r3, =gUnknown_083203CC
|
||||
ldr r3, =gBaseStats
|
||||
adds r1, r3
|
||||
ldrb r0, [r1, 0x6]
|
||||
lsls r0, 2
|
||||
@ -770825,7 +770829,7 @@ sub_818F720: ; 818F720
|
||||
mov r2, r10
|
||||
subs r0, r2, r6
|
||||
lsls r0, 2
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
adds r0, r1
|
||||
ldrb r0, [r0]
|
||||
lsls r0, 1
|
||||
@ -770849,7 +770853,7 @@ sub_818F720: ; 818F720
|
||||
mov r2, r10
|
||||
subs r0, r2, r6
|
||||
lsls r0, 2
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
adds r4, r0, r1
|
||||
ldrb r0, [r4, 0x1]
|
||||
lsls r0, 1
|
||||
@ -771870,7 +771874,7 @@ sub_818FFC0: ; 818FFC0
|
||||
.align 2, 0
|
||||
.pool
|
||||
@0818FFFC:
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r4, 3
|
||||
subs r0, r4
|
||||
lsls r0, 2
|
||||
@ -779551,7 +779555,7 @@ sub_8193ED0: ; 8193ED0
|
||||
lsls r0, r1, 3
|
||||
subs r0, r1
|
||||
lsls r0, 2
|
||||
ldr r5, =gUnknown_083203CC
|
||||
ldr r5, =gBaseStats
|
||||
adds r0, r5
|
||||
ldrb r2, [r0, 0x17]
|
||||
b @08194074
|
||||
@ -779561,7 +779565,7 @@ sub_8193ED0: ; 8193ED0
|
||||
lsls r0, r1, 3
|
||||
subs r0, r1
|
||||
lsls r0, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
adds r0, r2
|
||||
ldrb r2, [r0, 0x16]
|
||||
@08194074:
|
||||
@ -781616,7 +781620,7 @@ sub_8194F58: ; 8194F58
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
lsls r1, 2
|
||||
ldr r3, =gUnknown_083203CC
|
||||
ldr r3, =gBaseStats
|
||||
adds r1, r3
|
||||
ldrb r0, [r1, 0x6]
|
||||
lsls r0, 2
|
||||
@ -782107,7 +782111,7 @@ sub_8195438: ; 8195438
|
||||
lsls r0, 4
|
||||
adds r0, r1
|
||||
ldrh r2, [r0]
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r2, 3
|
||||
subs r1, r2
|
||||
lsls r1, 2
|
||||
@ -782216,7 +782220,7 @@ sub_8195438: ; 8195438
|
||||
lsls r0, 4
|
||||
adds r0, r1
|
||||
ldrh r2, [r0]
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r2, 3
|
||||
subs r1, r2
|
||||
lsls r1, 2
|
||||
@ -816237,7 +816241,7 @@ sub_81A6A08: ; 81A6A08
|
||||
mov r8, r0
|
||||
ldr r0, =0x0203bc8c
|
||||
ldr r6, [r0]
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
mov r12, r1
|
||||
@081A6A3C:
|
||||
lsls r0, r4, 1
|
||||
@ -817818,7 +817822,7 @@ sub_81A767C: ; 81A767C
|
||||
beq @081A76E0
|
||||
cmp r1, 0x80
|
||||
bne @081A771C
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r2, 3
|
||||
subs r0, r2
|
||||
lsls r0, 2
|
||||
@ -817837,7 +817841,7 @@ sub_81A767C: ; 81A767C
|
||||
.align 2, 0
|
||||
.pool
|
||||
@081A76C4:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r2, 3
|
||||
subs r1, r2
|
||||
lsls r1, 2
|
||||
@ -817852,7 +817856,7 @@ sub_81A767C: ; 81A767C
|
||||
.align 2, 0
|
||||
.pool
|
||||
@081A76E0:
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
lsls r0, r2, 3
|
||||
subs r0, r2
|
||||
lsls r0, 2
|
||||
@ -817871,7 +817875,7 @@ sub_81A767C: ; 81A767C
|
||||
.align 2, 0
|
||||
.pool
|
||||
@081A7704:
|
||||
ldr r0, =gUnknown_083203CC
|
||||
ldr r0, =gBaseStats
|
||||
lsls r1, r2, 3
|
||||
subs r1, r2
|
||||
lsls r1, 2
|
||||
@ -818557,7 +818561,7 @@ sub_81A7B90: ; 81A7B90
|
||||
b @081A7CE2
|
||||
@081A7C4A:
|
||||
ldr r0, =0x02024744
|
||||
ldr r1, =gUnknown_083203CC
|
||||
ldr r1, =gBaseStats
|
||||
mov r8, r1
|
||||
lsls r6, 2
|
||||
mov r9, r6
|
||||
@ -822647,7 +822651,7 @@ sub_81A9C04: ; 81A9C04
|
||||
adds r5, r4, r0
|
||||
@081A9CF6:
|
||||
ldr r4, =0x02024744
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
ldr r1, [sp, 0x10]
|
||||
lsls r0, r1, 1
|
||||
adds r0, r1
|
||||
@ -822685,7 +822689,7 @@ sub_81A9C04: ; 81A9C04
|
||||
.align 2, 0
|
||||
.pool
|
||||
@081A9D4C:
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
ldr r1, [sp, 0x10]
|
||||
lsls r0, r1, 1
|
||||
adds r0, r1
|
||||
@ -856586,7 +856590,7 @@ sub_81BB29C: ; 81BB29C
|
||||
ldr r3, =gExperienceTables
|
||||
adds r4, 0x1
|
||||
lsls r4, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r1, r5, 3
|
||||
subs r1, r5
|
||||
lsls r1, 2
|
||||
@ -856746,7 +856750,7 @@ sub_81BB414: ; 81BB414
|
||||
adds r3, r0, 0
|
||||
ldr r6, =gExperienceTables
|
||||
lsls r1, r4, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r0, r5, 3
|
||||
subs r0, r5
|
||||
lsls r0, 2
|
||||
@ -856865,7 +856869,7 @@ sub_81BB4E4: ; 81BB4E4
|
||||
ldr r3, =gExperienceTables
|
||||
adds r4, 0x1
|
||||
lsls r4, 2
|
||||
ldr r2, =gUnknown_083203CC
|
||||
ldr r2, =gBaseStats
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
lsls r1, 2
|
||||
@ -869613,7 +869617,7 @@ sub_81C22CC: ; 81C22CC
|
||||
adds r2, r1, 0
|
||||
adds r1, r2, 0x1
|
||||
lsls r1, 2
|
||||
ldr r4, =gUnknown_083203CC
|
||||
ldr r4, =gBaseStats
|
||||
ldrh r3, [r6]
|
||||
lsls r0, r3, 3
|
||||
subs r0, r3
|
||||
@ -872192,7 +872196,7 @@ sub_81C38C0: ; 81C38C0
|
||||
adds r1, r0, 0
|
||||
adds r1, 0x1
|
||||
lsls r1, 2
|
||||
ldr r3, =gUnknown_083203CC
|
||||
ldr r3, =gBaseStats
|
||||
ldrh r2, [r5]
|
||||
lsls r0, r2, 3
|
||||
subs r0, r2
|
||||
@ -873449,7 +873453,7 @@ sub_81C43A0: ; 81C43A0
|
||||
.align 2, 0
|
||||
.pool
|
||||
@081C43CC:
|
||||
ldr r4, =gUnknown_083203CC
|
||||
ldr r4, =gBaseStats
|
||||
ldrh r1, [r5]
|
||||
lsls r0, r1, 3
|
||||
subs r0, r1
|
||||
@ -910355,7 +910359,7 @@ sub_81D642C: ; 81D642C
|
||||
mov r1, sp
|
||||
ldrb r2, [r1]
|
||||
lsls r2, 2
|
||||
ldr r3, =gUnknown_083203CC
|
||||
ldr r3, =gBaseStats
|
||||
lsls r1, r0, 3
|
||||
subs r1, r0
|
||||
lsls r1, 2
|
||||
|
13
asm/macros.s
13
asm/macros.s
@ -76,3 +76,16 @@
|
||||
.2byte \trainer_offset
|
||||
.2byte 0 ; padding
|
||||
.endm
|
||||
|
||||
.macro base_stats hp, attack, defense, speed, sp_attack, sp_defense
|
||||
.byte \hp
|
||||
.byte \attack
|
||||
.byte \defense
|
||||
.byte \speed
|
||||
.byte \sp_attack
|
||||
.byte \sp_defense
|
||||
.endm
|
||||
|
||||
.macro ev_yield hp, attack, defense, speed, sp_attack, sp_defense
|
||||
.2byte (\sp_defense << 10) | (\sp_attack << 8) | (\speed << 6) | (\defense << 4) | (\attack << 2) | \hp
|
||||
.endm
|
||||
|
78
constants/ability_constants.s
Normal file
78
constants/ability_constants.s
Normal file
@ -0,0 +1,78 @@
|
||||
.set ABILITY_NONE, 0x00
|
||||
.set ABILITY_STENCH, 0x01
|
||||
.set ABILITY_DRIZZLE, 0x02
|
||||
.set ABILITY_SPEED_BOOST, 0x03
|
||||
.set ABILITY_BATTLE_ARMOR, 0x04
|
||||
.set ABILITY_STURDY, 0x05
|
||||
.set ABILITY_DAMP, 0x06
|
||||
.set ABILITY_LIMBER, 0x07
|
||||
.set ABILITY_SAND_VEIL, 0x08
|
||||
.set ABILITY_STATIC, 0x09
|
||||
.set ABILITY_VOLT_ABSORB, 0x0a
|
||||
.set ABILITY_WATER_ABSORB, 0x0b
|
||||
.set ABILITY_OBLIVIOUS, 0x0c
|
||||
.set ABILITY_CLOUD_NINE, 0x0d
|
||||
.set ABILITY_COMPOUND_EYES, 0x0e
|
||||
.set ABILITY_INSOMNIA, 0x0f
|
||||
.set ABILITY_COLOR_CHANGE, 0x10
|
||||
.set ABILITY_IMMUNITY, 0x11
|
||||
.set ABILITY_FLASH_FIRE, 0x12
|
||||
.set ABILITY_SHIELD_DUST, 0x13
|
||||
.set ABILITY_OWN_TEMPO, 0x14
|
||||
.set ABILITY_SUCTION_CUPS, 0x15
|
||||
.set ABILITY_INTIMIDATE, 0x16
|
||||
.set ABILITY_SHADOW_TAG, 0x17
|
||||
.set ABILITY_ROUGH_SKIN, 0x18
|
||||
.set ABILITY_WONDER_GUARD, 0x19
|
||||
.set ABILITY_LEVITATE, 0x1a
|
||||
.set ABILITY_EFFECT_SPORE, 0x1b
|
||||
.set ABILITY_SYNCHRONIZE, 0x1c
|
||||
.set ABILITY_CLEAR_BODY, 0x1d
|
||||
.set ABILITY_NATURAL_CURE, 0x1e
|
||||
.set ABILITY_LIGHTNING_ROD, 0x1f
|
||||
.set ABILITY_SERENE_GRACE, 0x20
|
||||
.set ABILITY_SWIFT_SWIM, 0x21
|
||||
.set ABILITY_CHLOROPHYLL, 0x22
|
||||
.set ABILITY_ILLUMINATE, 0x23
|
||||
.set ABILITY_TRACE, 0x24
|
||||
.set ABILITY_HUGE_POWER, 0x25
|
||||
.set ABILITY_POISON_POINT, 0x26
|
||||
.set ABILITY_INNER_FOCUS, 0x27
|
||||
.set ABILITY_MAGMA_ARMOR, 0x28
|
||||
.set ABILITY_WATER_VEIL, 0x29
|
||||
.set ABILITY_MAGNET_PULL, 0x2a
|
||||
.set ABILITY_SOUNDPROOF, 0x2b
|
||||
.set ABILITY_RAIN_DISH, 0x2c
|
||||
.set ABILITY_SAND_STREAM, 0x2d
|
||||
.set ABILITY_PRESSURE, 0x2e
|
||||
.set ABILITY_THICK_FAT, 0x2f
|
||||
.set ABILITY_EARLY_BIRD, 0x30
|
||||
.set ABILITY_FLAME_BODY, 0x31
|
||||
.set ABILITY_RUN_AWAY, 0x32
|
||||
.set ABILITY_KEEN_EYE, 0x33
|
||||
.set ABILITY_HYPER_CUTTER, 0x34
|
||||
.set ABILITY_PICKUP, 0x35
|
||||
.set ABILITY_TRUANT, 0x36
|
||||
.set ABILITY_HUSTLE, 0x37
|
||||
.set ABILITY_CUTE_CHARM, 0x38
|
||||
.set ABILITY_PLUS, 0x39
|
||||
.set ABILITY_MINUS, 0x3a
|
||||
.set ABILITY_FORECAST, 0x3b
|
||||
.set ABILITY_STICKY_HOLD, 0x3c
|
||||
.set ABILITY_SHED_SKIN, 0x3d
|
||||
.set ABILITY_GUTS, 0x3e
|
||||
.set ABILITY_MARVEL_SCALE, 0x3f
|
||||
.set ABILITY_LIQUID_OOZE, 0x40
|
||||
.set ABILITY_OVERGROW, 0x41
|
||||
.set ABILITY_BLAZE, 0x42
|
||||
.set ABILITY_TORRENT, 0x43
|
||||
.set ABILITY_SWARM, 0x44
|
||||
.set ABILITY_ROCK_HEAD, 0x45
|
||||
.set ABILITY_DROUGHT, 0x46
|
||||
.set ABILITY_ARENA_TRAP, 0x47
|
||||
.set ABILITY_VITAL_SPIRIT, 0x48
|
||||
.set ABILITY_WHITE_SMOKE, 0x49
|
||||
.set ABILITY_PURE_POWER, 0x4a
|
||||
.set ABILITY_SHELL_ARMOR, 0x4b
|
||||
.set ABILITY_CACOPHONY, 0x4c
|
||||
.set ABILITY_AIR_LOCK, 0x4d
|
310
constants/item_constants.s
Normal file
310
constants/item_constants.s
Normal file
@ -0,0 +1,310 @@
|
||||
.set ITEM_NONE, 0x000
|
||||
.set ITEM_MASTER_BALL, 0x001
|
||||
.set ITEM_ULTRA_BALL, 0x002
|
||||
.set ITEM_GREAT_BALL, 0x003
|
||||
.set ITEM_POKE_BALL, 0x004
|
||||
.set ITEM_SAFARI_BALL, 0x005
|
||||
.set ITEM_NET_BALL, 0x006
|
||||
.set ITEM_DIVE_BALL, 0x007
|
||||
.set ITEM_NEST_BALL, 0x008
|
||||
.set ITEM_REPEAT_BALL, 0x009
|
||||
.set ITEM_TIMER_BALL, 0x00a
|
||||
.set ITEM_LUXURY_BALL, 0x00b
|
||||
.set ITEM_PREMIER_BALL, 0x00c
|
||||
.set ITEM_POTION, 0x00d
|
||||
.set ITEM_ANTIDOTE, 0x00e
|
||||
.set ITEM_BURN_HEAL, 0x00f
|
||||
.set ITEM_ICE_HEAL, 0x010
|
||||
.set ITEM_AWAKENING, 0x011
|
||||
.set ITEM_PARALYZE_HEAL, 0x012
|
||||
.set ITEM_FULL_RESTORE, 0x013
|
||||
.set ITEM_MAX_POTION, 0x014
|
||||
.set ITEM_HYPER_POTION, 0x015
|
||||
.set ITEM_SUPER_POTION, 0x016
|
||||
.set ITEM_FULL_HEAL, 0x017
|
||||
.set ITEM_REVIVE, 0x018
|
||||
.set ITEM_MAX_REVIVE, 0x019
|
||||
.set ITEM_FRESH_WATER, 0x01a
|
||||
.set ITEM_SODA_POP, 0x01b
|
||||
.set ITEM_LEMONADE, 0x01c
|
||||
.set ITEM_MOOMOO_MILK, 0x01d
|
||||
.set ITEM_ENERGY_POWDER, 0x01e
|
||||
.set ITEM_ENERGY_ROOT, 0x01f
|
||||
.set ITEM_HEAL_POWDER, 0x020
|
||||
.set ITEM_REVIVAL_HERB, 0x021
|
||||
.set ITEM_ETHER, 0x022
|
||||
.set ITEM_MAX_ETHER, 0x023
|
||||
.set ITEM_ELIXIR, 0x024
|
||||
.set ITEM_MAX_ELIXIR, 0x025
|
||||
.set ITEM_LAVA_COOKIE, 0x026
|
||||
.set ITEM_BLUE_FLUTE, 0x027
|
||||
.set ITEM_YELLOW_FLUTE, 0x028
|
||||
.set ITEM_RED_FLUTE, 0x029
|
||||
.set ITEM_BLACK_FLUTE, 0x02a
|
||||
.set ITEM_WHITE_FLUTE, 0x02b
|
||||
.set ITEM_BERRY_JUICE, 0x02c
|
||||
.set ITEM_SACRED_ASH, 0x02d
|
||||
.set ITEM_SHOAL_SALT, 0x02e
|
||||
.set ITEM_SHOAL_SHELL, 0x02f
|
||||
.set ITEM_RED_SHARD, 0x030
|
||||
.set ITEM_BLUE_SHARD, 0x031
|
||||
.set ITEM_YELLOW_SHARD, 0x032
|
||||
.set ITEM_GREEN_SHARD, 0x033
|
||||
.set ITEM_HP_UP, 0x03f
|
||||
.set ITEM_PROTEIN, 0x040
|
||||
.set ITEM_IRON, 0x041
|
||||
.set ITEM_CARBOS, 0x042
|
||||
.set ITEM_CALCIUM, 0x043
|
||||
.set ITEM_RARE_CANDY, 0x044
|
||||
.set ITEM_PP_UP, 0x045
|
||||
.set ITEM_ZINC, 0x046
|
||||
.set ITEM_PP_MAX, 0x047
|
||||
.set ITEM_GUARD_SPEC, 0x049
|
||||
.set ITEM_DIRE_HIT, 0x04a
|
||||
.set ITEM_X_ATTACK, 0x04b
|
||||
.set ITEM_X_DEFEND, 0x04c
|
||||
.set ITEM_X_SPEED, 0x04d
|
||||
.set ITEM_X_ACCURACY, 0x04e
|
||||
.set ITEM_X_SPECIAL, 0x04f
|
||||
.set ITEM_POKE_DOLL, 0x050
|
||||
.set ITEM_FLUFFY_TAIL, 0x051
|
||||
.set ITEM_SUPER_REPEL, 0x053
|
||||
.set ITEM_MAX_REPEL, 0x054
|
||||
.set ITEM_ESCAPE_ROPE, 0x055
|
||||
.set ITEM_REPEL, 0x056
|
||||
.set ITEM_SUN_STONE, 0x05d
|
||||
.set ITEM_MOON_STONE, 0x05e
|
||||
.set ITEM_FIRE_STONE, 0x05f
|
||||
.set ITEM_THUNDER_STONE, 0x060
|
||||
.set ITEM_WATER_STONE, 0x061
|
||||
.set ITEM_LEAF_STONE, 0x062
|
||||
.set ITEM_TINY_MUSHROOM, 0x067
|
||||
.set ITEM_BIG_MUSHROOM, 0x068
|
||||
.set ITEM_PEARL, 0x06a
|
||||
.set ITEM_BIG_PEARL, 0x06b
|
||||
.set ITEM_STARDUST, 0x06c
|
||||
.set ITEM_STAR_PIECE, 0x06d
|
||||
.set ITEM_NUGGET, 0x06e
|
||||
.set ITEM_HEART_SCALE, 0x06f
|
||||
.set ITEM_ORANGE_MAIL, 0x079
|
||||
.set ITEM_HARBOR_MAIL, 0x07a
|
||||
.set ITEM_GLITTER_MAIL, 0x07b
|
||||
.set ITEM_MECH_MAIL, 0x07c
|
||||
.set ITEM_WOOD_MAIL, 0x07d
|
||||
.set ITEM_WAVE_MAIL, 0x07e
|
||||
.set ITEM_BEAD_MAIL, 0x07f
|
||||
.set ITEM_SHADOW_MAIL, 0x080
|
||||
.set ITEM_TROPIC_MAIL, 0x081
|
||||
.set ITEM_DREAM_MAIL, 0x082
|
||||
.set ITEM_FAB_MAIL, 0x083
|
||||
.set ITEM_RETRO_MAIL, 0x084
|
||||
.set ITEM_CHERI_BERRY, 0x085
|
||||
.set ITEM_CHESTO_BERRY, 0x086
|
||||
.set ITEM_PECHA_BERRY, 0x087
|
||||
.set ITEM_RAWST_BERRY, 0x088
|
||||
.set ITEM_ASPEAR_BERRY, 0x089
|
||||
.set ITEM_LEPPA_BERRY, 0x08a
|
||||
.set ITEM_ORAN_BERRY, 0x08b
|
||||
.set ITEM_PERSIM_BERRY, 0x08c
|
||||
.set ITEM_LUM_BERRY, 0x08d
|
||||
.set ITEM_SITRUS_BERRY, 0x08e
|
||||
.set ITEM_FIGY_BERRY, 0x08f
|
||||
.set ITEM_WIKI_BERRY, 0x090
|
||||
.set ITEM_MAGO_BERRY, 0x091
|
||||
.set ITEM_AGUAV_BERRY, 0x092
|
||||
.set ITEM_IAPAPA_BERRY, 0x093
|
||||
.set ITEM_RAZZ_BERRY, 0x094
|
||||
.set ITEM_BLUK_BERRY, 0x095
|
||||
.set ITEM_NANAB_BERRY, 0x096
|
||||
.set ITEM_WEPEAR_BERRY, 0x097
|
||||
.set ITEM_PINAP_BERRY, 0x098
|
||||
.set ITEM_POMEG_BERRY, 0x099
|
||||
.set ITEM_KELPSY_BERRY, 0x09a
|
||||
.set ITEM_QUALOT_BERRY, 0x09b
|
||||
.set ITEM_HONDEW_BERRY, 0x09c
|
||||
.set ITEM_GREPA_BERRY, 0x09d
|
||||
.set ITEM_TAMATO_BERRY, 0x09e
|
||||
.set ITEM_CORNN_BERRY, 0x09f
|
||||
.set ITEM_MAGOST_BERRY, 0x0a0
|
||||
.set ITEM_RABUTA_BERRY, 0x0a1
|
||||
.set ITEM_NOMEL_BERRY, 0x0a2
|
||||
.set ITEM_SPELON_BERRY, 0x0a3
|
||||
.set ITEM_PAMTRE_BERRY, 0x0a4
|
||||
.set ITEM_WATMEL_BERRY, 0x0a5
|
||||
.set ITEM_DURIN_BERRY, 0x0a6
|
||||
.set ITEM_BELUE_BERRY, 0x0a7
|
||||
.set ITEM_LIECHI_BERRY, 0x0a8
|
||||
.set ITEM_GANLON_BERRY, 0x0a9
|
||||
.set ITEM_SALAC_BERRY, 0x0aa
|
||||
.set ITEM_PETAYA_BERRY, 0x0ab
|
||||
.set ITEM_APICOT_BERRY, 0x0ac
|
||||
.set ITEM_LANSAT_BERRY, 0x0ad
|
||||
.set ITEM_STARF_BERRY, 0x0ae
|
||||
.set ITEM_ENIGMA_BERRY, 0x0af
|
||||
.set ITEM_BRIGHT_POWDER, 0x0b3
|
||||
.set ITEM_WHITE_HERB, 0x0b4
|
||||
.set ITEM_MACHO_BRACE, 0x0b5
|
||||
.set ITEM_EXP_SHARE, 0x0b6
|
||||
.set ITEM_QUICK_CLAW, 0x0b7
|
||||
.set ITEM_SOOTHE_BELL, 0x0b8
|
||||
.set ITEM_MENTAL_HERB, 0x0b9
|
||||
.set ITEM_CHOICE_BAND, 0x0ba
|
||||
.set ITEM_KINGS_ROCK, 0x0bb
|
||||
.set ITEM_SILVER_POWDER, 0x0bc
|
||||
.set ITEM_AMULET_COIN, 0x0bd
|
||||
.set ITEM_CLEANSE_TAG, 0x0be
|
||||
.set ITEM_SOUL_DEW, 0x0bf
|
||||
.set ITEM_DEEP_SEA_TOOTH, 0x0c0
|
||||
.set ITEM_DEEP_SEA_SCALE, 0x0c1
|
||||
.set ITEM_SMOKE_BALL, 0x0c2
|
||||
.set ITEM_EVERSTONE, 0x0c3
|
||||
.set ITEM_FOCUS_BAND, 0x0c4
|
||||
.set ITEM_LUCKY_EGG, 0x0c5
|
||||
.set ITEM_SCOPE_LENS, 0x0c6
|
||||
.set ITEM_METAL_COAT, 0x0c7
|
||||
.set ITEM_LEFTOVERS, 0x0c8
|
||||
.set ITEM_DRAGON_SCALE, 0x0c9
|
||||
.set ITEM_LIGHT_BALL, 0x0ca
|
||||
.set ITEM_SOFT_SAND, 0x0cb
|
||||
.set ITEM_HARD_STONE, 0x0cc
|
||||
.set ITEM_MIRACLE_SEED, 0x0cd
|
||||
.set ITEM_BLACK_GLASSES, 0x0ce
|
||||
.set ITEM_BLACK_BELT, 0x0cf
|
||||
.set ITEM_MAGNET, 0x0d0
|
||||
.set ITEM_MYSTIC_WATER, 0x0d1
|
||||
.set ITEM_SHARP_BEAK, 0x0d2
|
||||
.set ITEM_POISON_BARB, 0x0d3
|
||||
.set ITEM_NEVER_MELT_ICE, 0x0d4
|
||||
.set ITEM_SPELL_TAG, 0x0d5
|
||||
.set ITEM_TWISTED_SPOON, 0x0d6
|
||||
.set ITEM_CHARCOAL, 0x0d7
|
||||
.set ITEM_DRAGON_FANG, 0x0d8
|
||||
.set ITEM_SILK_SCARF, 0x0d9
|
||||
.set ITEM_UP_GRADE, 0x0da
|
||||
.set ITEM_SHELL_BELL, 0x0db
|
||||
.set ITEM_SEA_INCENSE, 0x0dc
|
||||
.set ITEM_LAX_INCENSE, 0x0dd
|
||||
.set ITEM_LUCKY_PUNCH, 0x0de
|
||||
.set ITEM_METAL_POWDER, 0x0df
|
||||
.set ITEM_THICK_CLUB, 0x0e0
|
||||
.set ITEM_STICK, 0x0e1
|
||||
.set ITEM_RED_SCARF, 0x0fe
|
||||
.set ITEM_BLUE_SCARF, 0x0ff
|
||||
.set ITEM_PINK_SCARF, 0x100
|
||||
.set ITEM_GREEN_SCARF, 0x101
|
||||
.set ITEM_YELLOW_SCARF, 0x102
|
||||
.set ITEM_MACH_BIKE, 0x103
|
||||
.set ITEM_COIN_CASE, 0x104
|
||||
.set ITEM_ITEMFINDER, 0x105
|
||||
.set ITEM_OLD_ROD, 0x106
|
||||
.set ITEM_GOOD_ROD, 0x107
|
||||
.set ITEM_SUPER_ROD, 0x108
|
||||
.set ITEM_SS_TICKET, 0x109
|
||||
.set ITEM_CONTEST_PASS, 0x10a
|
||||
.set ITEM_WAILMER_PAIL, 0x10c
|
||||
.set ITEM_DEVON_GOODS, 0x10d
|
||||
.set ITEM_SOOT_SACK, 0x10e
|
||||
.set ITEM_BASEMENT_KEY, 0x10f
|
||||
.set ITEM_ACRO_BIKE, 0x110
|
||||
.set ITEM_POKEBLOCK_CASE, 0x111
|
||||
.set ITEM_LETTER, 0x112
|
||||
.set ITEM_EON_TICKET, 0x113
|
||||
.set ITEM_RED_ORB, 0x114
|
||||
.set ITEM_BLUE_ORB, 0x115
|
||||
.set ITEM_SCANNER, 0x116
|
||||
.set ITEM_GO_GOGGLES, 0x117
|
||||
.set ITEM_METEORITE, 0x118
|
||||
.set ITEM_ROOM_1_KEY, 0x119
|
||||
.set ITEM_ROOM_2_KEY, 0x11a
|
||||
.set ITEM_ROOM_4_KEY, 0x11b
|
||||
.set ITEM_ROOM_6_KEY, 0x11c
|
||||
.set ITEM_STORAGE_KEY, 0x11d
|
||||
.set ITEM_ROOT_FOSSIL, 0x11e
|
||||
.set ITEM_CLAW_FOSSIL, 0x11f
|
||||
.set ITEM_DEVON_SCOPE, 0x120
|
||||
.set ITEM_TM01, 0x121
|
||||
.set ITEM_TM02, 0x122
|
||||
.set ITEM_TM03, 0x123
|
||||
.set ITEM_TM04, 0x124
|
||||
.set ITEM_TM05, 0x125
|
||||
.set ITEM_TM06, 0x126
|
||||
.set ITEM_TM07, 0x127
|
||||
.set ITEM_TM08, 0x128
|
||||
.set ITEM_TM09, 0x129
|
||||
.set ITEM_TM10, 0x12a
|
||||
.set ITEM_TM11, 0x12b
|
||||
.set ITEM_TM12, 0x12c
|
||||
.set ITEM_TM13, 0x12d
|
||||
.set ITEM_TM14, 0x12e
|
||||
.set ITEM_TM15, 0x12f
|
||||
.set ITEM_TM16, 0x130
|
||||
.set ITEM_TM17, 0x131
|
||||
.set ITEM_TM18, 0x132
|
||||
.set ITEM_TM19, 0x133
|
||||
.set ITEM_TM20, 0x134
|
||||
.set ITEM_TM21, 0x135
|
||||
.set ITEM_TM22, 0x136
|
||||
.set ITEM_TM23, 0x137
|
||||
.set ITEM_TM24, 0x138
|
||||
.set ITEM_TM25, 0x139
|
||||
.set ITEM_TM26, 0x13a
|
||||
.set ITEM_TM27, 0x13b
|
||||
.set ITEM_TM28, 0x13c
|
||||
.set ITEM_TM29, 0x13d
|
||||
.set ITEM_TM30, 0x13e
|
||||
.set ITEM_TM31, 0x13f
|
||||
.set ITEM_TM32, 0x140
|
||||
.set ITEM_TM33, 0x141
|
||||
.set ITEM_TM34, 0x142
|
||||
.set ITEM_TM35, 0x143
|
||||
.set ITEM_TM36, 0x144
|
||||
.set ITEM_TM37, 0x145
|
||||
.set ITEM_TM38, 0x146
|
||||
.set ITEM_TM39, 0x147
|
||||
.set ITEM_TM40, 0x148
|
||||
.set ITEM_TM41, 0x149
|
||||
.set ITEM_TM42, 0x14a
|
||||
.set ITEM_TM43, 0x14b
|
||||
.set ITEM_TM44, 0x14c
|
||||
.set ITEM_TM45, 0x14d
|
||||
.set ITEM_TM46, 0x14e
|
||||
.set ITEM_TM47, 0x14f
|
||||
.set ITEM_TM48, 0x150
|
||||
.set ITEM_TM49, 0x151
|
||||
.set ITEM_TM50, 0x152
|
||||
.set ITEM_HM01, 0x153
|
||||
.set ITEM_HM02, 0x154
|
||||
.set ITEM_HM03, 0x155
|
||||
.set ITEM_HM04, 0x156
|
||||
.set ITEM_HM05, 0x157
|
||||
.set ITEM_HM06, 0x158
|
||||
.set ITEM_HM07, 0x159
|
||||
.set ITEM_HM08, 0x15a
|
||||
.set ITEM_OAKS_PARCEL, 0x15d
|
||||
.set ITEM_POKE_FLUTE, 0x15e
|
||||
.set ITEM_SECRET_KEY, 0x15f
|
||||
.set ITEM_BIKE_VOUCHER, 0x160
|
||||
.set ITEM_GOLD_TEETH, 0x161
|
||||
.set ITEM_OLD_AMBER, 0x162
|
||||
.set ITEM_CARD_KEY, 0x163
|
||||
.set ITEM_LIFT_KEY, 0x164
|
||||
.set ITEM_HELIX_FOSSIL, 0x165
|
||||
.set ITEM_DOME_FOSSIL, 0x166
|
||||
.set ITEM_SILPH_SCOPE, 0x167
|
||||
.set ITEM_BICYCLE, 0x168
|
||||
.set ITEM_TOWN_MAP, 0x169
|
||||
.set ITEM_VS_SEEKER, 0x16a
|
||||
.set ITEM_FAME_CHECKER, 0x16b
|
||||
.set ITEM_TM_CASE, 0x16c
|
||||
.set ITEM_BERRY_POUCH, 0x16d
|
||||
.set ITEM_TEACHY_TV, 0x16e
|
||||
.set ITEM_TRI_PASS, 0x16f
|
||||
.set ITEM_RAINBOW_PASS, 0x170
|
||||
.set ITEM_TEA, 0x171
|
||||
.set ITEM_MYSTIC_TICKET, 0x172
|
||||
.set ITEM_AURORA_TICKET, 0x173
|
||||
.set ITEM_POWDER_JAR, 0x174
|
||||
.set ITEM_RUBY, 0x175
|
||||
.set ITEM_SAPPHIRE, 0x176
|
||||
.set ITEM_MAGMA_EMBLEM, 0x177
|
||||
.set ITEM_OLD_SEA_MAP, 0x178
|
36
constants/pokemon_data_constants.s
Normal file
36
constants/pokemon_data_constants.s
Normal file
@ -0,0 +1,36 @@
|
||||
.set GROWTH_MEDIUM_FAST, 0x00
|
||||
.set GROWTH_ERRATIC, 0x01
|
||||
.set GROWTH_FLUCTUATING, 0x02
|
||||
.set GROWTH_MEDIUM_SLOW, 0x03
|
||||
.set GROWTH_FAST, 0x04
|
||||
.set GROWTH_SLOW, 0x05
|
||||
|
||||
.set EGG_GROUP_NONE, 0x00
|
||||
.set EGG_GROUP_MONSTER, 0x01
|
||||
.set EGG_GROUP_WATER_1, 0x02
|
||||
.set EGG_GROUP_BUG, 0x03
|
||||
.set EGG_GROUP_FLYING, 0x04
|
||||
.set EGG_GROUP_FIELD, 0x05
|
||||
.set EGG_GROUP_FAIRY, 0x06
|
||||
.set EGG_GROUP_GRASS, 0x07
|
||||
.set EGG_GROUP_HUMAN_LIKE, 0x08
|
||||
.set EGG_GROUP_WATER_3, 0x09
|
||||
.set EGG_GROUP_MINERAL, 0x0a
|
||||
.set EGG_GROUP_AMORPHOUS, 0x0b
|
||||
.set EGG_GROUP_WATER_2, 0x0c
|
||||
.set EGG_GROUP_DITTO, 0x0d
|
||||
.set EGG_GROUP_DRAGON, 0x0e
|
||||
.set EGG_GROUP_UNDISCOVERED, 0x0f
|
||||
|
||||
.set BODY_COLOR_RED, 0x00
|
||||
.set BODY_COLOR_BLUE, 0x01
|
||||
.set BODY_COLOR_YELLOW, 0x02
|
||||
.set BODY_COLOR_GREEN, 0x03
|
||||
.set BODY_COLOR_BLACK, 0x04
|
||||
.set BODY_COLOR_BROWN, 0x05
|
||||
.set BODY_COLOR_PURPLE, 0x06
|
||||
.set BODY_COLOR_GRAY, 0x07
|
||||
.set BODY_COLOR_WHITE, 0x08
|
||||
.set BODY_COLOR_PINK, 0x09
|
||||
|
||||
.set SUMMARY_SCREEN_FLIP_SPRITE, 0x80
|
18
constants/type_constants.s
Normal file
18
constants/type_constants.s
Normal file
@ -0,0 +1,18 @@
|
||||
.set TYPE_NORMAL, 0x00
|
||||
.set TYPE_FIGHTING, 0x01
|
||||
.set TYPE_FLYING, 0x02
|
||||
.set TYPE_POISON, 0x03
|
||||
.set TYPE_GROUND, 0x04
|
||||
.set TYPE_ROCK, 0x05
|
||||
.set TYPE_BUG, 0x06
|
||||
.set TYPE_GHOST, 0x07
|
||||
.set TYPE_STEEL, 0x08
|
||||
.set TYPE_UNKNOWN, 0x09
|
||||
.set TYPE_FIRE, 0x0a
|
||||
.set TYPE_WATER, 0x0b
|
||||
.set TYPE_GRASS, 0x0c
|
||||
.set TYPE_ELECTRIC, 0x0d
|
||||
.set TYPE_PSYCHIC, 0x0e
|
||||
.set TYPE_ICE, 0x0f
|
||||
.set TYPE_DRAGON, 0x10
|
||||
.set TYPE_DARK, 0x11
|
8636
data/base_stats.s
Normal file
8636
data/base_stats.s
Normal file
File diff suppressed because it is too large
Load Diff
14
data/data2.s
14
data/data2.s
@ -1667,17 +1667,11 @@ gUnknown_0831F61C: ; 831F61C
|
||||
; 831F72C
|
||||
.include "data/experience_tables.s"
|
||||
|
||||
gUnknown_083203CC: ; 83203CC
|
||||
.incbin "base_emerald.gba", 0x3203cc, 0xc
|
||||
; 83203CC
|
||||
.include "data/base_stats.s"
|
||||
|
||||
gUnknown_083203D8: ; 83203D8
|
||||
.incbin "base_emerald.gba", 0x3203d8, 0x2
|
||||
|
||||
gUnknown_083203DA: ; 83203DA
|
||||
.incbin "base_emerald.gba", 0x3203da, 0x3
|
||||
|
||||
gUnknown_083203DD: ; 83203DD
|
||||
.incbin "base_emerald.gba", 0x3203dd, 0x4f3f
|
||||
; 83230DC
|
||||
.incbin "base_emerald.gba", 0x3230dc, 0x2240
|
||||
|
||||
gUnknown_0832531C: ; 832531C
|
||||
.incbin "base_emerald.gba", 0x32531c, 0x4060
|
||||
|
@ -15,7 +15,7 @@ gAbilityDescriptionPointers: ; 831BAD4
|
||||
.4byte gWaterAbsorbAbilityDescription
|
||||
.4byte gObliviousAbilityDescription
|
||||
.4byte gCloudNineAbilityDescription
|
||||
.4byte gCompoundeyesAbilityDescription
|
||||
.4byte gCompoundEyesAbilityDescription
|
||||
.4byte gInsomniaAbilityDescription
|
||||
.4byte gColorChangeAbilityDescription
|
||||
.4byte gImmunityAbilityDescription
|
||||
@ -32,7 +32,7 @@ gAbilityDescriptionPointers: ; 831BAD4
|
||||
.4byte gSynchronizeAbilityDescription
|
||||
.4byte gClearBodyAbilityDescription
|
||||
.4byte gNaturalCureAbilityDescription
|
||||
.4byte gLightningrodAbilityDescription
|
||||
.4byte gLightningRodAbilityDescription
|
||||
.4byte gSereneGraceAbilityDescription
|
||||
.4byte gSwiftSwimAbilityDescription
|
||||
.4byte gChlorophyllAbilityDescription
|
||||
|
@ -40,7 +40,7 @@ gObliviousAbilityDescription: ; 831B0B9
|
||||
gCloudNineAbilityDescription: ; 831B0CE
|
||||
.charmapstr "Negates weather effects.$"
|
||||
|
||||
gCompoundeyesAbilityDescription: ; 831B0E7
|
||||
gCompoundEyesAbilityDescription: ; 831B0E7
|
||||
.charmapstr "Raises accuracy.$"
|
||||
|
||||
gInsomniaAbilityDescription: ; 831B0F8
|
||||
@ -91,7 +91,7 @@ gClearBodyAbilityDescription: ; 831B243
|
||||
gNaturalCureAbilityDescription: ; 831B25F
|
||||
.charmapstr "Heals upon switching out.$"
|
||||
|
||||
gLightningrodAbilityDescription: ; 831B279
|
||||
gLightningRodAbilityDescription: ; 831B279
|
||||
.charmapstr "Draws electrical moves.$"
|
||||
|
||||
gSereneGraceAbilityDescription: ; 831B291
|
||||
|
@ -427,7 +427,7 @@ gStarfBerryItemDescription: ; 85817F6
|
||||
gEnigmaBerryItemDescription: ; 8581829
|
||||
.charmapstr "{POKEBLOCK} ingredient.{next}Plant in loamy soil{next}to grow a mystery.$"
|
||||
|
||||
gBrightpowderItemDescription: ; 8581862
|
||||
gBrightPowderItemDescription: ; 8581862
|
||||
.charmapstr "A hold item that{next}casts a glare to{next}reduce accuracy.$"
|
||||
|
||||
gWhiteHerbItemDescription: ; 8581895
|
||||
|
Loading…
Reference in New Issue
Block a user