Update region_map_sections.json.txt

This commit is contained in:
RoamerX 2025-08-04 20:37:38 +08:00
parent cc5b36846a
commit 90978a5001

View File

@ -3,16 +3,14 @@
#define GUARD_DATA_REGION_MAP_REGION_MAP_ENTRIES_H
## for map_section in map_sections
{% if existsIn(map_section, "id") and isEmptyString(getVar(map_section.id)) and not existsIn(map_section, "name_clone") %}{{ setVar(map_section.id, map_section.id) }}{% endif %}
{% if existsIn(map_section, "name") and isEmptyString(getVar(map_section.name)) and not existsIn(map_section, "name_clone") %}{{ setVar(map_section.name, map_section.id) }}{% endif %}
## endfor
## for map_section in map_sections
{% if existsIn(map_section, "id") %}
{% if getVar(map_section.id) == map_section.id %}
static const u8 sMapName_{{ cleanString(map_section.id) }}[] = _("{{ map_section.name }}");
{% endif %}
{% if existsIn(map_section, "name") %}
static const u8 sMapName_{{ map_section.id }}[] = _("{{ map_section.name }}");
{% if existsIn(map_section, "name_clone") %}
static const u8 sMapName_{{ cleanString(map_section.id) }}_Clone[] = _("{{ map_section.name }}");
static const u8 sMapName_{{ map_section.id }}_Clone[] = _("{{ map_section.name }}");
{% endif %}
{% endif %}
## endfor
@ -41,7 +39,7 @@ const struct RegionMapLocation gRegionMapEntries[] = {
.height = 1,
{% endif %}
{% if existsIn(map_section, "name") %}
.name = sMapName_{{ cleanString(map_section.name) }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %},
.name = sMapName_{{ map_section.id }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %},
{% else %}
.name = (const u8[])_(""),
{% endif %}