1
0
mirror of synced 2024-11-12 01:20:51 +01:00

Up ai rank every 10 wins

This commit is contained in:
asesidaa 2022-09-22 00:55:00 +08:00
parent a04f1bf285
commit 20b0765598

View File

@ -113,7 +113,12 @@ public class BaidController : BaseController<BaidController>
var genericInfoFlgLength = genericInfoFlg.Any()? genericInfoFlg.Max() + 1 : 0; var genericInfoFlgLength = genericInfoFlg.Any()? genericInfoFlg.Max() + 1 : 0;
var genericInfoFlgArray = FlagCalculator.GetBitArrayFromIds(genericInfoFlg, (int)genericInfoFlgLength, Logger); var genericInfoFlgArray = FlagCalculator.GetBitArrayFromIds(genericInfoFlg, (int)genericInfoFlgLength, Logger);
var aiRank = (uint)(userData.AiWinCount / 10);
if (aiRank > 11)
{
aiRank = 11;
}
response = new BAIDResponse response = new BAIDResponse
{ {
Result = 1, Result = 1,
@ -160,7 +165,7 @@ public class BaidController : BaseController<BaidController>
IsDispAchievementTypeSet = true, IsDispAchievementTypeSet = true,
LastPlayMode = userData.LastPlayMode, LastPlayMode = userData.LastPlayMode,
IsDispSouuchiOn = true, IsDispSouuchiOn = true,
AiRank = 1, AiRank = aiRank,
AiTotalWin = (uint)userData.AiWinCount, AiTotalWin = (uint)userData.AiWinCount,
Accesstoken = "123456", Accesstoken = "123456",
ContentInfo = GZipBytesUtil.GetGZipBytes(new byte[10]) ContentInfo = GZipBytesUtil.GetGZipBytes(new byte[10])