mirror of
https://github.com/rh-hideout/pokeemerald-expansion.git
synced 2026-04-26 02:14:22 -05:00
Change mapjson to default write_specialvar_iseffect to false
This commit is contained in:
parent
d36dccd9c4
commit
f1ae1809c0
|
|
@ -171,12 +171,17 @@ string generate_map_header_text(Json map_data, Json layouts_data) {
|
|||
if (version == "ruby")
|
||||
text << "\t.byte " << json_to_string(map_data, "show_map_name") << "\n";
|
||||
else if (version == "emerald" || version == "firered")
|
||||
{
|
||||
text << "\tmap_header_flags "
|
||||
<< "allow_cycling=" << json_to_string(map_data, "allow_cycling") << ", "
|
||||
<< "allow_escaping=" << json_to_string(map_data, "allow_escaping") << ", "
|
||||
<< "allow_running=" << json_to_string(map_data, "allow_running") << ", "
|
||||
<< "show_map_name=" << json_to_string(map_data, "show_map_name") << ", "
|
||||
<< "write_specialvar_iseffect=" << json_to_string(map_data, "write_specialvar_iseffect") << "\n";
|
||||
<< "show_map_name=" << json_to_string(map_data, "show_map_name") << ", ";
|
||||
if (map_data.object_items().find("write_specialvar_iseffect") != map_data.object_items().end())
|
||||
text << "write_specialvar_iseffect=" << json_to_string(map_data, "write_specialvar_iseffect") << "\n";
|
||||
else
|
||||
text << "write_specialvar_iseffect=FALSE" << "\n";
|
||||
}
|
||||
|
||||
if (version == "firered")
|
||||
text << "\t.byte " << json_to_string(map_data, "floor_number") << "\n";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user