remove maxRotations from repsonse
All checks were successful
Build / build (pull_request) Successful in 1m0s
All checks were successful
Build / build (pull_request) Successful in 1m0s
This commit is contained in:
parent
9ca07984b2
commit
cf4e32110c
@ -1570,8 +1570,10 @@ export const getWorldState = (buildLabel?: string): IWorldState => {
|
|||||||
if (config.worldState) {
|
if (config.worldState) {
|
||||||
for (const [key, alert] of Object.entries(configAlerts)) {
|
for (const [key, alert] of Object.entries(configAlerts)) {
|
||||||
if (config.worldState[key as keyof typeof config.worldState]) {
|
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.maxWaveNum = defenseWavesPerRotation * (alert.MissionInfo.maxRotations ?? 1);
|
||||||
|
alert.MissionInfo.maxRotations = undefined;
|
||||||
|
}
|
||||||
worldState.Alerts.push(alert);
|
worldState.Alerts.push(alert);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user