地名汉化

地名json生成规则按照之前泡泡的方法修改
This commit is contained in:
RoamerX 2025-04-10 21:46:36 +08:00
parent ddb4abfbab
commit 962b58d33d
2 changed files with 218 additions and 218 deletions

File diff suppressed because it is too large Load Diff

View File

@ -3,21 +3,21 @@
#define GUARD_DATA_REGION_MAP_REGION_MAP_ENTRIES_H
## for map_section in map_sections
{% if isEmptyString(getVar(map_section.name)) and not existsIn(map_section, "name_clone") %}{{ setVar(map_section.name, map_section.map_section) }}{% endif %}
{% if isEmptyString(getVar(map_section.map_section)) and not existsIn(map_section, "name_clone") %}{{ setVar(map_section.map_section, map_section.map_section) }}{% endif %}
## endfor
## for map_section in map_sections
{% if getVar(map_section.name) == map_section.map_section %}
static const u8 sMapName_{{ cleanString(map_section.name) }}[] = _("{{ map_section.name }}");
{% if getVar(map_section.map_section) == map_section.map_section %}
static const u8 sMapName_{{ cleanString(map_section.map_section) }}[] = _("{{ map_section.name }}");
{% endif %}
{% if existsIn(map_section, "name_clone") %}
static const u8 sMapName_{{ cleanString(map_section.name) }}_Clone[] = _("{{ map_section.name }}");
static const u8 sMapName_{{ cleanString(map_section.map_section) }}_Clone[] = _("{{ map_section.name }}");
{% endif %}
## endfor
const struct RegionMapLocation gRegionMapEntries[] = {
## for map_section in map_sections
[{{ map_section.map_section }}] = { {{ 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 %} },
[{{ map_section.map_section }}] = { {{ map_section.x }}, {{ map_section.y }}, {{ map_section.width }}, {{ map_section.height }}, sMapName_{{ cleanString(map_section.map_section) }}{% if existsIn(map_section, "name_clone") %}_Clone{% endif %} },
## endfor
};