【娃娃机抓取概率公式】

https://www.tapd.cn/31044302/prong/stories/view/1131044302001001302
This commit is contained in:
DESKTOP-45ANQ2C\unis 2024-10-18 17:43:32 +08:00
parent e476a7e74b
commit 43a04acdff
3 changed files with 10 additions and 1 deletions

View File

@ -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
}

View File

@ -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)
}

View File

@ -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()
}
}