mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 10:52:23 +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);
|
GetVersionInfo(req, memory);
|
||||||
|
|
||||||
var theater = JSON.stringify(require("./../responses/worldstw.json"));
|
var theater = JSON.stringify(require("./../responses/worldstw.json"));
|
||||||
|
var Season = "Season" + memory.season;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (memory.build >= 15.30) {
|
if (memory.build >= 15.30) {
|
||||||
@@ -164,6 +165,15 @@ function getTheater(req) {
|
|||||||
|
|
||||||
theater = JSON.parse(theater)
|
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;
|
return theater;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user