Skip MUS_DAN02 for pokefirered
This commit is contained in:
parent
3eca227d07
commit
eb44201f5b
2 changed files with 8 additions and 2 deletions
|
@ -403,20 +403,22 @@ QString Project::readMapLocation(QString map_name) {
|
|||
}
|
||||
|
||||
void Project::setNewMapHeader(Map* map, int mapIndex) {
|
||||
map->song = "MUS_DAN02";
|
||||
map->layoutId = QString("%1").arg(mapIndex);
|
||||
map->location = "MAPSEC_LITTLEROOT_TOWN";
|
||||
map->requiresFlash = "FALSE";
|
||||
map->weather = "WEATHER_SUNNY";
|
||||
map->type = "MAP_TYPE_TOWN";
|
||||
if (projectConfig.getBaseGameVersion() == BaseGameVersion::pokeruby) {
|
||||
map->song = "MUS_DAN02";
|
||||
map->show_location = "TRUE";
|
||||
} else if (projectConfig.getBaseGameVersion() == BaseGameVersion::pokeemerald) {
|
||||
map->song = "MUS_DAN02";
|
||||
map->allowBiking = "1";
|
||||
map->allowEscapeRope = "0";
|
||||
map->allowRunning = "1";
|
||||
map->show_location = "1";
|
||||
} else if (projectConfig.getBaseGameVersion() == BaseGameVersion::pokefirered) {
|
||||
map->song = "MUS_MASARA";
|
||||
map->allowBiking = "1";
|
||||
map->allowEscapeRope = "0";
|
||||
map->allowRunning = "1";
|
||||
|
|
|
@ -135,7 +135,11 @@ void NewMapPopup::on_pushButton_NewMap_Accept_clicked() {
|
|||
newMap->name = newMapName;
|
||||
newMap->type = this->ui->comboBox_NewMap_Type->currentText();
|
||||
newMap->location = this->ui->comboBox_NewMap_Location->currentText();
|
||||
if (projectConfig.getBaseGameVersion() == BaseGameVersion::pokefirered) {
|
||||
newMap->song = "MUS_MASARA";
|
||||
} else {
|
||||
newMap->song = "MUS_DAN02";
|
||||
}
|
||||
newMap->requiresFlash = "0";
|
||||
newMap->weather = "WEATHER_SUNNY";
|
||||
newMap->show_location = "1";
|
||||
|
|
Loading…
Reference in a new issue