limt coin
This commit is contained in:
parent
90fa5e63a9
commit
4ed1048131
|
|
@ -380,7 +380,7 @@ func (this *SceneStateStartFortuneDragon) OnPlayerOp(s *base.Scene, p *base.Play
|
|||
playerEx.BetLineIndex = params[2]
|
||||
needCoin := sceneEx.BetConfig.BetSize[params[0]] * float64(sceneEx.BetConfig.BetLevel[params[1]]) *
|
||||
float64(sceneEx.BetConfig.BetLines[params[2]])
|
||||
if needCoin < float64(playerEx.Coin) {
|
||||
if needCoin/10000 > float64(playerEx.Coin) {
|
||||
pack := &protocol.SCFortuneDragonBilled{
|
||||
OpRetCode: proto.Int32(1),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -379,7 +379,7 @@ func (this *SceneStateStartFortuneRabbit) OnPlayerOp(s *base.Scene, p *base.Play
|
|||
//playerEx.BetMode = params[3]
|
||||
needCoin := sceneEx.BetConfig.BetSize[params[0]] * float64(sceneEx.BetConfig.BetLevel[params[1]]) *
|
||||
float64(sceneEx.BetConfig.BetLines[params[2]])
|
||||
if needCoin < float64(playerEx.Coin) {
|
||||
if needCoin/10000 > float64(playerEx.Coin) {
|
||||
pack := &protocol.SCFortuneRabbitBilled{
|
||||
OpRetCode: proto.Int32(1),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue