summaryrefslogtreecommitdiff
path: root/asm/macros/pokemon_data.s
diff options
context:
space:
mode:
Diffstat (limited to 'asm/macros/pokemon_data.s')
-rw-r--r--asm/macros/pokemon_data.s44
1 files changed, 44 insertions, 0 deletions
diff --git a/asm/macros/pokemon_data.s b/asm/macros/pokemon_data.s
new file mode 100644
index 000000000..712044f61
--- /dev/null
+++ b/asm/macros/pokemon_data.s
@@ -0,0 +1,44 @@
+ .macro pokedex_entry category_name, height, width, text_pointer, pokemon_scale, pokemon_offset, trainer_scale, trainer_offset
+ .charmapstr "\category_name", 12
+ .2byte \height ; in decimeters
+ .2byte \width ; in hectograms
+ .4byte \text_pointer
+ .2byte 0 ; unused
+ .2byte \pokemon_scale
+ .2byte \pokemon_offset
+ .2byte \trainer_scale
+ .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
+
+ .macro level_up_move level, move
+ .2byte (\level << 9) | \move
+ .endm
+
+ .macro evo_entry method, parameter, target_pokemon
+ .2byte \method
+ .2byte \parameter
+ .2byte \target_pokemon
+ .2byte 0 ; padding
+ .endm
+
+ .macro empty_evo_entries count
+ .fill 8 * \count, 1, 0
+ .endm
+
+ .macro egg_moves_begin species
+ .2byte 20000 + \species
+ .endm