Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
07d8d65fcc
@ -171,7 +171,7 @@
|
|||||||
"id": "VipLvReward",
|
"id": "VipLvReward",
|
||||||
"title": {
|
"title": {
|
||||||
"key": "mail_mail_title_9",
|
"key": "mail_mail_title_9",
|
||||||
"text": "商会等级奖励"
|
"text": "vip奖励"
|
||||||
},
|
},
|
||||||
"recipient": {
|
"recipient": {
|
||||||
"key": "mail_mail_recipient_9",
|
"key": "mail_mail_recipient_9",
|
||||||
@ -335,8 +335,8 @@
|
|||||||
"text": "这是圣桃抽卡没有领取的奖励。"
|
"text": "这是圣桃抽卡没有领取的奖励。"
|
||||||
},
|
},
|
||||||
"sender": {
|
"sender": {
|
||||||
"key": "",
|
"key": "mail_mail_sender_16",
|
||||||
"text": ""
|
"text": "系统"
|
||||||
},
|
},
|
||||||
"reword": [],
|
"reword": [],
|
||||||
"duration": 720
|
"duration": 720
|
||||||
@ -356,10 +356,31 @@
|
|||||||
"text": ""
|
"text": ""
|
||||||
},
|
},
|
||||||
"sender": {
|
"sender": {
|
||||||
|
"key": "mail_mail_sender_17",
|
||||||
|
"text": "系统"
|
||||||
|
},
|
||||||
|
"reword": [],
|
||||||
|
"duration": 720
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "CaravanLvReward",
|
||||||
|
"title": {
|
||||||
|
"key": "mail_mail_title_17",
|
||||||
|
"text": "商队等级奖励"
|
||||||
|
},
|
||||||
|
"recipient": {
|
||||||
"key": "",
|
"key": "",
|
||||||
"text": ""
|
"text": ""
|
||||||
},
|
},
|
||||||
|
"content": {
|
||||||
|
"key": "mail_mail_content_18",
|
||||||
|
"text": "商队等级奖励"
|
||||||
|
},
|
||||||
|
"sender": {
|
||||||
|
"key": "mail_mail_sender_18",
|
||||||
|
"text": "系统"
|
||||||
|
},
|
||||||
"reword": [],
|
"reword": [],
|
||||||
"duration": 0
|
"duration": 720
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -960,6 +960,7 @@ const (
|
|||||||
VipDaily string = "VipLvReward" // vip每日奖励
|
VipDaily string = "VipLvReward" // vip每日奖励
|
||||||
Welcomemail string = "Welcomemail" // 欢迎邮件
|
Welcomemail string = "Welcomemail" // 欢迎邮件
|
||||||
Venturegifts string = "Venturegifts" // 转盘活动
|
Venturegifts string = "Venturegifts" // 转盘活动
|
||||||
|
CaravanLvReward string = "CaravanLvReward" // 商队升级
|
||||||
)
|
)
|
||||||
|
|
||||||
// open funcName
|
// open funcName
|
||||||
|
@ -155,6 +155,8 @@ type (
|
|||||||
|
|
||||||
// 检查圣桃树奖励是否发放
|
// 检查圣桃树奖励是否发放
|
||||||
CheckPeachReward(session IUserSession, ctime int64)
|
CheckPeachReward(session IUserSession, ctime int64)
|
||||||
|
|
||||||
|
CreateOneHero(session IUserSession, heroCfgId string, bPush bool) (hero *pb.DBHero, atno []*pb.UserAtno, errdata *pb.ErrorData)
|
||||||
}
|
}
|
||||||
|
|
||||||
//玩家
|
//玩家
|
||||||
|
@ -54,7 +54,7 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
|
|||||||
// special 城市卖给玩家的商品
|
// special 城市卖给玩家的商品
|
||||||
// exspecial 城市想要玩家卖给他的商品库
|
// exspecial 城市想要玩家卖给他的商品库
|
||||||
if !req.IsBuy { // 卖给npc
|
if !req.IsBuy { // 卖给npc
|
||||||
var cb int32 // 成本价
|
|
||||||
for k, v := range req.Items {
|
for k, v := range req.Items {
|
||||||
// 校验背包数据够不够
|
// 校验背包数据够不够
|
||||||
caravan.Items[k].Count -= v
|
caravan.Items[k].Count -= v
|
||||||
@ -67,7 +67,7 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
|
|||||||
}
|
}
|
||||||
items := caravan.Items[k]
|
items := caravan.Items[k]
|
||||||
var price int32
|
var price int32
|
||||||
cb = items.Price // 获取成本价
|
|
||||||
price = items.Price
|
price = items.Price
|
||||||
bFound := false
|
bFound := false
|
||||||
for _, key := range cityInfo.Special {
|
for _, key := range cityInfo.Special {
|
||||||
@ -90,32 +90,31 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
|
|||||||
if !bFound {
|
if !bFound {
|
||||||
price = cityInfo.ExspecialPCT * price / 1000
|
price = cityInfo.ExspecialPCT * price / 1000
|
||||||
}
|
}
|
||||||
if price > cb { // 赚了
|
|
||||||
addScore = (price - cb) * v // 卖出收益
|
sellValue += price * v
|
||||||
if err := this.module.ModuleUser.AddUserProfit(session.GetUserId(), int64(addScore)); err != nil {
|
addScore = sellValue
|
||||||
|
}
|
||||||
|
if errdata = this.module.DispenseRes(session, []*cfg.Gameatn{{
|
||||||
|
A: "attr",
|
||||||
|
T: "merchantmoney",
|
||||||
|
N: sellValue,
|
||||||
|
}}, true); errdata != nil {
|
||||||
|
this.module.Errorf("获得虚拟币失败:%v", errdata)
|
||||||
|
}
|
||||||
|
this.module.ArrayBag(caravan)
|
||||||
|
|
||||||
|
if err := this.module.ModuleUser.AddUserProfit(session.GetUserId(), int64(sellValue)); err != nil {
|
||||||
this.module.Error("玩家Profit更新",
|
this.module.Error("玩家Profit更新",
|
||||||
log.Field{Key: "uid", Value: session.GetUserId()},
|
log.Field{Key: "uid", Value: session.GetUserId()},
|
||||||
log.Field{Key: "update", Value: update},
|
log.Field{Key: "update", Value: update},
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
|
||||||
sellValue += price * v
|
|
||||||
if errdata = this.module.DispenseRes(session, []*cfg.Gameatn{{
|
|
||||||
A: "attr",
|
|
||||||
T: "merchantmoney",
|
|
||||||
N: price * v,
|
|
||||||
}}, true); errdata != nil {
|
|
||||||
this.module.Errorf("获得虚拟币失败:%v", errdata)
|
|
||||||
}
|
|
||||||
//addScore += price * v // 卖出收益
|
|
||||||
}
|
|
||||||
this.module.ArrayBag(caravan)
|
|
||||||
// 统计 收益
|
// 统计 收益
|
||||||
var lvReward []*cfg.Gameatn
|
var lvReward []*cfg.Gameatn
|
||||||
caravan.Profit += int64(addScore)
|
caravan.Profit += int64(sellValue)
|
||||||
update["profit"] = caravan.Profit
|
|
||||||
curLv := this.module.CheckCaravavLvUp(caravan)
|
curLv := this.module.CheckCaravavLvUp(caravan)
|
||||||
|
update["profit"] = caravan.Profit
|
||||||
if curLv > caravan.Lv {
|
if curLv > caravan.Lv {
|
||||||
for i := caravan.Lv; i <= curLv-caravan.Lv; i++ {
|
for i := caravan.Lv; i <= curLv-caravan.Lv; i++ {
|
||||||
if c, err := this.module.configure.GetCaravanLv(int32(i)); err == nil {
|
if c, err := this.module.configure.GetCaravanLv(int32(i)); err == nil {
|
||||||
@ -137,15 +136,8 @@ func (this *apiComp) BuyOrSell(session comm.IUserSession, req *pb.CaravanBuyOrSe
|
|||||||
this.module.Errorf("update caravanlv error: %v", err)
|
this.module.Errorf("update caravanlv error: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(lvReward) > 0 { // 商队等级奖励
|
if len(lvReward) > 0 { // 商队等级奖励 改发邮件
|
||||||
if reward := this.module.DispenseRes(session, lvReward, true); reward != nil {
|
this.module.mail.SendRewardMailByCid(session, comm.CaravanLvReward, lvReward)
|
||||||
this.module.Errorf("lv reward dispenseRes err:%v", lvReward)
|
|
||||||
errdata = &pb.ErrorData{
|
|
||||||
Code: pb.ErrorCode_ConfigNoFound, // 道具数量不足
|
|
||||||
Title: pb.ErrorCode_ConfigNoFound.ToString(),
|
|
||||||
}
|
|
||||||
return
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 商队盈利收益奖励
|
// 商队盈利收益奖励
|
||||||
|
@ -29,7 +29,7 @@ func (this *apiComp) RankList(session comm.IUserSession, req *pb.CaravanRankList
|
|||||||
Avatar: userinfo.Avatar,
|
Avatar: userinfo.Avatar,
|
||||||
Rank: rankid, // rankid为0 表示未上榜
|
Rank: rankid, // rankid为0 表示未上榜
|
||||||
Merchantmoney: userinfo.Merchantmoney,
|
Merchantmoney: userinfo.Merchantmoney,
|
||||||
CaravanLv: userinfo.CaravanLv,
|
CaravanLv: userinfo.Caravanlv,
|
||||||
}
|
}
|
||||||
session.SendMsg(string(this.module.GetType()), "ranklist", resp)
|
session.SendMsg(string(this.module.GetType()), "ranklist", resp)
|
||||||
return
|
return
|
||||||
|
@ -66,6 +66,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -85,7 +85,7 @@ func (this *modelCaravan) GetRankListData(rankNum int32, uid string) (list []*pb
|
|||||||
Avatar: temp.Avatar,
|
Avatar: temp.Avatar,
|
||||||
Rank: ipos,
|
Rank: ipos,
|
||||||
Merchantmoney: temp.Merchantmoney,
|
Merchantmoney: temp.Merchantmoney,
|
||||||
CaravanLv: temp.CaravanLv,
|
CaravanLv: temp.Caravanlv,
|
||||||
})
|
})
|
||||||
if temp.Uid == uid {
|
if temp.Uid == uid {
|
||||||
rankid = ipos
|
rankid = ipos
|
||||||
|
@ -124,25 +124,62 @@ func (this *Caravan) InitCaravanCityData(uid string, data *pb.DBCaravan) {
|
|||||||
}
|
}
|
||||||
data.Citystime = utils.GetZeroTime(configure.Now().Unix())
|
data.Citystime = utils.GetZeroTime(configure.Now().Unix())
|
||||||
data.Rtime = configure.Now().Unix() // 修改时间
|
data.Rtime = configure.Now().Unix() // 修改时间
|
||||||
|
|
||||||
|
//data.Itemtime = configure.Now().Unix() +
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化货物信息
|
// 初始化货物信息
|
||||||
func (this *Caravan) InitCaravanItemData(uid string, data *pb.DBCaravan) {
|
func (this *Caravan) InitCaravanItemData(uid string, data *pb.DBCaravan) {
|
||||||
|
var changeTime int32
|
||||||
items := this.configure.GetAllCaravanItem()
|
items := this.configure.GetAllCaravanItem()
|
||||||
data.Goods = make(map[string]*pb.Goods, 0)
|
data.Goods = make(map[string]*pb.Goods, 0)
|
||||||
for _, v := range items {
|
for _, c := range items {
|
||||||
|
if changeTime == 0 {
|
||||||
|
changeTime = c.Changetime
|
||||||
|
}
|
||||||
goods := &pb.Goods{
|
goods := &pb.Goods{
|
||||||
Period: 0, // 变动周期
|
Period: 0, // 变动周期
|
||||||
CurPeriod: 1, // 当前变动周期
|
CurPeriod: 1, // 当前变动周期
|
||||||
Price: 0, // 当前价格
|
Price: 0, // 当前价格
|
||||||
}
|
}
|
||||||
if len(v.Changeperiod) == 2 {
|
if len(c.Changeperiod) == 2 {
|
||||||
goods.Period = comm.GetRandNum(v.Changeperiod[0], v.Changeperiod[1])
|
goods.Period = comm.GetRandNum(c.Changeperiod[0], c.Changeperiod[1])
|
||||||
goods.Price = v.Goodsprice
|
goods.Price = c.Goodsprice
|
||||||
data.Goods[v.Itemid] = goods
|
// data.Goods[c.Itemid] = goods
|
||||||
}
|
}
|
||||||
data.Oldprice[v.Itemid] = v.Goodsprice
|
bUp := false
|
||||||
|
ipos := comm.GetRandW(c.PriceChangeWeight)
|
||||||
|
if ipos == 1 {
|
||||||
|
if comm.GetRandW(c.PriceChangeWeightOne) == 0 {
|
||||||
|
bUp = true
|
||||||
}
|
}
|
||||||
|
} else if ipos == 2 {
|
||||||
|
if comm.GetRandW(c.PriceChangeWeightTwo) == 0 {
|
||||||
|
bUp = true
|
||||||
|
}
|
||||||
|
} else if ipos == 3 {
|
||||||
|
if comm.GetRandW(c.PriceChangeWeightThree) == 0 {
|
||||||
|
bUp = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if bUp { // 价格上涨
|
||||||
|
goods.Price = int32(math.Floor(float64(goods.Price) * (1.0 + float64(c.FluctuationRange)/1000.0)))
|
||||||
|
} else {
|
||||||
|
goods.Price = int32(math.Floor(float64(goods.Price) * (1.0 - float64(c.FluctuationRange)/1000.0)))
|
||||||
|
}
|
||||||
|
|
||||||
|
if goods.Price < c.Pricemin { // 设置最小值
|
||||||
|
goods.Price = c.Pricemin
|
||||||
|
}
|
||||||
|
|
||||||
|
if goods.Price > c.Pricemax { // 设置最大值
|
||||||
|
goods.Price = c.Pricemax
|
||||||
|
}
|
||||||
|
data.Goods[c.Itemid] = goods
|
||||||
|
data.Oldprice[c.Itemid] = c.Goodsprice
|
||||||
|
}
|
||||||
|
data.Itemtime = configure.Now().Unix() + int64(changeTime) // 设置货物变更时间
|
||||||
}
|
}
|
||||||
|
|
||||||
// 初始化门票和虚拟币
|
// 初始化门票和虚拟币
|
||||||
@ -165,7 +202,7 @@ func (this *Caravan) refreshCaravanCityInfo(uid string, caravan *pb.DBCaravan) {
|
|||||||
)
|
)
|
||||||
curTime = configure.Now().Unix()
|
curTime = configure.Now().Unix()
|
||||||
update = make(map[string]interface{})
|
update = make(map[string]interface{})
|
||||||
changeTime = this.configure.GetCityRefreshTime() // 3分钟
|
changeTime = this.configure.GetCityRefreshTime()
|
||||||
|
|
||||||
// 刷新城市货物信息
|
// 刷新城市货物信息
|
||||||
if !utils.IsNextToday(caravan.Citystime) {
|
if !utils.IsNextToday(caravan.Citystime) {
|
||||||
@ -221,14 +258,13 @@ func (this *Caravan) refreshCaravanCityInfo(uid string, caravan *pb.DBCaravan) {
|
|||||||
update["citystime"] = caravan.Citystime
|
update["citystime"] = caravan.Citystime
|
||||||
bChange = true
|
bChange = true
|
||||||
}
|
}
|
||||||
if caravan.Itemtime == 0 {
|
|
||||||
caravan.Itemtime = configure.Now().Unix()
|
|
||||||
}
|
|
||||||
subTime := int32(curTime - caravan.Itemtime)
|
subTime := int32(curTime - caravan.Itemtime)
|
||||||
if subTime >= changeTime {
|
if subTime >= 0 {
|
||||||
bChange = true
|
bChange = true
|
||||||
|
|
||||||
icount := int32(subTime / changeTime) // 循环周期
|
icount := int32(subTime/changeTime) + 1 // 循环周期
|
||||||
|
|
||||||
caravan.Itemtime += int64(changeTime * icount)
|
caravan.Itemtime += int64(changeTime * icount)
|
||||||
update["itemtime"] = caravan.Itemtime
|
update["itemtime"] = caravan.Itemtime
|
||||||
for k, v := range caravan.Goods {
|
for k, v := range caravan.Goods {
|
||||||
@ -238,6 +274,7 @@ func (this *Caravan) refreshCaravanCityInfo(uid string, caravan *pb.DBCaravan) {
|
|||||||
// 随机出新的变动周期
|
// 随机出新的变动周期
|
||||||
v.Period = comm.GetRandNum(c.Changeperiod[0], c.Changeperiod[1])
|
v.Period = comm.GetRandNum(c.Changeperiod[0], c.Changeperiod[1])
|
||||||
v.CurPeriod = 0
|
v.CurPeriod = 0
|
||||||
|
caravan.Itemtime = curTime + int64(changeTime) // 修改变更时间
|
||||||
} else {
|
} else {
|
||||||
for i := 0; i < int(icount); i++ { // 计算当前的价格
|
for i := 0; i < int(icount); i++ { // 计算当前的价格
|
||||||
// 价格涨跌权重 PriceChangeWeight
|
// 价格涨跌权重 PriceChangeWeight
|
||||||
@ -284,12 +321,6 @@ func (this *Caravan) refreshCaravanCityInfo(uid string, caravan *pb.DBCaravan) {
|
|||||||
update["goods"] = caravan.Goods
|
update["goods"] = caravan.Goods
|
||||||
update["oldprice"] = caravan.Oldprice
|
update["oldprice"] = caravan.Oldprice
|
||||||
}
|
}
|
||||||
// endTime := utils.WeekIntervalTime(0)
|
|
||||||
// if caravan.Resettime != endTime {
|
|
||||||
// caravan.Resettime = endTime
|
|
||||||
// update["resettime"] = caravan.Resettime
|
|
||||||
// bChange = true
|
|
||||||
// }
|
|
||||||
|
|
||||||
if bChange {
|
if bChange {
|
||||||
this.modelCaravan.modifyCaravanDataByObjId(uid, update)
|
this.modelCaravan.modifyCaravanDataByObjId(uid, update)
|
||||||
@ -424,6 +455,7 @@ func (this *Caravan) CheckCaravavLvUp(data *pb.DBCaravan) (curLv int32) {
|
|||||||
for {
|
for {
|
||||||
if conf, err := this.configure.GetCaravanLv(curLv + 1); err == nil {
|
if conf, err := this.configure.GetCaravanLv(curLv + 1); err == nil {
|
||||||
if conf.Newmoneyexp <= int32(data.Profit) {
|
if conf.Newmoneyexp <= int32(data.Profit) {
|
||||||
|
//data.Profit -= int64(conf.Newmoneyexp)
|
||||||
curLv++
|
curLv++
|
||||||
} else {
|
} else {
|
||||||
break
|
break
|
||||||
|
@ -29,17 +29,17 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
|||||||
star5Count int32 // 10连抽5星数量
|
star5Count int32 // 10连抽5星数量
|
||||||
cfgGlobal *cfg.GameGlobalData // 全局配置
|
cfgGlobal *cfg.GameGlobalData // 全局配置
|
||||||
heroRecord *pb.DBHeroRecord
|
heroRecord *pb.DBHeroRecord
|
||||||
atno []*pb.UserAtno // 最终获得的资源
|
|
||||||
strPool []string // 10连跨多个卡池情况
|
strPool []string // 10连跨多个卡池情况
|
||||||
update map[string]interface{}
|
update map[string]interface{}
|
||||||
normalDraw bool // 是否是普通抽
|
normalDraw bool // 是否是普通抽
|
||||||
drawConf *cfg.GameDrawPoolData
|
drawConf *cfg.GameDrawPoolData
|
||||||
err error
|
err error
|
||||||
|
atno []*pb.UserAtno
|
||||||
IsBaodiPool bool // 是否是保底卡池
|
IsBaodiPool bool // 是否是保底卡池
|
||||||
appointmap map[int32]string // 指定次数抽卡到指定卡池
|
appointmap map[int32]string // 指定次数抽卡到指定卡池
|
||||||
// 首次获得英雄
|
// 首次获得英雄
|
||||||
firstGet map[string]bool
|
firstGet map[string]bool
|
||||||
|
reward []*cfg.Gameatn // 许愿石奖励
|
||||||
)
|
)
|
||||||
update = make(map[string]interface{})
|
update = make(map[string]interface{})
|
||||||
appointmap = make(map[int32]string)
|
appointmap = make(map[int32]string)
|
||||||
@ -110,22 +110,22 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if errdata, atno = this.module.DispenseAtno(session, []*cfg.Gameatn{{
|
var hero *pb.DBHero
|
||||||
A: "hero",
|
firstGet[heroRecord.WishHero] = false
|
||||||
T: heroRecord.WishHero,
|
|
||||||
N: 1,
|
if hero, atno, errdata = this.module.ModuleHero.CreateOneHero(session, heroRecord.WishHero, true); errdata == nil {
|
||||||
}}, true); errdata == nil {
|
|
||||||
firstGet[heroRecord.WishHero] = true
|
|
||||||
rsp.Data = append(rsp.Data, &pb.AtnoData{Atno: atno})
|
|
||||||
for _, v := range atno {
|
for _, v := range atno {
|
||||||
if v.A == "hero" && v.N == 1 {
|
if v.A == "hero" && v.T == heroRecord.WishHero && v.N == 1 {
|
||||||
|
firstGet[heroRecord.WishHero] = true
|
||||||
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil { // 广播 首次获得英雄
|
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil { // 广播 首次获得英雄
|
||||||
this.chat.SendSysChatToWorld(comm.ChatSystem13, nil, 0, 0, user.Name, v.T)
|
if HeroConf, err := this.module.configure.GetHeroConfig(heroRecord.WishHero); err == nil {
|
||||||
}
|
this.chat.SendSysChatToWorld(comm.ChatSystem13, hero, HeroConf.Star, 0, user.Name, v.T)
|
||||||
} else if v.A == "hero" && v.N == 0 {
|
|
||||||
firstGet[v.T] = false
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
rsp.Data = append(rsp.Data, &pb.AtnoData{Atno: atno})
|
||||||
} else {
|
} else {
|
||||||
errdata = &pb.ErrorData{
|
errdata = &pb.ErrorData{
|
||||||
Code: pb.ErrorCode_ReqParameterError,
|
Code: pb.ErrorCode_ReqParameterError,
|
||||||
@ -320,14 +320,18 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
|||||||
update["baodi5"] = heroRecord.Baodi5
|
update["baodi5"] = heroRecord.Baodi5
|
||||||
|
|
||||||
for _, heroId := range szCards {
|
for _, heroId := range szCards {
|
||||||
var reward []*cfg.Gameatn
|
//var
|
||||||
if c, err := this.module.configure.GetHeroConfig(heroId); err == nil {
|
var (
|
||||||
szStar = append(szStar, c.Star) // 获得许愿石
|
hero *pb.DBHero
|
||||||
|
HeroConf *cfg.GameHeroData
|
||||||
|
)
|
||||||
|
if HeroConf, err = this.module.configure.GetHeroConfig(heroId); err == nil {
|
||||||
|
szStar = append(szStar, HeroConf.Star) // 获得许愿石
|
||||||
var tmp *cfg.Gameatn
|
var tmp *cfg.Gameatn
|
||||||
if c.Star == 4 {
|
if HeroConf.Star == 4 {
|
||||||
tmp = this.module.ModuleTools.GetGlobalConf().RewardStar4
|
tmp = this.module.ModuleTools.GetGlobalConf().RewardStar4
|
||||||
reward = append(reward, tmp)
|
reward = append(reward, tmp)
|
||||||
} else if c.Star == 5 {
|
} else if HeroConf.Star == 5 {
|
||||||
tmp = this.module.ModuleTools.GetGlobalConf().RewardStar5
|
tmp = this.module.ModuleTools.GetGlobalConf().RewardStar5
|
||||||
reward = append(reward, tmp)
|
reward = append(reward, tmp)
|
||||||
|
|
||||||
@ -353,22 +357,27 @@ func (this *apiComp) DrawCard(session comm.IUserSession, req *pb.HeroDrawCardReq
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
reward = append(reward, &cfg.Gameatn{
|
|
||||||
A: "hero",
|
|
||||||
T: heroId,
|
|
||||||
N: 1,
|
|
||||||
})
|
|
||||||
firstGet[heroId] = true
|
|
||||||
var atno []*pb.UserAtno
|
|
||||||
if errdata, atno = this.module.DispenseAtno(session, reward, true); errdata == nil {
|
|
||||||
for _, v := range atno {
|
|
||||||
if v.A == "hero" && v.T == heroId && v.N == 0 {
|
|
||||||
firstGet[heroId] = false
|
firstGet[heroId] = false
|
||||||
|
var atno []*pb.UserAtno
|
||||||
|
if hero, atno, errdata = this.module.ModuleHero.CreateOneHero(session, heroId, true); errdata == nil {
|
||||||
|
for _, v := range atno {
|
||||||
|
if v.A == "hero" && v.T == heroId && v.N == 1 {
|
||||||
|
firstGet[heroId] = true
|
||||||
|
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil { // 广播 首次获得英雄
|
||||||
|
this.chat.SendSysChatToWorld(comm.ChatSystem13, hero, HeroConf.Star, 0, user.Name, v.T)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rsp.Data = append(rsp.Data, &pb.AtnoData{Atno: atno})
|
rsp.Data = append(rsp.Data, &pb.AtnoData{Atno: atno})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 发放许愿石奖励
|
||||||
|
if errdata, _ = this.module.DispenseAtno(session, reward, true); errdata != nil {
|
||||||
|
return
|
||||||
}
|
}
|
||||||
rsp.FirstGet = firstGet
|
rsp.FirstGet = firstGet
|
||||||
this.module.modelRecord.ChangeHeroRecord(session.GetUserId(), update)
|
this.module.modelRecord.ChangeHeroRecord(session.GetUserId(), update)
|
||||||
|
@ -1090,3 +1090,38 @@ func (this *Hero) AddHerosExp(session comm.IUserSession, heroObjs []string, exp
|
|||||||
session.SendMsg(string(this.GetType()), "change", &pb.HeroChangePush{List: _changeHero})
|
session.SendMsg(string(this.GetType()), "change", &pb.HeroChangePush{List: _changeHero})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 获得一个英雄
|
||||||
|
func (this *Hero) CreateOneHero(session comm.IUserSession, heroCfgId string, bPush bool) (hero *pb.DBHero, atno []*pb.UserAtno, errdata *pb.ErrorData) {
|
||||||
|
var (
|
||||||
|
//hero *pb.DBHero
|
||||||
|
firstGet []string
|
||||||
|
bFirst bool
|
||||||
|
szAddHero []string
|
||||||
|
)
|
||||||
|
|
||||||
|
if hero, bFirst, atno, errdata = this.createRepeatHero(session, heroCfgId, 1); errdata != nil {
|
||||||
|
this.Errorf("create hero %s failed", heroCfgId)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
szAddHero = append(szAddHero, heroCfgId)
|
||||||
|
if bFirst {
|
||||||
|
firstGet = append(firstGet, heroCfgId)
|
||||||
|
}
|
||||||
|
if db.IsCross() {
|
||||||
|
this.moduleFetter.SendRpcAddHero(session.GetUserId(), szAddHero, session.GetServiecTag())
|
||||||
|
} else {
|
||||||
|
this.moduleFetter.AddHerosFetterData(session.GetUserId(), szAddHero)
|
||||||
|
}
|
||||||
|
if bPush { //推送
|
||||||
|
session.SendMsg("hero", "change", &pb.HeroChangePush{List: []*pb.DBHero{hero}})
|
||||||
|
// 首次获得英雄 则推送
|
||||||
|
if len(firstGet) > 0 {
|
||||||
|
session.SendMsg("hero", "firstget", &pb.HeroFirstGetPush{
|
||||||
|
HeroId: firstGet,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return
|
||||||
|
}
|
||||||
|
@ -1031,6 +1031,8 @@ type ComRebirth struct {
|
|||||||
unknownFields protoimpl.UnknownFields
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
To int32 `protobuf:"varint,1,opt,name=to,proto3" json:"to"`
|
To int32 `protobuf:"varint,1,opt,name=to,proto3" json:"to"`
|
||||||
|
Nhp int32 `protobuf:"varint,2,opt,name=nhp,proto3" json:"nhp"`
|
||||||
|
Mhp int32 `protobuf:"varint,3,opt,name=mhp,proto3" json:"mhp"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ComRebirth) Reset() {
|
func (x *ComRebirth) Reset() {
|
||||||
@ -1072,6 +1074,20 @@ func (x *ComRebirth) GetTo() int32 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *ComRebirth) GetNhp() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Nhp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *ComRebirth) GetMhp() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Mhp
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
//血量变化
|
//血量变化
|
||||||
type ComModifyHealth struct {
|
type ComModifyHealth struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
@ -1808,75 +1824,77 @@ var file_battle_battle_struct_proto_rawDesc = []byte{
|
|||||||
0x75, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28,
|
0x75, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x18, 0x05, 0x20, 0x01, 0x28,
|
||||||
0x02, 0x52, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x65, 0x72,
|
0x02, 0x52, 0x05, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x65, 0x72,
|
||||||
0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6f, 0x70, 0x65, 0x72, 0x61,
|
0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x6f, 0x70, 0x65, 0x72, 0x61,
|
||||||
0x74, 0x65, 0x22, 0x1c, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x52, 0x65, 0x62, 0x69, 0x72, 0x74, 0x68,
|
0x74, 0x65, 0x22, 0x40, 0x0a, 0x0a, 0x43, 0x6f, 0x6d, 0x52, 0x65, 0x62, 0x69, 0x72, 0x74, 0x68,
|
||||||
0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x74, 0x6f,
|
0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x74, 0x6f,
|
||||||
0x22, 0xe5, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x48, 0x65,
|
0x12, 0x10, 0x0a, 0x03, 0x6e, 0x68, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e,
|
||||||
0x61, 0x6c, 0x74, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
0x68, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x6d, 0x68, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
0x52, 0x02, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x02, 0x20, 0x01,
|
0x03, 0x6d, 0x68, 0x70, 0x22, 0xe5, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6d, 0x4d, 0x6f, 0x64, 0x69,
|
||||||
0x28, 0x05, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x61, 0x6f, 0x6a,
|
0x66, 0x79, 0x48, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x01,
|
||||||
0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x62, 0x61, 0x6f, 0x6a, 0x69, 0x12, 0x18,
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x74, 0x6f, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d,
|
||||||
0x0a, 0x07, 0x68, 0x69, 0x64, 0x65, 0x44, 0x6d, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x07, 0x68, 0x69, 0x64, 0x65, 0x44, 0x6d, 0x67, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x6f, 0x64, 0x69,
|
0x62, 0x61, 0x6f, 0x6a, 0x69, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x62, 0x61, 0x6f,
|
||||||
0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x6d, 0x6f,
|
0x6a, 0x69, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x69, 0x64, 0x65, 0x44, 0x6d, 0x67, 0x18, 0x04, 0x20,
|
||||||
0x64, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x75, 0x6d, 0x18,
|
0x01, 0x28, 0x08, 0x52, 0x07, 0x68, 0x69, 0x64, 0x65, 0x44, 0x6d, 0x67, 0x12, 0x1e, 0x0a, 0x0a,
|
||||||
0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x12, 0x10, 0x0a, 0x03, 0x6e, 0x68,
|
0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05,
|
||||||
0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x68, 0x70, 0x12, 0x10, 0x0a, 0x03,
|
0x52, 0x0a, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03,
|
||||||
0x6d, 0x68, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6d, 0x68, 0x70, 0x12, 0x16,
|
0x6e, 0x75, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x02, 0x52, 0x03, 0x6e, 0x75, 0x6d, 0x12, 0x10,
|
||||||
0x0a, 0x06, 0x73, 0x65, 0x61, 0x6c, 0x48, 0x70, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06,
|
0x0a, 0x03, 0x6e, 0x68, 0x70, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x68, 0x70,
|
||||||
0x73, 0x65, 0x61, 0x6c, 0x48, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6d, 0x67, 0x18, 0x0a, 0x20,
|
0x12, 0x10, 0x0a, 0x03, 0x6d, 0x68, 0x70, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6d,
|
||||||
0x01, 0x28, 0x08, 0x52, 0x03, 0x64, 0x6d, 0x67, 0x22, 0x34, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x54,
|
0x68, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x6c, 0x48, 0x70, 0x18, 0x09, 0x20, 0x01,
|
||||||
0x65, 0x61, 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
|
0x28, 0x05, 0x52, 0x06, 0x73, 0x65, 0x61, 0x6c, 0x48, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x6d,
|
||||||
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e,
|
0x67, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x64, 0x6d, 0x67, 0x22, 0x34, 0x0a, 0x0c,
|
||||||
0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x34,
|
0x43, 0x6f, 0x6d, 0x54, 0x65, 0x61, 0x63, 0x68, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x0e, 0x0a, 0x02,
|
||||||
0x0a, 0x08, 0x43, 0x6f, 0x6d, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74,
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75,
|
||||||
0x6f, 0x72, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x74, 0x6f,
|
0x6e, 0x74, 0x22, 0x34, 0x0a, 0x08, 0x43, 0x6f, 0x6d, 0x53, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x0e,
|
||||||
0x72, 0x79, 0x49, 0x64, 0x22, 0x34, 0x0a, 0x08, 0x43, 0x6f, 0x6d, 0x47, 0x75, 0x69, 0x64, 0x65,
|
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18,
|
||||||
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x69, 0x64,
|
0x0a, 0x07, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
|
||||||
0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x64, 0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
0x07, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x34, 0x0a, 0x08, 0x43, 0x6f, 0x6d, 0x47,
|
||||||
0x05, 0x52, 0x07, 0x67, 0x75, 0x69, 0x64, 0x65, 0x49, 0x64, 0x22, 0x7f, 0x0a, 0x0e, 0x43, 0x6f,
|
0x75, 0x69, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05,
|
||||||
0x6d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04,
|
0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x75, 0x69, 0x64, 0x65, 0x49, 0x64, 0x18,
|
||||||
0x73, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x64, 0x65,
|
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x67, 0x75, 0x69, 0x64, 0x65, 0x49, 0x64, 0x22, 0x7f,
|
||||||
0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
|
0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x73,
|
||||||
0x28, 0x05, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08,
|
0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,
|
||||||
0x70, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08,
|
0x73, 0x69, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x69, 0x64,
|
||||||
0x70, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x69, 0x64,
|
||||||
0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61, 0x74, 0x74, 0x6c, 0x65,
|
0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
|
||||||
0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x43, 0x0a, 0x0d, 0x43,
|
0x28, 0x05, 0x52, 0x08, 0x70, 0x6c, 0x61, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x21, 0x0a, 0x05,
|
||||||
0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x12, 0x1e, 0x0a, 0x0a,
|
0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x42, 0x61,
|
||||||
0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
0x74, 0x74, 0x6c, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22,
|
||||||
0x52, 0x0a, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
0x43, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x50, 0x6c, 0x61, 0x79, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74,
|
||||||
0x73, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73, 0x69, 0x64, 0x65,
|
0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
||||||
0x22, 0x2c, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x45, 0x6d, 0x69, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x4e, 0x61, 0x6d, 0x65,
|
||||||
0x64, 0x6f, 0x77, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x18,
|
0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04,
|
||||||
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65, 0x73, 0x65, 0x72, 0x76, 0x65, 0x22, 0x44,
|
0x73, 0x69, 0x64, 0x65, 0x22, 0x2c, 0x0a, 0x10, 0x43, 0x6f, 0x6d, 0x45, 0x6d, 0x69, 0x74, 0x43,
|
||||||
0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x54, 0x69, 0x70, 0x73, 0x12,
|
0x6f, 0x75, 0x6e, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x65,
|
||||||
0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e,
|
0x72, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x72, 0x65, 0x73, 0x65, 0x72,
|
||||||
0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x54, 0x69, 0x70, 0x73, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04,
|
0x76, 0x65, 0x22, 0x44, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x54,
|
||||||
0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
|
0x69, 0x70, 0x73, 0x12, 0x23, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x52, 0x02, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x43, 0x68, 0x61, 0x69, 0x6e,
|
0x0e, 0x32, 0x0f, 0x2e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x54, 0x69, 0x70, 0x73, 0x54, 0x79,
|
||||||
0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x18,
|
0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x02,
|
||||||
0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73, 0x22, 0x53, 0x0a, 0x0d,
|
0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x74, 0x6f, 0x22, 0x26, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x43,
|
||||||
0x43, 0x6f, 0x6d, 0x53, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a,
|
0x68, 0x61, 0x69, 0x6e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x6f,
|
||||||
0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x72, 0x69, 0x64, 0x12,
|
0x6c, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x05, 0x72, 0x6f, 0x6c, 0x65, 0x73,
|
||||||
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05,
|
0x22, 0x53, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x53, 0x68, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x6e, 0x66,
|
||||||
0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72, 0x56, 0x61, 0x6c, 0x75,
|
0x6f, 0x12, 0x10, 0x0a, 0x03, 0x72, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
|
||||||
0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x75, 0x72, 0x56, 0x61, 0x6c, 0x75,
|
0x72, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01,
|
||||||
0x65, 0x2a, 0xcd, 0x01, 0x0a, 0x0e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x54, 0x69, 0x70, 0x73,
|
0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x75, 0x72,
|
||||||
0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x66, 0x66, 0x5f, 0x53, 0x75, 0x63, 0x63,
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x63, 0x75, 0x72,
|
||||||
0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x5f, 0x53, 0x75, 0x63,
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xcd, 0x01, 0x0a, 0x0e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74,
|
||||||
0x63, 0x65, 0x73, 0x73, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6d, 0x6d, 0x75, 0x6e, 0x69,
|
0x54, 0x69, 0x70, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x45, 0x66, 0x66, 0x5f,
|
||||||
0x74, 0x79, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x69, 0x73, 0x74, 0x10, 0x03,
|
0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x6f, 0x74,
|
||||||
0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x6f, 0x74, 0x5f, 0x47, 0x61, 0x69, 0x6e, 0x10, 0x04, 0x12, 0x0f,
|
0x5f, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x49, 0x6d,
|
||||||
0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x5f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x10, 0x05, 0x12,
|
0x6d, 0x75, 0x6e, 0x69, 0x74, 0x79, 0x10, 0x02, 0x12, 0x0a, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x69,
|
||||||
0x0e, 0x0a, 0x0a, 0x4e, 0x6f, 0x74, 0x5f, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x10, 0x06, 0x12,
|
0x73, 0x74, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x6f, 0x74, 0x5f, 0x47, 0x61, 0x69, 0x6e,
|
||||||
0x10, 0x0a, 0x0c, 0x50, 0x75, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x10,
|
0x10, 0x04, 0x12, 0x0f, 0x0a, 0x0b, 0x4e, 0x6f, 0x74, 0x5f, 0x43, 0x6f, 0x6e, 0x74, 0x72, 0x6f,
|
||||||
0x07, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x70, 0x65, 0x72, 0x73, 0x65, 0x10, 0x08, 0x12,
|
0x6c, 0x10, 0x05, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x6f, 0x74, 0x5f, 0x41, 0x63, 0x74, 0x69, 0x6f,
|
||||||
0x0e, 0x0a, 0x0a, 0x47, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0x09, 0x12,
|
0x6e, 0x10, 0x06, 0x12, 0x10, 0x0a, 0x0c, 0x50, 0x75, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74,
|
||||||
0x0f, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x5f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x10, 0x0a,
|
0x69, 0x6f, 0x6e, 0x10, 0x07, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x69, 0x73, 0x70, 0x65, 0x72, 0x73,
|
||||||
0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x5f, 0x4f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x65, 0x10,
|
0x65, 0x10, 0x08, 0x12, 0x0e, 0x0a, 0x0a, 0x47, 0x61, 0x69, 0x6e, 0x5f, 0x72, 0x6f, 0x75, 0x6e,
|
||||||
0x0b, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
0x64, 0x10, 0x09, 0x12, 0x0f, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x5f, 0x4f, 0x70, 0x65, 0x72, 0x61,
|
||||||
0x33,
|
0x74, 0x65, 0x10, 0x0a, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x75, 0x62, 0x5f, 0x4f, 0x70, 0x65, 0x72,
|
||||||
|
0x61, 0x74, 0x65, 0x10, 0x0b, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
|
||||||
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -152,7 +152,7 @@ type DBUser struct {
|
|||||||
Channel int32 `protobuf:"varint,38,opt,name=channel,proto3" json:"channel"` //@go_tags(`bson:"channel"`)渠道
|
Channel int32 `protobuf:"varint,38,opt,name=channel,proto3" json:"channel"` //@go_tags(`bson:"channel"`)渠道
|
||||||
Vcode int32 `protobuf:"varint,39,opt,name=vcode,proto3" json:"vcode"` //@go_tags(`bson:"vcode"`)版本号
|
Vcode int32 `protobuf:"varint,39,opt,name=vcode,proto3" json:"vcode"` //@go_tags(`bson:"vcode"`)版本号
|
||||||
Vname string `protobuf:"bytes,40,opt,name=vname,proto3" json:"vname"` //@go_tags(`bson:"vname"`)版本名
|
Vname string `protobuf:"bytes,40,opt,name=vname,proto3" json:"vname"` //@go_tags(`bson:"vname"`)版本名
|
||||||
CaravanLv int32 `protobuf:"varint,41,opt,name=caravanLv,proto3" json:"caravanLv"` //@go_tags(`bson:"caravanlv"`)商队等级
|
Caravanlv int32 `protobuf:"varint,41,opt,name=caravanlv,proto3" json:"caravanlv"` //@go_tags(`bson:"caravanlv"`)商队等级
|
||||||
Deposit int64 `protobuf:"varint,42,opt,name=deposit,proto3" json:"deposit" bson:"deposit"` //储蓄
|
Deposit int64 `protobuf:"varint,42,opt,name=deposit,proto3" json:"deposit" bson:"deposit"` //储蓄
|
||||||
Profit int64 `protobuf:"varint,43,opt,name=profit,proto3" json:"profit" bson:"profit"` //商队盈利
|
Profit int64 `protobuf:"varint,43,opt,name=profit,proto3" json:"profit" bson:"profit"` //商队盈利
|
||||||
Integral int64 `protobuf:"varint,44,opt,name=integral,proto3" json:"integral" bson:"integral"` //充值积分
|
Integral int64 `protobuf:"varint,44,opt,name=integral,proto3" json:"integral" bson:"integral"` //充值积分
|
||||||
@ -470,9 +470,9 @@ func (x *DBUser) GetVname() string {
|
|||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DBUser) GetCaravanLv() int32 {
|
func (x *DBUser) GetCaravanlv() int32 {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.CaravanLv
|
return x.Caravanlv
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -886,8 +886,8 @@ var file_user_user_db_proto_rawDesc = []byte{
|
|||||||
0x64, 0x65, 0x18, 0x27, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x63, 0x6f, 0x64, 0x65, 0x12,
|
0x64, 0x65, 0x18, 0x27, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x63, 0x6f, 0x64, 0x65, 0x12,
|
||||||
0x14, 0x0a, 0x05, 0x76, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x28, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
0x14, 0x0a, 0x05, 0x76, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x28, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
||||||
0x76, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x61, 0x72, 0x61, 0x76, 0x61, 0x6e,
|
0x76, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x61, 0x72, 0x61, 0x76, 0x61, 0x6e,
|
||||||
0x4c, 0x76, 0x18, 0x29, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x61, 0x72, 0x61, 0x76, 0x61,
|
0x6c, 0x76, 0x18, 0x29, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x61, 0x72, 0x61, 0x76, 0x61,
|
||||||
0x6e, 0x4c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x2a,
|
0x6e, 0x6c, 0x76, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x18, 0x2a,
|
||||||
0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x16, 0x0a,
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x64, 0x65, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x12, 0x16, 0x0a,
|
||||||
0x06, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x74, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70,
|
0x06, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x74, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x70,
|
||||||
0x72, 0x6f, 0x66, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
0x72, 0x6f, 0x66, 0x69, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x67, 0x72, 0x61,
|
||||||
|
@ -19,6 +19,8 @@ type GameMainStageData struct {
|
|||||||
Episodetype int32
|
Episodetype int32
|
||||||
Openlevel int32
|
Openlevel int32
|
||||||
EditorStage int32
|
EditorStage int32
|
||||||
|
Venturemodelspeed float32
|
||||||
|
Venturemodelscale float32
|
||||||
Venturemodel string
|
Venturemodel string
|
||||||
Bubbletalk string
|
Bubbletalk string
|
||||||
Venturetype int32
|
Venturetype int32
|
||||||
@ -82,6 +84,8 @@ func (_v *GameMainStageData)Deserialize(_buf map[string]interface{}) (err error)
|
|||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Episodetype"].(float64); !_ok_ { err = errors.New("Episodetype error"); return }; _v.Episodetype = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Episodetype"].(float64); !_ok_ { err = errors.New("Episodetype error"); return }; _v.Episodetype = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["openlevel"].(float64); !_ok_ { err = errors.New("openlevel error"); return }; _v.Openlevel = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["openlevel"].(float64); !_ok_ { err = errors.New("openlevel error"); return }; _v.Openlevel = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["EditorStage"].(float64); !_ok_ { err = errors.New("EditorStage error"); return }; _v.EditorStage = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["EditorStage"].(float64); !_ok_ { err = errors.New("EditorStage error"); return }; _v.EditorStage = int32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["venturemodelspeed"].(float64); !_ok_ { err = errors.New("venturemodelspeed error"); return }; _v.Venturemodelspeed = float32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["venturemodelscale"].(float64); !_ok_ { err = errors.New("venturemodelscale error"); return }; _v.Venturemodelscale = float32(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.Venturemodel, _ok_ = _buf["venturemodel"].(string); !_ok_ { err = errors.New("venturemodel error"); return } }
|
{ var _ok_ bool; if _v.Venturemodel, _ok_ = _buf["venturemodel"].(string); !_ok_ { err = errors.New("venturemodel error"); return } }
|
||||||
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["bubbletalk"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Bubbletalk error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Bubbletalk, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["bubbletalk"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Bubbletalk error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Bubbletalk, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["venturetype"].(float64); !_ok_ { err = errors.New("venturetype error"); return }; _v.Venturetype = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["venturetype"].(float64); !_ok_ { err = errors.New("venturetype error"); return }; _v.Venturetype = int32(_tempNum_) }
|
||||||
|
@ -237,6 +237,7 @@ type GameGlobalData struct {
|
|||||||
BuzkashiRecentPlayer int32
|
BuzkashiRecentPlayer int32
|
||||||
TaskActivation int32
|
TaskActivation int32
|
||||||
BuzkashiSpeedbumptime int32
|
BuzkashiSpeedbumptime int32
|
||||||
|
BuzkashiSpeedbumphp int32
|
||||||
BuzkashiRecovertime int32
|
BuzkashiRecovertime int32
|
||||||
BuzkashiRecoverHp int32
|
BuzkashiRecoverHp int32
|
||||||
BuzkashiDeathspeed int32
|
BuzkashiDeathspeed int32
|
||||||
@ -997,6 +998,7 @@ func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) {
|
|||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_recentPlayer"].(float64); !_ok_ { err = errors.New("buzkashi_recentPlayer error"); return }; _v.BuzkashiRecentPlayer = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_recentPlayer"].(float64); !_ok_ { err = errors.New("buzkashi_recentPlayer error"); return }; _v.BuzkashiRecentPlayer = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_activation"].(float64); !_ok_ { err = errors.New("task_activation error"); return }; _v.TaskActivation = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_activation"].(float64); !_ok_ { err = errors.New("task_activation error"); return }; _v.TaskActivation = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_speedbumptime"].(float64); !_ok_ { err = errors.New("buzkashi_speedbumptime error"); return }; _v.BuzkashiSpeedbumptime = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_speedbumptime"].(float64); !_ok_ { err = errors.New("buzkashi_speedbumptime error"); return }; _v.BuzkashiSpeedbumptime = int32(_tempNum_) }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_speedbumphp"].(float64); !_ok_ { err = errors.New("buzkashi_speedbumphp error"); return }; _v.BuzkashiSpeedbumphp = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_recovertime"].(float64); !_ok_ { err = errors.New("buzkashi_recovertime error"); return }; _v.BuzkashiRecovertime = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_recovertime"].(float64); !_ok_ { err = errors.New("buzkashi_recovertime error"); return }; _v.BuzkashiRecovertime = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_recoverHp"].(float64); !_ok_ { err = errors.New("buzkashi_recoverHp error"); return }; _v.BuzkashiRecoverHp = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_recoverHp"].(float64); !_ok_ { err = errors.New("buzkashi_recoverHp error"); return }; _v.BuzkashiRecoverHp = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_deathspeed"].(float64); !_ok_ { err = errors.New("buzkashi_deathspeed error"); return }; _v.BuzkashiDeathspeed = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buzkashi_deathspeed"].(float64); !_ok_ { err = errors.New("buzkashi_deathspeed error"); return }; _v.BuzkashiDeathspeed = int32(_tempNum_) }
|
||||||
|
@ -25,6 +25,7 @@ type GameSkillAtkData struct {
|
|||||||
Where []string
|
Where []string
|
||||||
Target int32
|
Target int32
|
||||||
ChildSkill *GameChildSkills
|
ChildSkill *GameChildSkills
|
||||||
|
PassSkill []int32
|
||||||
Desc string
|
Desc string
|
||||||
Buffid []int32
|
Buffid []int32
|
||||||
Map string
|
Map string
|
||||||
@ -77,6 +78,20 @@ func (_v *GameSkillAtkData)Deserialize(_buf map[string]interface{}) (err error)
|
|||||||
|
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Target"].(float64); !_ok_ { err = errors.New("Target error"); return }; _v.Target = int32(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Target"].(float64); !_ok_ { err = errors.New("Target error"); return }; _v.Target = int32(_tempNum_) }
|
||||||
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["ChildSkill"].(map[string]interface{}); !_ok_ { err = errors.New("ChildSkill error"); return }; if _v.ChildSkill, err = DeserializeGameChildSkills(_x_); err != nil { return } }
|
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["ChildSkill"].(map[string]interface{}); !_ok_ { err = errors.New("ChildSkill error"); return }; if _v.ChildSkill, err = DeserializeGameChildSkills(_x_); err != nil { return } }
|
||||||
|
{
|
||||||
|
var _arr_ []interface{}
|
||||||
|
var _ok_ bool
|
||||||
|
if _arr_, _ok_ = _buf["passSkill"].([]interface{}); !_ok_ { err = errors.New("passSkill error"); return }
|
||||||
|
|
||||||
|
_v.PassSkill = make([]int32, 0, len(_arr_))
|
||||||
|
|
||||||
|
for _, _e_ := range _arr_ {
|
||||||
|
var _list_v_ int32
|
||||||
|
{ var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) }
|
||||||
|
_v.PassSkill = append(_v.PassSkill, _list_v_)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["Desc"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Desc error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Desc, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["Desc"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Desc error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Desc, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
||||||
{
|
{
|
||||||
var _arr_ []interface{}
|
var _arr_ []interface{}
|
||||||
|
@ -27,10 +27,10 @@ type GameSkillBuffData struct {
|
|||||||
OverlayTimes byte
|
OverlayTimes byte
|
||||||
SameID bool
|
SameID bool
|
||||||
Golbalbufficon string
|
Golbalbufficon string
|
||||||
ForbidFloat int32
|
|
||||||
BuffIcon string
|
BuffIcon string
|
||||||
Buffeffect string
|
Buffeffect string
|
||||||
Buffpos string
|
Buffpos string
|
||||||
|
ForbidFloat int32
|
||||||
}
|
}
|
||||||
|
|
||||||
const TypeId_GameSkillBuffData = 198132498
|
const TypeId_GameSkillBuffData = 198132498
|
||||||
@ -108,10 +108,10 @@ func (_v *GameSkillBuffData)Deserialize(_buf map[string]interface{}) (err error)
|
|||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["OverlayTimes"].(float64); !_ok_ { err = errors.New("OverlayTimes error"); return }; _v.OverlayTimes = byte(_tempNum_) }
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["OverlayTimes"].(float64); !_ok_ { err = errors.New("OverlayTimes error"); return }; _v.OverlayTimes = byte(_tempNum_) }
|
||||||
{ var _ok_ bool; if _v.SameID, _ok_ = _buf["SameID"].(bool); !_ok_ { err = errors.New("SameID error"); return } }
|
{ var _ok_ bool; if _v.SameID, _ok_ = _buf["SameID"].(bool); !_ok_ { err = errors.New("SameID error"); return } }
|
||||||
{ var _ok_ bool; if _v.Golbalbufficon, _ok_ = _buf["golbalbufficon"].(string); !_ok_ { err = errors.New("golbalbufficon error"); return } }
|
{ var _ok_ bool; if _v.Golbalbufficon, _ok_ = _buf["golbalbufficon"].(string); !_ok_ { err = errors.New("golbalbufficon error"); return } }
|
||||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["forbidFloat"].(float64); !_ok_ { err = errors.New("forbidFloat error"); return }; _v.ForbidFloat = int32(_tempNum_) }
|
|
||||||
{ var _ok_ bool; if _v.BuffIcon, _ok_ = _buf["buffIcon"].(string); !_ok_ { err = errors.New("buffIcon error"); return } }
|
{ var _ok_ bool; if _v.BuffIcon, _ok_ = _buf["buffIcon"].(string); !_ok_ { err = errors.New("buffIcon error"); return } }
|
||||||
{ var _ok_ bool; if _v.Buffeffect, _ok_ = _buf["buffeffect"].(string); !_ok_ { err = errors.New("buffeffect error"); return } }
|
{ var _ok_ bool; if _v.Buffeffect, _ok_ = _buf["buffeffect"].(string); !_ok_ { err = errors.New("buffeffect error"); return } }
|
||||||
{ var _ok_ bool; if _v.Buffpos, _ok_ = _buf["buffpos"].(string); !_ok_ { err = errors.New("buffpos error"); return } }
|
{ var _ok_ bool; if _v.Buffpos, _ok_ = _buf["buffpos"].(string); !_ok_ { err = errors.New("buffpos error"); return } }
|
||||||
|
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["forbidFloat"].(float64); !_ok_ { err = errors.New("forbidFloat error"); return }; _v.ForbidFloat = int32(_tempNum_) }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user