add hidden encounters to wild_encounters json
This commit is contained in:
parent
f007befe51
commit
5d63d27124
1 changed files with 14 additions and 1 deletions
|
@ -64,8 +64,19 @@ const struct WildPokemon {{ encounter.base_label }}_FishingMons[] =
|
||||||
|
|
||||||
const struct WildPokemonInfo {{ encounter.base_label }}_FishingMonsInfo = { {{encounter.fishing_mons.encounter_rate}}, {{ encounter.base_label }}_FishingMons };
|
const struct WildPokemonInfo {{ encounter.base_label }}_FishingMonsInfo = { {{encounter.fishing_mons.encounter_rate}}, {{ encounter.base_label }}_FishingMons };
|
||||||
{% endif %}
|
{% endif %}
|
||||||
## endfor
|
|
||||||
|
|
||||||
|
{% if existsIn(encounter, "hidden_mons") %}
|
||||||
|
const struct WildPokemon {{ encounter.base_label }}_HiddenMons[] =
|
||||||
|
{
|
||||||
|
## for wild_mon in encounter.hidden_mons.mons
|
||||||
|
{ {{ wild_mon.min_level }}, {{ wild_mon.max_level }}, {{ wild_mon.species }} },
|
||||||
|
## endfor
|
||||||
|
};
|
||||||
|
|
||||||
|
const struct WildPokemonInfo {{ encounter.base_label }}_HiddenMonsInfo = { {{encounter.hidden_mons.encounter_rate}}, {{ encounter.base_label }}_HiddenMons };
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
## endfor
|
||||||
const struct WildPokemonHeader {{ wild_encounter_group.label }}[] =
|
const struct WildPokemonHeader {{ wild_encounter_group.label }}[] =
|
||||||
{
|
{
|
||||||
## for encounter in wild_encounter_group.encounters
|
## for encounter in wild_encounter_group.encounters
|
||||||
|
@ -76,6 +87,7 @@ const struct WildPokemonHeader {{ wild_encounter_group.label }}[] =
|
||||||
.waterMonsInfo = {% if existsIn(encounter, "water_mons") %}&{{ encounter.base_label }}_WaterMonsInfo{% else %}NULL{% endif %},
|
.waterMonsInfo = {% if existsIn(encounter, "water_mons") %}&{{ encounter.base_label }}_WaterMonsInfo{% else %}NULL{% endif %},
|
||||||
.rockSmashMonsInfo = {% if existsIn(encounter, "rock_smash_mons") %}&{{ encounter.base_label }}_RockSmashMonsInfo{% else %}NULL{% endif %},
|
.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 %},
|
.fishingMonsInfo = {% if existsIn(encounter, "fishing_mons") %}&{{ encounter.base_label }}_FishingMonsInfo{% else %}NULL{% endif %},
|
||||||
|
.hiddenMonsInfo = {% if existsIn(encounter, "hidden_mons") %}&{{ encounter.base_label }}_HiddenMonsInfo{% else %}NULL{% endif %},
|
||||||
},
|
},
|
||||||
## endfor
|
## endfor
|
||||||
{
|
{
|
||||||
|
@ -85,6 +97,7 @@ const struct WildPokemonHeader {{ wild_encounter_group.label }}[] =
|
||||||
.waterMonsInfo = NULL,
|
.waterMonsInfo = NULL,
|
||||||
.rockSmashMonsInfo = NULL,
|
.rockSmashMonsInfo = NULL,
|
||||||
.fishingMonsInfo = NULL,
|
.fishingMonsInfo = NULL,
|
||||||
|
.hiddenMonsInfo = NULL,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
## endfor
|
## endfor
|
||||||
|
|
Loading…
Reference in a new issue