mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 02:42:22 +01:00
Added the freshly recreated Horde zone (Season 5)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user