This commit is contained in:
aozhiwei 2024-10-16 10:21:52 +08:00
parent c7509063d1
commit 8feb0e1050
2 changed files with 6 additions and 2 deletions

View File

@ -41,3 +41,7 @@ const (
HISTORY_MGR_MODULE_IDX
MAX_MODULE_IDX
)
const (
LUCKY_SYMBOL_ITEM_ID = 900007
)

View File

@ -6,6 +6,7 @@ import (
"f5"
"github.com/golang/protobuf/proto"
"main/common"
"main/constant"
. "main/global"
"fmt"
"encoding/json"
@ -73,14 +74,13 @@ func (this *player) parseUserInfo(userInfo *common.UserInfo){
index := 0
for _, val := range this.battleItems {
index++
if val.ItemId == 900007 {
if val.ItemId == constant.LUCKY_SYMBOL_ITEM_ID {
found = true
break
}
}
if this.hasLuckySymbol != 0 {
if !found {
}
} else {
if found {