1
0
mirror of synced 2024-11-23 22:41:01 +01:00

Send VerUpNo1s dynamically

This commit is contained in:
S-Sebb?? 2023-09-27 10:16:52 +01:00
parent ff1baca330
commit f48863150d
2 changed files with 19 additions and 5 deletions

View File

@ -36,9 +36,8 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
FlagCalculator.GetBitArrayFromIds(defaultSongList, songIdMax, Logger); FlagCalculator.GetBitArrayFromIds(defaultSongList, songIdMax, Logger);
var defaultSongWithUraList = gameDataService.GetMusicWithUraList(); var defaultSongWithUraList = gameDataService.GetMusicWithUraList();
var enabledUraMusicList = defaultSongWithUraList.Except(lockedSongsList);
var uraReleaseBit = var uraReleaseBit =
FlagCalculator.GetBitArrayFromIds(enabledUraMusicList, songIdMax, Logger); FlagCalculator.GetBitArrayFromIds(defaultSongWithUraList, songIdMax, Logger);
var response = new InitialdatacheckResponse var response = new InitialdatacheckResponse
{ {
@ -62,12 +61,13 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
response.AryVerupNoData1s.AddRange(aryVerUp); response.AryVerupNoData1s.AddRange(aryVerUp);
var danData = new List<InitialdatacheckResponse.VerupNoData2.InformationData>(); var danData = new List<InitialdatacheckResponse.VerupNoData2.InformationData>();
for (var danId = Constants.MIN_DAN_ID; danId <= Constants.MAX_DAN_ID; danId++) var danDataDictionary = gameDataService.GetDanDataDictionary();
foreach (var danId in danDataDictionary.Keys)
{ {
gameDataService.GetDanDataDictionary().TryGetValue((uint)danId, out var odaiData); gameDataService.GetDanDataDictionary().TryGetValue(danId, out var odaiData);
danData.Add(new InitialdatacheckResponse.VerupNoData2.InformationData danData.Add(new InitialdatacheckResponse.VerupNoData2.InformationData
{ {
InfoId = (uint)danId, InfoId = danId,
VerupNo = odaiData?.VerupNo ?? 1 VerupNo = odaiData?.VerupNo ?? 1
}); });
} }

View File

@ -79,10 +79,24 @@ public class PlayResultController : BaseController<PlayResultController>
var bestData = await songBestDatumService.GetAllSongBestData(request.BaidConf); var bestData = await songBestDatumService.GetAllSongBestData(request.BaidConf);
// gameDataService.GetFolderDictionary().TryGetValue(9, out var folder9Data);
// var folder9Songs = new List<uint>();
//
// if (folder9Data is not null)
// {
// folder9Songs.AddRange(folder9Data.SongNoes);
// }
for (var songNumber = 0; songNumber < playResultData.AryStageInfoes.Count; songNumber++) for (var songNumber = 0; songNumber < playResultData.AryStageInfoes.Count; songNumber++)
{ {
var stageData = playResultData.AryStageInfoes[songNumber]; var stageData = playResultData.AryStageInfoes[songNumber];
// if (folder9Songs.Contains(stageData.SongNo))
// {
// continue;
// }
if (stageData.IsSkipUse) if (stageData.IsSkipUse)
{ {
await UpdatePlayData(request, songNumber, stageData, lastPlayDatetime); await UpdatePlayData(request, songNumber, stageData, lastPlayDatetime);