From 1042cdfb15dac1ba413ef9bbb7f3c8eafabec1fa Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 30 Jan 2024 15:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E6=B6=88=E4=B8=80=E6=AC=A1=E6=B6=88?= =?UTF-8?q?=E9=99=A44=E4=B8=AA=E4=BB=A5=E4=B8=8A+1=E4=BD=93=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/entertainment/xxlPlat.go | 5 ++++- modules/plunder/api_refresh.go | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/entertainment/xxlPlat.go b/modules/entertainment/xxlPlat.go index 087346977..9fed98888 100644 --- a/modules/entertainment/xxlPlat.go +++ b/modules/entertainment/xxlPlat.go @@ -464,7 +464,7 @@ func (this *MapData) Check3X() (bEliminate bool, xiaochu []int) { // 校验地图可消除的 判断各组上面2个和右边两个是否三个相等 // xc 判断用来是否加体力 -func (this *MapData) CheckMap(color int32, bSkill bool) (szMap []*pb.MapData, xc bool) { +func (this *MapData) CheckMap(color int32, bSkill bool) (szMap []*pb.MapData, bAddPs bool) { var ( tXiaochu map[int]struct{} curScore int32 @@ -487,6 +487,9 @@ func (this *MapData) CheckMap(color int32, bSkill bool) (szMap []*pb.MapData, xc new[k] = v } for _, v := range xc { + if len(v) >= 4 { + bAddPs = true + } for _, v1 := range v { tXiaochu[v1] = struct{}{} } diff --git a/modules/plunder/api_refresh.go b/modules/plunder/api_refresh.go index 3f449c1d3..5fd64d27c 100644 --- a/modules/plunder/api_refresh.go +++ b/modules/plunder/api_refresh.go @@ -38,7 +38,7 @@ func (this *apiComp) Refresh(session comm.IUserSession, req *pb.PlunderRefreshRe } } } - if list.Freecount > freeCount { + if list.Freecount >= freeCount { if errdata = this.module.ConsumeRes(session, []*cfg.Gameatn{this.module.ModuleTools.GetGlobalConf().PlunderPvpRemake}, true); errdata != nil { return }