1
0
mirror of synced 2024-11-13 18:10:52 +01:00

Skip update best scores in normal and ai mode when skip is used

This commit is contained in:
asesidaa 2022-10-03 15:03:26 +08:00
parent 5af120e185
commit 8614eab740

View File

@ -77,6 +77,12 @@ public class PlayResultController : BaseController<PlayResultController>
{ {
var stageData = playResultData.AryStageInfoes[songNumber]; var stageData = playResultData.AryStageInfoes[songNumber];
if (stageData.IsSkipUse)
{
await UpdatePlayData(request, songNumber, stageData, lastPlayDatetime);
continue;
}
if (playMode == PlayMode.AiBattle) if (playMode == PlayMode.AiBattle)
{ {
await UpdateAiBattleData(request, stageData); await UpdateAiBattleData(request, stageData);
@ -308,7 +314,6 @@ public class PlayResultController : BaseController<PlayResultController>
await songBestDatumService.UpdateOrInsertSongBestDatum(bestDatum); await songBestDatumService.UpdateOrInsertSongBestDatum(bestDatum);
} }
// TODO: AI battle
private async Task UpdateAiBattleData(PlayResultRequest request, StageData stageData) private async Task UpdateAiBattleData(PlayResultRequest request, StageData stageData)
{ {
var difficulty = (Difficulty)stageData.Level; var difficulty = (Difficulty)stageData.Level;