Compare commits
No commits in common. "a842987444f38e64432d19ebe19ac51820a2e902" and "368cb707325c301521a6fb37b26ab5bc49167343" have entirely different histories.
a842987444
...
368cb70732
|
@ -18,7 +18,6 @@ type PlayerEx struct {
|
||||||
IsWin bool // 是否抓到娃娃
|
IsWin bool // 是否抓到娃娃
|
||||||
gainCoin int64 // 本局赢的金币
|
gainCoin int64 // 本局赢的金币
|
||||||
taxCoin int64 //本局税收
|
taxCoin int64 //本局税收
|
||||||
lastIsWin bool // 上一局是否抓到娃娃
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *PlayerEx) Clear(baseScore int32) {
|
func (this *PlayerEx) Clear(baseScore int32) {
|
||||||
|
@ -28,7 +27,6 @@ func (this *PlayerEx) Clear(baseScore int32) {
|
||||||
|
|
||||||
this.gainCoin = 0
|
this.gainCoin = 0
|
||||||
this.IsWin = false
|
this.IsWin = false
|
||||||
this.lastIsWin = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *PlayerEx) CanOp(sceneEx *SceneEx) bool {
|
func (this *PlayerEx) CanOp(sceneEx *SceneEx) bool {
|
||||||
|
@ -235,7 +233,7 @@ func (this *PlayerEx) SendPlayerGameBilled(RoundId int32) {
|
||||||
if this != nil {
|
if this != nil {
|
||||||
|
|
||||||
result := 0
|
result := 0
|
||||||
if this.lastIsWin {
|
if this.IsWin {
|
||||||
result = 1
|
result = 1
|
||||||
}
|
}
|
||||||
pack := &clawdoll.SCCLAWDOLLRoundGameBilled{
|
pack := &clawdoll.SCCLAWDOLLRoundGameBilled{
|
||||||
|
|
|
@ -804,7 +804,6 @@ func (this *StateBilled) OnEnter(s *base.Scene) {
|
||||||
sceneEx.SaveGamePlayerListLog(playerEx.SnId, logParam)
|
sceneEx.SaveGamePlayerListLog(playerEx.SnId, logParam)
|
||||||
}
|
}
|
||||||
|
|
||||||
playerEx.lastIsWin = playerEx.IsWin
|
|
||||||
playerEx.ReStartGame()
|
playerEx.ReStartGame()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -934,8 +933,6 @@ func (this *StateWaitPayCoin) OnEnter(s *base.Scene) {
|
||||||
playingEx := sceneEx.GetPlayingEx()
|
playingEx := sceneEx.GetPlayingEx()
|
||||||
if playingEx != nil {
|
if playingEx != nil {
|
||||||
playingEx.SendPlayerGameBilled(int32(sceneEx.RoundId))
|
playingEx.SendPlayerGameBilled(int32(sceneEx.RoundId))
|
||||||
|
|
||||||
playingEx.lastIsWin = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue