Up ai rank every 10 wins
This commit is contained in:
parent
a04f1bf285
commit
20b0765598
@ -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])
|
||||||
|
Loading…
Reference in New Issue
Block a user