Dump LeafGreen encounters

This commit is contained in:
PikalaxALT
2019-12-20 13:30:27 -05:00
parent 981c0dd398
commit d0e15e34c5
4 changed files with 12701 additions and 136 deletions
+12675 -132
View File
File diff suppressed because it is too large Load Diff
+7
View File
@@ -24,6 +24,8 @@
## for encounter in wild_encounter_group.encounters
{% if contains(encounter.base_label, "LeafGreen") %}#ifdef LEAFGREEN
{% else if contains(encounter.base_label, "FireRed") %}#ifdef FIRERED{% endif %}
{% if existsIn(encounter, "land_mons") %}
const struct WildPokemon {{ encounter.base_label }}_LandMons[] =
{
@@ -64,11 +66,15 @@ const struct WildPokemon {{ encounter.base_label }}_FishingMons[] =
const struct WildPokemonInfo {{ encounter.base_label }}_FishingMonsInfo = { {{encounter.fishing_mons.encounter_rate}}, {{ encounter.base_label }}_FishingMons };
{% endif %}
#endif
## endfor
const struct WildPokemonHeader {{ wild_encounter_group.label }}[] =
{
## for encounter in wild_encounter_group.encounters
{% if contains(encounter.base_label, "LeafGreen") %}#ifdef LEAFGREEN
{% else if contains(encounter.base_label, "FireRed") %}#ifdef FIRERED{% endif %}
{
.mapGroup = {% if wild_encounter_group.for_maps %}MAP_GROUP({{ removePrefix(encounter.map, "MAP_") }}){% else %}0{% endif %},
.mapNum = {% if wild_encounter_group.for_maps %}MAP_NUM({{ removePrefix(encounter.map, "MAP_") }}){% else %}{{ loop.index1 }}{% endif %},
@@ -77,6 +83,7 @@ const struct WildPokemonHeader {{ wild_encounter_group.label }}[] =
.rockSmashMonsInfo = {% if existsIn(encounter, "rock_smash_mons") %}&{{ encounter.base_label }}_RockSmashMonsInfo{% else %}NULL{% endif %},
.fishingMonsInfo = {% if existsIn(encounter, "fishing_mons") %}&{{ encounter.base_label }}_FishingMonsInfo{% else %}NULL{% endif %},
},
#endif
## endfor
{
.mapGroup = MAP_GROUP(UNDEFINED),