发牌调控还原 使用之前的发牌模式

This commit is contained in:
by 2024-10-17 17:33:30 +08:00
parent ce1e3d4474
commit 9196e235d8
2 changed files with 5 additions and 10 deletions

View File

@ -561,8 +561,7 @@ func (this *TienLenSceneData) GetFreeGameSceneType() int32 {
// 比赛场发牌 // 比赛场发牌
// 纯真人,随机发牌 // 纯真人,随机发牌
// 有机器人和真人,真人拿好牌 // 有机器人和真人,真人拿好牌
// mustRandom 必须随机发牌 func (this *TienLenSceneData) SendHandCard_Match() {
func (this *TienLenSceneData) SendHandCard_Match(mustRandom bool) {
this.poker.Shuffle() this.poker.Shuffle()
buf := this.poker.GetPokerBuf() buf := this.poker.GetPokerBuf()
cardss := map[int][]int32{} cardss := map[int][]int32{}
@ -584,7 +583,7 @@ func (this *TienLenSceneData) SendHandCard_Match(mustRandom bool) {
} }
} }
} }
if !mustRandom && len(realPlayers) > 0 && len(robotPlayers) > 0 { if len(realPlayers) > 0 && len(robotPlayers) > 0 {
type gradeInfo struct { type gradeInfo struct {
id int id int
grade int grade int

View File

@ -994,14 +994,10 @@ func (this *SceneHandCardStateTienLen) OnEnter(s *base.Scene) {
if len(sceneEx.testPokers) > 1 { if len(sceneEx.testPokers) > 1 {
sceneEx.SendHandCardOdds() sceneEx.SendHandCardOdds()
} else { } else {
if sceneEx.WGCreateScene.GetCloseCtrl() { if sceneEx.IsMatchScene() || sceneEx.IsCustom() {
sceneEx.SendHandCard_Match(true) sceneEx.SendHandCard_Match()
} else { } else {
if sceneEx.IsMatchScene() || sceneEx.IsCustom() { sceneEx.SendHandCardOdds()
sceneEx.SendHandCard_Match(false)
} else {
sceneEx.SendHandCardOdds()
}
} }
} }
} }