Add explicit defaults for MAPSEC data
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -22,18 +22,28 @@ const struct RegionMapLocation gRegionMapEntries[] = {
|
|||||||
[{{ map_section.id }}] = {
|
[{{ map_section.id }}] = {
|
||||||
{% if existsIn(map_section, "x") %}
|
{% if existsIn(map_section, "x") %}
|
||||||
.x = {{ map_section.x }},
|
.x = {{ map_section.x }},
|
||||||
|
{% else %}
|
||||||
|
.x = 0,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if existsIn(map_section, "y") %}
|
{% if existsIn(map_section, "y") %}
|
||||||
.y = {{ map_section.y }},
|
.y = {{ map_section.y }},
|
||||||
|
{% else %}
|
||||||
|
.y = 0,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if existsIn(map_section, "width") %}
|
{% if existsIn(map_section, "width") %}
|
||||||
.width = {{ map_section.width }},
|
.width = {{ map_section.width }},
|
||||||
|
{% else %}
|
||||||
|
.width = 1,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if existsIn(map_section, "height") %}
|
{% if existsIn(map_section, "height") %}
|
||||||
.height = {{ map_section.height }},
|
.height = {{ map_section.height }},
|
||||||
|
{% else %}
|
||||||
|
.height = 1,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if existsIn(map_section, "name") %}
|
{% if existsIn(map_section, "name") %}
|
||||||
.name = sMapName_{{ cleanString(map_section.name) }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %},
|
.name = sMapName_{{ cleanString(map_section.name) }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %},
|
||||||
|
{% else %}
|
||||||
|
.name = (const u8[])_(""),
|
||||||
{% endif %}
|
{% endif %}
|
||||||
},
|
},
|
||||||
## endfor
|
## endfor
|
||||||
|
|||||||
Reference in New Issue
Block a user