forked from OpenWF/SpaceNinjaServer
remove maxRotations from repsonse
This commit is contained in:
parent
9ca07984b2
commit
cf4e32110c
@ -1570,8 +1570,10 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
||||
if (config.worldState) {
|
||||
for (const [key, alert] of Object.entries(configAlerts)) {
|
||||
if (config.worldState[key as keyof typeof config.worldState]) {
|
||||
if (alert.MissionInfo.missionType == "MT_DEFENSE")
|
||||
if (alert.MissionInfo.missionType == "MT_DEFENSE") {
|
||||
alert.MissionInfo.maxWaveNum = defenseWavesPerRotation * (alert.MissionInfo.maxRotations ?? 1);
|
||||
alert.MissionInfo.maxRotations = undefined;
|
||||
}
|
||||
worldState.Alerts.push(alert);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user