From 053484de8e0175d3592ffc15f3575ea95b4aec70 Mon Sep 17 00:00:00 2001 From: sk <123456@qq.com> Date: Sat, 23 Nov 2024 11:25:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=81=E4=B8=89=E5=BC=A0=E6=AF=94=E7=89=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gamesrv/thirteen/scenepolicy.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/gamesrv/thirteen/scenepolicy.go b/gamesrv/thirteen/scenepolicy.go index e8ac247..4b645c7 100644 --- a/gamesrv/thirteen/scenepolicy.go +++ b/gamesrv/thirteen/scenepolicy.go @@ -1146,14 +1146,18 @@ func (this *StateShow) OnEnter(s *base.Scene) { } } } - if n == 2 && sceneEx.specialTypeNum > 0 { + + normalNum := n - sceneEx.specialTypeNum + + if normalNum > 1 { + sceneEx.specialTime += time.Second * time.Duration(5) + } + if sceneEx.specialTypeNum > 0 { if has { sceneEx.specialTime += time.Millisecond * 5500 } else { sceneEx.specialTime += time.Millisecond * 4500 } - } else { - sceneEx.specialTime = time.Second * time.Duration(5) } logger.Logger.Tracef("show cards: %v %v", n, sceneEx.specialTime)