wild pokemon data
- Thanks to Sanqui for many Ruby/Sapphire names. https://github.com/Sanqui/romhacking/blob/master/pokemon/location-area-names
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
.macro new_map_group
|
||||
.set cur_map_group, cur_map_group + 1
|
||||
.set cur_map_num, 0
|
||||
.endm
|
||||
|
||||
.macro map_group map_name
|
||||
.set GROUP_\map_name, cur_map_group
|
||||
.set MAP_\map_name, cur_map_num
|
||||
.set cur_map_num, cur_map_num + 1
|
||||
.endm
|
||||
|
||||
.macro map map_name
|
||||
.byte GROUP_\map_name
|
||||
.byte MAP_\map_name
|
||||
.endm
|
||||
@@ -28,10 +28,10 @@
|
||||
.2byte (\level << 9) | \move
|
||||
.endm
|
||||
|
||||
.macro evo_entry method, parameter, target_pokemon
|
||||
.macro evo_entry method, parameter, target_species
|
||||
.2byte \method
|
||||
.2byte \parameter
|
||||
.2byte \target_pokemon
|
||||
.2byte \target_species
|
||||
.2byte 0 ; padding
|
||||
.endm
|
||||
|
||||
@@ -42,3 +42,16 @@
|
||||
.macro egg_moves_begin species
|
||||
.2byte 20000 + \species
|
||||
.endm
|
||||
|
||||
; If the min level equals the max level, only one level argument is needed.
|
||||
.macro wild_mon species, min_level, max_level
|
||||
.byte \min_level
|
||||
|
||||
.ifb \max_level
|
||||
.byte \min_level
|
||||
.else
|
||||
.byte \max_level
|
||||
.endif
|
||||
|
||||
.2byte SPECIES_\species
|
||||
.endm
|
||||
|
||||
Reference in New Issue
Block a user