1
This commit is contained in:
parent
c7509063d1
commit
8feb0e1050
@ -41,3 +41,7 @@ const (
|
||||
HISTORY_MGR_MODULE_IDX
|
||||
MAX_MODULE_IDX
|
||||
)
|
||||
|
||||
const (
|
||||
LUCKY_SYMBOL_ITEM_ID = 900007
|
||||
)
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user