1
This commit is contained in:
parent
c7509063d1
commit
8feb0e1050
@ -41,3 +41,7 @@ const (
|
|||||||
HISTORY_MGR_MODULE_IDX
|
HISTORY_MGR_MODULE_IDX
|
||||||
MAX_MODULE_IDX
|
MAX_MODULE_IDX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
const (
|
||||||
|
LUCKY_SYMBOL_ITEM_ID = 900007
|
||||||
|
)
|
||||||
|
@ -6,6 +6,7 @@ import (
|
|||||||
"f5"
|
"f5"
|
||||||
"github.com/golang/protobuf/proto"
|
"github.com/golang/protobuf/proto"
|
||||||
"main/common"
|
"main/common"
|
||||||
|
"main/constant"
|
||||||
. "main/global"
|
. "main/global"
|
||||||
"fmt"
|
"fmt"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
@ -73,14 +74,13 @@ func (this *player) parseUserInfo(userInfo *common.UserInfo){
|
|||||||
index := 0
|
index := 0
|
||||||
for _, val := range this.battleItems {
|
for _, val := range this.battleItems {
|
||||||
index++
|
index++
|
||||||
if val.ItemId == 900007 {
|
if val.ItemId == constant.LUCKY_SYMBOL_ITEM_ID {
|
||||||
found = true
|
found = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if this.hasLuckySymbol != 0 {
|
if this.hasLuckySymbol != 0 {
|
||||||
if !found {
|
if !found {
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if found {
|
if found {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user