mirror of
https://github.com/pret/pokeemerald.git
synced 2026-05-05 21:07:17 -05:00
Added COMPOUND_STRINGs to region_map_entries.h (#7669)
This commit is contained in:
parent
6a4f923904
commit
db3405dc3a
|
|
@ -2,21 +2,6 @@
|
|||
#ifndef GUARD_DATA_REGION_MAP_REGION_MAP_ENTRIES_H
|
||||
#define GUARD_DATA_REGION_MAP_REGION_MAP_ENTRIES_H
|
||||
|
||||
## for map_section in map_sections
|
||||
{% 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, "name") %}
|
||||
{% if getVar(map_section.name) == map_section.id %}
|
||||
static const u8 sMapName_{{ cleanString(map_section.name) }}[] = _("{{ map_section.name }}");
|
||||
{% endif %}
|
||||
{% if existsIn(map_section, "name_clone") %}
|
||||
static const u8 sMapName_{{ cleanString(map_section.name) }}_Clone[] = _("{{ map_section.name }}");
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
## endfor
|
||||
|
||||
const struct RegionMapLocation gRegionMapEntries[] = {
|
||||
## for map_section in map_sections
|
||||
[{{ map_section.id }}] = {
|
||||
|
|
@ -41,7 +26,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 = COMPOUND_STRING("{{ map_section.name }}"),
|
||||
{% else %}
|
||||
.name = (const u8[])_(""),
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user