Merge pull request #2159 from GriffinRichards/mapsec-default

Add explicit defaults for MAPSEC data
This commit is contained in:
GriffinR
2025-06-30 13:25:48 -04:00
committed by GitHub
2 changed files with 128 additions and 590 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -22,18 +22,28 @@ const struct RegionMapLocation gRegionMapEntries[] = {
[{{ map_section.id }}] = {
{% if existsIn(map_section, "x") %}
.x = {{ map_section.x }},
{% else %}
.x = 0,
{% endif %}
{% if existsIn(map_section, "y") %}
.y = {{ map_section.y }},
{% else %}
.y = 0,
{% endif %}
{% if existsIn(map_section, "width") %}
.width = {{ map_section.width }},
{% else %}
.width = 1,
{% endif %}
{% if existsIn(map_section, "height") %}
.height = {{ map_section.height }},
{% else %}
.height = 1,
{% endif %}
{% if existsIn(map_section, "name") %}
.name = sMapName_{{ cleanString(map_section.name) }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %},
{% else %}
.name = (const u8[])_(""),
{% endif %}
},
## endfor