1
0
mirror of synced 2024-09-24 03:18:27 +02: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];
if (stageData.IsSkipUse)
{
await UpdatePlayData(request, songNumber, stageData, lastPlayDatetime);
continue;
}
if (playMode == PlayMode.AiBattle)
{
await UpdateAiBattleData(request, stageData);
@ -307,8 +313,7 @@ public class PlayResultController : BaseController<PlayResultController>
await songBestDatumService.UpdateOrInsertSongBestDatum(bestDatum);
}
// TODO: AI battle
private async Task UpdateAiBattleData(PlayResultRequest request, StageData stageData)
{
var difficulty = (Difficulty)stageData.Level;