Merge pull request #2152 from GriffinRichards/mapsec-data

Relax MAPSEC region map data requirements
This commit is contained in:
GriffinR
2025-06-25 22:05:35 -04:00
committed by GitHub

View File

@@ -19,9 +19,23 @@ static const u8 sMapName_{{ cleanString(map_section.name) }}_Clone[] = _("{{ map
const struct RegionMapLocation gRegionMapEntries[] = { const struct RegionMapLocation gRegionMapEntries[] = {
## for map_section in map_sections ## for map_section in map_sections
{% if existsIn(map_section, "x") and existsIn(map_section, "y") and existsIn(map_section, "width") and existsIn(map_section, "height") and existsIn(map_section, "name") %} [{{ map_section.id }}] = {
[{{ map_section.id }}] = { {{ map_section.x }}, {{ map_section.y }}, {{ map_section.width }}, {{ map_section.height }}, sMapName_{{ cleanString(map_section.name) }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %} }, {% if existsIn(map_section, "x") %}
.x = {{ map_section.x }},
{% endif %} {% endif %}
{% if existsIn(map_section, "y") %}
.y = {{ map_section.y }},
{% endif %}
{% if existsIn(map_section, "width") %}
.width = {{ map_section.width }},
{% endif %}
{% if existsIn(map_section, "height") %}
.height = {{ map_section.height }},
{% endif %}
{% if existsIn(map_section, "name") %}
.name = sMapName_{{ cleanString(map_section.name) }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %},
{% endif %}
},
## endfor ## endfor
}; };