Implemented soshina and one piece collabo win count, turn on more VerUpNo1s
This commit is contained in:
parent
c7c380fa0a
commit
9714bf222b
@ -26,6 +26,8 @@ public class GetTokenCountController : BaseController<GetTokenCountController>
|
||||
var tokenDataDictionary = gameDataService.GetTokenDataDictionary();
|
||||
tokenDataDictionary.TryGetValue("shopTokenId", out var shopTokenId);
|
||||
tokenDataDictionary.TryGetValue("kaTokenId", out var kaTokenId);
|
||||
tokenDataDictionary.TryGetValue("onePieceTokenId", out var onePieceTokenId);
|
||||
tokenDataDictionary.TryGetValue("soshinaTokenId", out var soshinaTokenId);
|
||||
user.ThrowIfNull($"User with baid {request.Baid} does not exist!");
|
||||
|
||||
var tokenCountDict = new Dictionary<uint, int>();
|
||||
@ -70,6 +72,28 @@ public class GetTokenCountController : BaseController<GetTokenCountController>
|
||||
});
|
||||
}
|
||||
|
||||
if (onePieceTokenId > 0)
|
||||
{
|
||||
var castedOnePieceTokenId = (uint)onePieceTokenId;
|
||||
tokenCountDict.TryAdd(castedOnePieceTokenId, 0);
|
||||
response.AryTokenCountDatas.Add(new GetTokenCountResponse.TokenCountData
|
||||
{
|
||||
TokenCount = tokenCountDict[castedOnePieceTokenId],
|
||||
TokenId = castedOnePieceTokenId
|
||||
});
|
||||
}
|
||||
|
||||
if (soshinaTokenId > 0)
|
||||
{
|
||||
var castedSoshinaTokenId = (uint)soshinaTokenId;
|
||||
tokenCountDict.TryAdd(castedSoshinaTokenId, 0);
|
||||
response.AryTokenCountDatas.Add(new GetTokenCountResponse.TokenCountData
|
||||
{
|
||||
TokenCount = tokenCountDict[castedSoshinaTokenId],
|
||||
TokenId = castedSoshinaTokenId
|
||||
});
|
||||
}
|
||||
|
||||
user.TokenCountDict = JsonSerializer.Serialize(tokenCountDict);
|
||||
await userDatumService.UpdateUserDatum(user);
|
||||
|
||||
|
@ -31,7 +31,7 @@ public class InitialDataCheckController : BaseController<InitialDataCheckControl
|
||||
var uraReleaseBit =
|
||||
FlagCalculator.GetBitArrayFromIds(defaultSongWithUraList, songIdMax, Logger);
|
||||
|
||||
var verupNo1 = new uint[] { 2, 3, 4, 5, 6, 7, 8, 13, 104 };
|
||||
var verupNo1 = new uint[] { 2, 3, 4, 5, 6, 7, 8, 13, 15, 24, 25, 26, 27, 28, 29, 30, 31, 104 };
|
||||
var aryVerUp = verupNo1.Select(i => new InitialdatacheckResponse.VerupNoData1
|
||||
{
|
||||
MasterType = i,
|
||||
|
@ -1,4 +1,6 @@
|
||||
{
|
||||
"shopTokenId": -1,
|
||||
"kaTokenId": -1
|
||||
"kaTokenId": -1,
|
||||
"onePieceTokenId": 100100,
|
||||
"soshinaTokenId": 100200
|
||||
}
|
Loading…
Reference in New Issue
Block a user