playroom小游戏翻牌优化
This commit is contained in:
parent
e69ec1d786
commit
511a69454d
@ -3419,9 +3419,9 @@ func ReqPlayroomInfo(player *Player, buf []byte) error {
|
||||
needStar := DecorateMod.GetAreaCost()
|
||||
highReward := int(float64(needStar) * 0.75)
|
||||
if highReward < PlayerData.Star {
|
||||
PlayroomMod.SetGameRewardFlip(max(int(float64(needStar)*0.1), 10), max(int(float64(needStar)*0.3), 10), max(int(float64(needStar)*0.75), 10))
|
||||
PlayroomMod.SetGameRewardFlip(max(int(float64(needStar)*0.1), 10), max(int(float64(needStar)*0.3), 50), max(int(float64(needStar)*0.75), 100))
|
||||
} else {
|
||||
PlayroomMod.SetGameRewardFlip(max(10, int(float64(PlayerData.Star)*0.1)), max(10, int(float64(PlayerData.Star)*0.5)), max(PlayerData.Star, 10))
|
||||
PlayroomMod.SetGameRewardFlip(max(10, int(float64(PlayerData.Star)*0.1)), max(50, int(float64(PlayerData.Star)*0.5)), max(PlayerData.Star, 100))
|
||||
}
|
||||
}
|
||||
player.PlayMod.save()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user