竞技馆

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,6 +914,7 @@ func (this *SceneWaitStartStateTienLen) OnTick(s *base.Scene) {
} }
} }
if sceneEx.IsCustom() { if sceneEx.IsCustom() {
if time.Now().Sub(sceneEx.StateStartTime) > rule.TienLenCustomWaiteStatTimeout {
if sceneEx.CanStart() { if sceneEx.CanStart() {
s.ChangeSceneState(rule.TienLenSceneStateHandCard) s.ChangeSceneState(rule.TienLenSceneStateHandCard)
} else { } else {
@ -922,6 +923,7 @@ func (this *SceneWaitStartStateTienLen) OnTick(s *base.Scene) {
} }
} }
} }
}
// ///////////////////////////////////////////////////////////////////////////////////////////////////////////// // /////////////////////////////////////////////////////////////////////////////////////////////////////////////
// TienLenSceneStateHandCard 发牌 // TienLenSceneStateHandCard 发牌