狩猎新增英雄经验奖励

This commit is contained in:
meixiongfeng 2023-06-30 17:47:23 +08:00
parent a9a6325ccb
commit a2eb455151
7 changed files with 145 additions and 98 deletions

View File

@ -28,7 +28,7 @@
}
],
"drop": 10001000,
"bossmodel": 53001,
"heroexp": 60,
"boss": [
401003
],
@ -83,7 +83,7 @@
}
],
"drop": 10002000,
"bossmodel": 53001,
"heroexp": 88,
"boss": [
401006
],
@ -143,7 +143,7 @@
}
],
"drop": 10003000,
"bossmodel": 53001,
"heroexp": 120,
"boss": [
401009
],
@ -203,7 +203,7 @@
}
],
"drop": 10004000,
"bossmodel": 53001,
"heroexp": 156,
"boss": [
401012
],
@ -263,7 +263,7 @@
}
],
"drop": 10005000,
"bossmodel": 53001,
"heroexp": 196,
"boss": [
401015
],
@ -323,7 +323,7 @@
}
],
"drop": 10006000,
"bossmodel": 53001,
"heroexp": 240,
"boss": [
401018
],
@ -388,7 +388,7 @@
}
],
"drop": 10007000,
"bossmodel": 53001,
"heroexp": 288,
"boss": [
401021
],
@ -453,7 +453,7 @@
}
],
"drop": 10008000,
"bossmodel": 53001,
"heroexp": 340,
"boss": [
401024
],
@ -518,7 +518,7 @@
}
],
"drop": 10009000,
"bossmodel": 53001,
"heroexp": 450,
"boss": [
401027
],
@ -583,7 +583,7 @@
}
],
"drop": 10010000,
"bossmodel": 53001,
"heroexp": 570,
"boss": [
401030
],
@ -648,7 +648,7 @@
}
],
"drop": 10011000,
"bossmodel": 53001,
"heroexp": 700,
"boss": [
401033
],
@ -713,7 +713,7 @@
}
],
"drop": 10012000,
"bossmodel": 53001,
"heroexp": 800,
"boss": [
401036
],
@ -768,7 +768,7 @@
}
],
"drop": 20001000,
"bossmodel": 51004,
"heroexp": 60,
"boss": [
402003
],
@ -823,7 +823,7 @@
}
],
"drop": 20002000,
"bossmodel": 51004,
"heroexp": 88,
"boss": [
402006
],
@ -883,7 +883,7 @@
}
],
"drop": 20003000,
"bossmodel": 51004,
"heroexp": 120,
"boss": [
402009
],
@ -943,7 +943,7 @@
}
],
"drop": 20004000,
"bossmodel": 51004,
"heroexp": 156,
"boss": [
402012
],
@ -1003,7 +1003,7 @@
}
],
"drop": 20005000,
"bossmodel": 51004,
"heroexp": 196,
"boss": [
402015
],
@ -1063,7 +1063,7 @@
}
],
"drop": 20006000,
"bossmodel": 51004,
"heroexp": 240,
"boss": [
402018
],
@ -1128,7 +1128,7 @@
}
],
"drop": 20007000,
"bossmodel": 51004,
"heroexp": 288,
"boss": [
402021
],
@ -1193,7 +1193,7 @@
}
],
"drop": 20008000,
"bossmodel": 51004,
"heroexp": 340,
"boss": [
402024
],
@ -1258,7 +1258,7 @@
}
],
"drop": 20009000,
"bossmodel": 51004,
"heroexp": 450,
"boss": [
402027
],
@ -1323,7 +1323,7 @@
}
],
"drop": 20010000,
"bossmodel": 51004,
"heroexp": 570,
"boss": [
402030
],
@ -1388,7 +1388,7 @@
}
],
"drop": 20011000,
"bossmodel": 51004,
"heroexp": 700,
"boss": [
402033
],
@ -1453,7 +1453,7 @@
}
],
"drop": 20012000,
"bossmodel": 51004,
"heroexp": 800,
"boss": [
402036
],
@ -1508,7 +1508,7 @@
}
],
"drop": 30001000,
"bossmodel": 51005,
"heroexp": 60,
"boss": [
403003
],
@ -1563,7 +1563,7 @@
}
],
"drop": 30002000,
"bossmodel": 51005,
"heroexp": 88,
"boss": [
403006
],
@ -1623,7 +1623,7 @@
}
],
"drop": 30003000,
"bossmodel": 51005,
"heroexp": 120,
"boss": [
403009
],
@ -1683,7 +1683,7 @@
}
],
"drop": 30004000,
"bossmodel": 51005,
"heroexp": 156,
"boss": [
403012
],
@ -1743,7 +1743,7 @@
}
],
"drop": 30005000,
"bossmodel": 51005,
"heroexp": 196,
"boss": [
403015
],
@ -1803,7 +1803,7 @@
}
],
"drop": 30006000,
"bossmodel": 51005,
"heroexp": 240,
"boss": [
403018
],
@ -1868,7 +1868,7 @@
}
],
"drop": 30007000,
"bossmodel": 51005,
"heroexp": 288,
"boss": [
403021
],
@ -1933,7 +1933,7 @@
}
],
"drop": 30008000,
"bossmodel": 51005,
"heroexp": 340,
"boss": [
403024
],
@ -1998,7 +1998,7 @@
}
],
"drop": 30009000,
"bossmodel": 51005,
"heroexp": 450,
"boss": [
403027
],
@ -2063,7 +2063,7 @@
}
],
"drop": 30010000,
"bossmodel": 51005,
"heroexp": 570,
"boss": [
403030
],
@ -2128,7 +2128,7 @@
}
],
"drop": 30011000,
"bossmodel": 51005,
"heroexp": 700,
"boss": [
403033
],
@ -2193,7 +2193,7 @@
}
],
"drop": 30012000,
"bossmodel": 51005,
"heroexp": 800,
"boss": [
403036
],
@ -2248,7 +2248,7 @@
}
],
"drop": 40001000,
"bossmodel": 51002,
"heroexp": 127,
"boss": [
404003
],
@ -2303,7 +2303,7 @@
}
],
"drop": 40002000,
"bossmodel": 51002,
"heroexp": 128,
"boss": [
404006
],
@ -2363,7 +2363,7 @@
}
],
"drop": 40003000,
"bossmodel": 51002,
"heroexp": 129,
"boss": [
404009
],
@ -2423,7 +2423,7 @@
}
],
"drop": 40004000,
"bossmodel": 51002,
"heroexp": 130,
"boss": [
404012
],
@ -2483,7 +2483,7 @@
}
],
"drop": 40005000,
"bossmodel": 51002,
"heroexp": 131,
"boss": [
404015
],
@ -2543,7 +2543,7 @@
}
],
"drop": 40006000,
"bossmodel": 51002,
"heroexp": 132,
"boss": [
404018
],
@ -2608,7 +2608,7 @@
}
],
"drop": 40007000,
"bossmodel": 51002,
"heroexp": 133,
"boss": [
404021
],
@ -2673,7 +2673,7 @@
}
],
"drop": 40008000,
"bossmodel": 51002,
"heroexp": 134,
"boss": [
404024
],
@ -2738,7 +2738,7 @@
}
],
"drop": 40009000,
"bossmodel": 51002,
"heroexp": 135,
"boss": [
404027
],
@ -2803,7 +2803,7 @@
}
],
"drop": 40010000,
"bossmodel": 51002,
"heroexp": 136,
"boss": [
404030
],
@ -2868,7 +2868,7 @@
}
],
"drop": 40011000,
"bossmodel": 51002,
"heroexp": 137,
"boss": [
404033
],
@ -2933,7 +2933,7 @@
}
],
"drop": 40012000,
"bossmodel": 51002,
"heroexp": 138,
"boss": [
404036
],

