diff --git a/server/matchserver/constant/constant.go b/server/matchserver/constant/constant.go index 1ecc36f4..a1ab9276 100644 --- a/server/matchserver/constant/constant.go +++ b/server/matchserver/constant/constant.go @@ -41,3 +41,7 @@ const ( HISTORY_MGR_MODULE_IDX MAX_MODULE_IDX ) + +const ( + LUCKY_SYMBOL_ITEM_ID = 900007 +) diff --git a/server/matchserver/player/player.go b/server/matchserver/player/player.go index 45b69ec6..19d2c7af 100644 --- a/server/matchserver/player/player.go +++ b/server/matchserver/player/player.go @@ -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 {