Added the freshly recreated Horde zone (Season 5)

This commit is contained in:
PRO100KatYT
2022-03-05 12:59:10 +01:00
parent b07a7903d6
commit 949d0a6b5f
2 changed files with 1832 additions and 1 deletions

File diff suppressed because it is too large Load Diff

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;
}