From 29e3061fc769708481a0c3df46fc18381aad5792 Mon Sep 17 00:00:00 2001 From: hahwu <31872165+hahwu@users.noreply.github.com> Date: Wed, 19 Mar 2025 17:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A0=E7=89=A9=E5=AE=9D=E8=97=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/game/mod/friendTreasure.go/friendTreasure.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/server/game/mod/friendTreasure.go/friendTreasure.go b/src/server/game/mod/friendTreasure.go/friendTreasure.go index d4d2de94..21cfd5ce 100644 --- a/src/server/game/mod/friendTreasure.go/friendTreasure.go +++ b/src/server/game/mod/friendTreasure.go/friendTreasure.go @@ -60,15 +60,15 @@ func (f *FriendTreasureMod) Flip(Pos int) ([]*item.Item, error) { } f.Shift++ Info := f.List[Pos] + if Info.Uid != 0 { + f.Uids = append(f.Uids, Info.Uid) + } if Info.Type == FRIEND_TYPE_ALIVE { ProbMap := friendTreasureCfg.GetChestProb() Prob := GoUtil.RandMap(ProbMap) Info.Status = GAME_STATUS_START return friendTreasureCfg.GetChestItems(Prob), nil } - if Info.Uid != 0 { - f.Uids = append(f.Uids, Info.Uid) - } Info.Status = GAME_STATUS_START return nil, nil }