View File

@ -5864,7 +5864,7 @@
"decompose_deplete": [],
"decompose_get": [],
"access": [
1128
122
],
"use_skip": 139,
"upper_limit": 0,

View File

@ -36,7 +36,8 @@ type (
CheckTaskCond(session IUserSession, id int32)
CheckMlineCond(session IUserSession, id int32)
CheckFriendCond(session IUserSession, id int32)
// 校验好友数量判断功能是否开启
CheckFriendCond(session IUserSession, num int32)
// 查询opencond 配置
CheckOpenCondCfgById(uid string, id string) (bOpen bool, errdata *pb.ErrorData)
}

View File

@ -33,7 +33,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
oldDifficulty int32 // 记录
consumPs int32
userExp int32
changExp map[string]int32
)
changExp = map[string]int32{}
mapData = make(map[string]interface{}, 0)
reward = make([]*cfg.Gameatn, 0)
if errdata = this.ChallengeOverCheck(session, req); errdata != nil {
@ -139,7 +141,16 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
if errdata, atno = this.module.DispenseAtno(session, res, true); errdata != nil {
return
}
// 加经验
if req.Report != nil && req.Report.Info != nil && len(req.Report.Info.Redflist) > 0 {
for _, v := range req.Report.Info.Redflist[0].Team {
if cfgHunting.Heroexp > 0 && !v.Ishelp { // 助战英雄不加经验
this.module.ModuleHero.AddHeroExp(session, v.Oid, cfgHunting.Heroexp)
changExp[v.HeroID] = cfgHunting.Heroexp
}
}
}
errdata = this.module.ModifyHuntingData(session.GetUserId(), mapData)
userExp, _ = this.module.ModuleUser.ConsumePsAddExp(session, consumPs)
session.SendMsg(string(this.module.GetType()), HuntingChallengeOverResp, &pb.HuntingChallengeOverResp{
@ -147,6 +158,7 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
Asset: atno,
Sell: del,
UserExp: userExp,
Heroexp: changExp,
})
tasks = append(tasks, comm.GetBuriedParam(comm.Rtype80, 1, req.BossType, req.Difficulty))
// 随机任务统计

View File

@ -5,6 +5,7 @@ import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/base"
"go_dreamfactory/lego/core"
"go_dreamfactory/lego/sys/event"
"go_dreamfactory/modules"
"go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
@ -36,6 +37,7 @@ func (this *ModuleSys) OnInstallComp() {
func (this *ModuleSys) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
err = this.ModuleBase.Init(service, module, options)
this.service = service.(base.IRPCXService)
event.Register(comm.EventFriendChange, this.FriendCountChange)
return
}
@ -69,13 +71,13 @@ func (this *ModuleSys) CheckMlineCond(session comm.IUserSession, id int32) {
}
}
func (this *ModuleSys) CheckFriendCond(session comm.IUserSession, id int32) {
if cond := this.configure.getFriendTask(id); len(cond) > 0 {
func (this *ModuleSys) CheckTaskCond(session comm.IUserSession, id int32) {
if cond := this.configure.getOpencondTask(id); len(cond) > 0 {
this.AutoActivate(session, cond)
}
}
func (this *ModuleSys) CheckTaskCond(session comm.IUserSession, num int32) {
if cond := this.configure.getOpencondTask(num); len(cond) > 0 {
func (this *ModuleSys) CheckFriendCond(session comm.IUserSession, num int32) {
if cond := this.configure.getFriendTask(num); len(cond) > 0 {
// 通知本服
ctx, _ := context.WithTimeout(context.Background(), time.Second*5)
_, err := this.service.RpcGo(
@ -156,3 +158,17 @@ func (this *ModuleSys) OpenCond(ctx context.Context, req *pb.RPCFriendNumReq, re
return
}
func (this *ModuleSys) FriendCountChange(uid string, count int32) {
if cond := this.configure.getFriendTask(count); len(cond) > 0 {
if session, ok := this.GetUserSession(uid); ok {
this.AutoActivate(session, cond)
if err := session.Push(); err != nil {
this.Errorln(err)
}
this.PutUserSession(session)
} else {
this.PutUserSession(session)
}
}
}

View File

@ -325,10 +325,11 @@ type HuntingChallengeOverResp struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data *DBHunting `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
Asset []*UserAtno `protobuf:"bytes,2,rep,name=asset,proto3" json:"asset"` // 推送atno
Sell []string `protobuf:"bytes,3,rep,name=sell,proto3" json:"sell"` // 自动出售的装备
UserExp int32 `protobuf:"varint,4,opt,name=userExp,proto3" json:"userExp"`
Data *DBHunting `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
Asset []*UserAtno `protobuf:"bytes,2,rep,name=asset,proto3" json:"asset"` // 推送atno
Sell []string `protobuf:"bytes,3,rep,name=sell,proto3" json:"sell"` // 自动出售的装备
UserExp int32 `protobuf:"varint,4,opt,name=userExp,proto3" json:"userExp"`
Heroexp map[string]int32 `protobuf:"bytes,5,rep,name=heroexp,proto3" json:"heroexp" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 英雄获得经验
}
func (x *HuntingChallengeOverResp) Reset() {
@ -391,6 +392,13 @@ func (x *HuntingChallengeOverResp) GetUserExp() int32 {
return 0
}
func (x *HuntingChallengeOverResp) GetHeroexp() map[string]int32 {
if x != nil {
return x.Heroexp
}
return nil
}
// 购买
type HuntingBuyReq struct {
state protoimpl.MessageState
@ -629,7 +637,7 @@ var file_hunting_hunting_msg_proto_rawDesc = []byte{
0x74, 0x6c, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x52, 0x06, 0x72, 0x65, 0x70, 0x6f, 0x72,
0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52,
0x04, 0x73, 0x74, 0x61, 0x72, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x75, 0x74, 0x6f, 0x18, 0x05, 0x20,
0x01, 0x28, 0x08, 0x52, 0x04, 0x61, 0x75, 0x74, 0x6f, 0x22, 0x89, 0x01, 0x0a, 0x18, 0x48, 0x75,
0x01, 0x28, 0x08, 0x52, 0x04, 0x61, 0x75, 0x74, 0x6f, 0x22, 0x87, 0x02, 0x0a, 0x18, 0x48, 0x75,
0x6e, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76,
0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67,
@ -638,22 +646,30 @@ var file_hunting_hunting_msg_proto_rawDesc = []byte{
0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x18,
0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x73, 0x65, 0x6c, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x75,
0x73, 0x65, 0x72, 0x45, 0x78, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x75, 0x73,
0x65, 0x72, 0x45, 0x78, 0x70, 0x22, 0x25, 0x0a, 0x0d, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67,
0x42, 0x75, 0x79, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x30, 0x0a, 0x0e,
0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e,
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44,
0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x48,
0x0a, 0x12, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73,
0x74, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65,
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x62, 0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65,
0x12, 0x16, 0x0a, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08,
0x52, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x22, 0x3b, 0x0a, 0x13, 0x48, 0x75, 0x6e, 0x74,
0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
0x24, 0x0a, 0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e,
0x2e, 0x44, 0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x05,
0x72, 0x61, 0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
0x65, 0x72, 0x45, 0x78, 0x70, 0x12, 0x40, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70,
0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67,
0x43, 0x68, 0x61, 0x6c, 0x6c, 0x65, 0x6e, 0x67, 0x65, 0x4f, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73,
0x70, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07,
0x68, 0x65, 0x72, 0x6f, 0x65, 0x78, 0x70, 0x1a, 0x3a, 0x0a, 0x0c, 0x48, 0x65, 0x72, 0x6f, 0x65,
0x78, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a,
0x02, 0x38, 0x01, 0x22, 0x25, 0x0a, 0x0d, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x75,
0x79, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20,
0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x30, 0x0a, 0x0e, 0x48, 0x75,
0x6e, 0x74, 0x69, 0x6e, 0x67, 0x42, 0x75, 0x79, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04,
0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x48,
0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x48, 0x0a, 0x12,
0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52,
0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x62, 0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x62, 0x6f, 0x6f, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16,
0x0a, 0x06, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06,
0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x22, 0x3b, 0x0a, 0x13, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e,
0x67, 0x52, 0x61, 0x6e, 0x6b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a,
0x05, 0x72, 0x61, 0x6e, 0x6b, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x44,
0x42, 0x48, 0x75, 0x6e, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x61, 0x6e, 0x6b, 0x52, 0x05, 0x72, 0x61,
0x6e, 0x6b, 0x73, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
@ -668,7 +684,7 @@ func file_hunting_hunting_msg_proto_rawDescGZIP() []byte {
return file_hunting_hunting_msg_proto_rawDescData
}
var file_hunting_hunting_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_hunting_hunting_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_hunting_hunting_msg_proto_goTypes = []interface{}{
(*HuntingGetListReq)(nil), // 0: HuntingGetListReq
(*HuntingGetListResp)(nil), // 1: HuntingGetListResp
@ -680,27 +696,29 @@ var file_hunting_hunting_msg_proto_goTypes = []interface{}{
(*HuntingBuyResp)(nil), // 7: HuntingBuyResp
(*HuntingRankListReq)(nil), // 8: HuntingRankListReq
(*HuntingRankListResp)(nil), // 9: HuntingRankListResp
(*DBHunting)(nil), // 10: DBHunting
(*BattleFormation)(nil), // 11: BattleFormation
(*BattleInfo)(nil), // 12: BattleInfo
(*BattleReport)(nil), // 13: BattleReport
(*UserAtno)(nil), // 14: UserAtno
(*DBHuntingRank)(nil), // 15: DBHuntingRank
nil, // 10: HuntingChallengeOverResp.HeroexpEntry
(*DBHunting)(nil), // 11: DBHunting
(*BattleFormation)(nil), // 12: BattleFormation
(*BattleInfo)(nil), // 13: BattleInfo
(*BattleReport)(nil), // 14: BattleReport
(*UserAtno)(nil), // 15: UserAtno
(*DBHuntingRank)(nil), // 16: DBHuntingRank
}
var file_hunting_hunting_msg_proto_depIdxs = []int32{
10, // 0: HuntingGetListResp.data:type_name -> DBHunting
11, // 1: HuntingChallengeReq.battle:type_name -> BattleFormation
12, // 2: HuntingChallengeResp.info:type_name -> BattleInfo
13, // 3: HuntingChallengeOverReq.report:type_name -> BattleReport
10, // 4: HuntingChallengeOverResp.data:type_name -> DBHunting
14, // 5: HuntingChallengeOverResp.asset:type_name -> UserAtno
10, // 6: HuntingBuyResp.data:type_name -> DBHunting
15, // 7: HuntingRankListResp.ranks:type_name -> DBHuntingRank
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
11, // 0: HuntingGetListResp.data:type_name -> DBHunting
12, // 1: HuntingChallengeReq.battle:type_name -> BattleFormation
13, // 2: HuntingChallengeResp.info:type_name -> BattleInfo
14, // 3: HuntingChallengeOverReq.report:type_name -> BattleReport
11, // 4: HuntingChallengeOverResp.data:type_name -> DBHunting
15, // 5: HuntingChallengeOverResp.asset:type_name -> UserAtno
10, // 6: HuntingChallengeOverResp.heroexp:type_name -> HuntingChallengeOverResp.HeroexpEntry
11, // 7: HuntingBuyResp.data:type_name -> DBHunting
16, // 8: HuntingRankListResp.ranks:type_name -> DBHuntingRank
9, // [9:9] is the sub-list for method output_type
9, // [9:9] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_hunting_hunting_msg_proto_init() }
@ -839,7 +857,7 @@ func file_hunting_hunting_msg_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_hunting_hunting_msg_proto_rawDesc,
NumEnums: 0,
NumMessages: 10,
NumMessages: 11,
NumExtensions: 0,
NumServices: 0,
},

View File

@ -19,7 +19,7 @@ type GameHuntingBossData struct {
Firstprize []*Gameatn
Dropshow []*Gameatn
Drop int32
Bossmodel int32
Heroexp int32
Boss []int32
PsConsume []*Gameatn
PsMg []*Gameatn
@ -67,7 +67,7 @@ func (_v *GameHuntingBossData)Deserialize(_buf map[string]interface{}) (err erro
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["drop"].(float64); !_ok_ { err = errors.New("drop error"); return }; _v.Drop = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["bossmodel"].(float64); !_ok_ { err = errors.New("bossmodel error"); return }; _v.Bossmodel = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["heroexp"].(float64); !_ok_ { err = errors.New("heroexp error"); return }; _v.Heroexp = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool