Skip update best scores in normal and ai mode when skip is used
This commit is contained in:
parent
5af120e185
commit
8614eab740
@ -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);
|
||||||
@ -307,8 +313,7 @@ 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;
|
||||||
|
Loading…
Reference in New Issue
Block a user