Merge pull request #69 from PRO100KatYT/main

nice
This commit is contained in:
Lawin0129
2022-03-12 15:23:37 +00:00
committed by GitHub
5 changed files with 16943 additions and 14 deletions

View File

@@ -134,6 +134,7 @@ function getTheater(req) {
GetVersionInfo(req, memory);
var theater = JSON.stringify(require("./../responses/worldstw.json"));
var Season = "Season" + memory.season;
try {
if (memory.build >= 15.30) {
@@ -164,6 +165,15 @@ function getTheater(req) {
theater = JSON.parse(theater)
if (theater.hasOwnProperty("Seasonal")) {
if (theater.Seasonal.hasOwnProperty(Season)) {
theater.theaters = theater.theaters.concat(theater.Seasonal[Season].theaters);
theater.missions = theater.missions.concat(theater.Seasonal[Season].missions);
theater.missionAlerts = theater.missionAlerts.concat(theater.Seasonal[Season].missionAlerts);
}
delete theater.Seasonal;
}
return theater;
}