Fix issue where OriginalSurvivalTimeSeconds
would be set to the raid time in minutes, not the survival time in seconds
This commit is contained in:
parent
3945de8b1f
commit
5d0d9e2cd9
@ -575,7 +575,7 @@ export class GameController
|
|||||||
RaidTimeMinutes: baseEscapeTimeMinutes,
|
RaidTimeMinutes: baseEscapeTimeMinutes,
|
||||||
ExitChanges: [],
|
ExitChanges: [],
|
||||||
NewSurviveTimeSeconds: null,
|
NewSurviveTimeSeconds: null,
|
||||||
OriginalSurvivalTimeSeconds: baseEscapeTimeMinutes
|
OriginalSurvivalTimeSeconds: db.globals.config.exp.match_end.survived_seconds_requirement
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pmc raid, send default
|
// Pmc raid, send default
|
||||||
@ -622,11 +622,8 @@ export class GameController
|
|||||||
|
|
||||||
this.logger.debug(`Reduced: ${request.Location} raid time by: ${chosenRaidReductionPercent}% to ${newRaidTimeMinutes} minutes`)
|
this.logger.debug(`Reduced: ${request.Location} raid time by: ${chosenRaidReductionPercent}% to ${newRaidTimeMinutes} minutes`)
|
||||||
|
|
||||||
const originalSurvivalTimeSeconds = db.globals.config.exp.match_end.survived_seconds_requirement;
|
|
||||||
result.OriginalSurvivalTimeSeconds = originalSurvivalTimeSeconds;
|
|
||||||
|
|
||||||
// Calculate how long player needs to be in raid to get a `survived` extract status
|
// Calculate how long player needs to be in raid to get a `survived` extract status
|
||||||
result.NewSurviveTimeSeconds = Math.max(originalSurvivalTimeSeconds - ((baseEscapeTimeMinutes - newRaidTimeMinutes) * 60), 0);
|
result.NewSurviveTimeSeconds = Math.max(result.OriginalSurvivalTimeSeconds - ((baseEscapeTimeMinutes - newRaidTimeMinutes) * 60), 0);
|
||||||
|
|
||||||
const exitAdjustments = this.getExitAdjustments(mapBase, newRaidTimeMinutes);
|
const exitAdjustments = this.getExitAdjustments(mapBase, newRaidTimeMinutes);
|
||||||
if (exitAdjustments)
|
if (exitAdjustments)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user