竞技馆

This commit is contained in:
sk 2024-09-02 14:55:18 +08:00
parent 04a0772415
commit 26db8f4b21
2 changed files with 7 additions and 4 deletions

View File

@ -29,6 +29,7 @@ const (
TIenLenTianhuTimeout = time.Second * 2 // 天胡动画时长 TIenLenTianhuTimeout = time.Second * 2 // 天胡动画时长
TienLenHandNotExceedTimeLimit = time.Second * 3 //玩家没有牌可以接上家的牌,出牌时间上限 TienLenHandNotExceedTimeLimit = time.Second * 3 //玩家没有牌可以接上家的牌,出牌时间上限
TienLenHandAutoStateTimeOut = time.Second * 1 //玩家托管出牌时间上限 TienLenHandAutoStateTimeOut = time.Second * 1 //玩家托管出牌时间上限
TienLenCustomWaiteStatTimeout = time.Millisecond * 1500
) )
// 场景状态 // 场景状态

View File

@ -914,10 +914,12 @@ func (this *SceneWaitStartStateTienLen) OnTick(s *base.Scene) {
} }
} }
if sceneEx.IsCustom() { if sceneEx.IsCustom() {
if sceneEx.CanStart() { if time.Now().Sub(sceneEx.StateStartTime) > rule.TienLenCustomWaiteStatTimeout {
s.ChangeSceneState(rule.TienLenSceneStateHandCard) if sceneEx.CanStart() {
} else { s.ChangeSceneState(rule.TienLenSceneStateHandCard)
s.ChangeSceneState(rule.TienLenSceneStateWaitPlayer) } else {
s.ChangeSceneState(rule.TienLenSceneStateWaitPlayer)
}
} }
} }
} }