【娃娃机抓取概率公式】
https://www.tapd.cn/31044302/prong/stories/view/1131044302001001302
This commit is contained in:
parent
e476a7e74b
commit
43a04acdff
|
@ -117,6 +117,8 @@ func (this *PlayerEx) CostPlayCoin() bool {
|
|||
GameFreeId: int64(sceneEx.GetGameFreeId()),
|
||||
})
|
||||
|
||||
sceneEx.PayCoinCount++
|
||||
|
||||
logger.Logger.Tracef("Clawdoll (*PlayerEx) CostPlayCoin, items = %v", items)
|
||||
return true
|
||||
}
|
||||
|
|
|
@ -428,6 +428,10 @@ func (this *SceneEx) TimeOutPlayGrab() bool {
|
|||
playerEx := this.players[this.playingSnid]
|
||||
if playerEx != nil {
|
||||
grapType := this.GetPlayGrabType(playerEx)
|
||||
if grapType == rule.ClawStrong {
|
||||
this.PayCoinCount = 0
|
||||
}
|
||||
|
||||
this.OnPlayerSMGrabOp(this.playingSnid, int32(this.machineId), grapType)
|
||||
|
||||
}
|
||||
|
|
|
@ -684,6 +684,9 @@ func (this *PlayGame) OnPlayerOp(s *base.Scene, p *base.Player, opcode int, para
|
|||
}
|
||||
|
||||
grapType := sceneEx.GetPlayGrabType(playerEx)
|
||||
if grapType == rule.ClawStrong {
|
||||
sceneEx.PayCoinCount = 0
|
||||
}
|
||||
|
||||
logger.Logger.Trace("ClawDoll StatePlayGame OnPlayerOp Grab-----SnId:", p.SnId, " grapType: ", grapType)
|
||||
//1-弱力抓 2 -强力抓
|
||||
|
@ -840,7 +843,7 @@ func (this *StateBilled) OnEnter(s *base.Scene) {
|
|||
}
|
||||
|
||||
playerEx.lastIsWin = playerEx.IsWin
|
||||
sceneEx.PayCoinCount++
|
||||
|
||||
playerEx.ReStartGame()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue