修改猫咪宝藏数值为四舍五入
This commit is contained in:
parent
34099258a7
commit
7a04463517
@ -3498,7 +3498,7 @@ func ReqPlayroomInfo(player *Player, buf []byte) error {
|
||||
PlayroomMod.SetGameId(playroom.GAME_TYPE_FILP)
|
||||
addNumFunc := func(num int) int {
|
||||
factor := player.GetOrderFactor()
|
||||
return int(float64(num)*float64(factor)/100) / 100 * 100
|
||||
return int(math.Round(float64(num)*float64(factor)/100)) / 100 * 100
|
||||
}
|
||||
PlayroomMod.SetGameRewardFlip(addNumFunc(100), addNumFunc(500), addNumFunc(2000))
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user