配置更新

This commit is contained in:
meixiongfeng 2023-09-01 11:30:23 +08:00
parent 3f3a8e6ccc
commit 2935394ebf
12 changed files with 542 additions and 165 deletions

View File

@ -6,11 +6,14 @@
"type": 1,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 1
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 1
}
],
"group": 0
},
{
@ -20,11 +23,14 @@
"type": 3,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 2
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 2
}
],
"group": 10001
},
{
@ -34,11 +40,14 @@
"type": 4,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 3
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 3
}
],
"group": 0
},
{
@ -48,11 +57,14 @@
"type": 1,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 4
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 4
}
],
"group": 0
},
{
@ -62,11 +74,14 @@
"type": 2,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 5
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 5
}
],
"group": 0
},
{
@ -76,11 +91,14 @@
"type": 3,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 6
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 6
}
],
"group": 10002
},
{
@ -90,11 +108,14 @@
"type": 4,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 7
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 7
}
],
"group": 0
},
{
@ -104,11 +125,14 @@
"type": 1,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 8
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 8
}
],
"group": 0
},
{
@ -118,11 +142,14 @@
"type": 2,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 9
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 9
}
],
"group": 0
},
{
@ -132,11 +159,14 @@
"type": 4,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 10
},
"cd": 0,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 10
}
],
"group": 0
},
{
@ -146,11 +176,14 @@
"type": 5,
"exp": 10,
"time": 2,
"deplete": {
"a": "attr",
"t": "gold",
"n": 11
},
"cd": 7200,
"deplete": [
{
"a": "attr",
"t": "gold",
"n": 11
}
],
"group": 0
}
]

View File

@ -842,6 +842,7 @@
"a": "attr",
"t": "diamond",
"n": 200
}
},
"dragon_interaction": 15
}
]

View File

@ -15771,7 +15771,7 @@
"id": "17060009",
"name": {
"key": "item_item_name_320",
"text": "5星守护者自选箱碎片"
"text": "5星3系守护者自选箱碎片"
},
"usetype": 4,
"color": 4,
@ -15782,7 +15782,7 @@
"reddottype": 0,
"effects": "",
"modelName": "",
"box_id": 0,
"box_id": 22000007,
"synthetize_num": 0,
"synthetize_deplete": [],
"synthetize_get": [],

View File

@ -46438,5 +46438,245 @@
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1936,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11015002",
"n": 1
},
"itemdes": "15002",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1937,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11015003",
"n": 1
},
"itemdes": "15003",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1938,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11015004",
"n": 1
},
"itemdes": "15004",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1939,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11025001",
"n": 1
},
"itemdes": "25001",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1940,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11025004",
"n": 1
},
"itemdes": "25004",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1941,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11035001",
"n": 1
},
"itemdes": "35001",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1942,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11035002",
"n": 1
},
"itemdes": "35002",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1943,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11035004",
"n": 1
},
"itemdes": "35004",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1944,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11035005",
"n": 1
},
"itemdes": "35005",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
},
{
"id": 1945,
"lotteryid": 22000007,
"description": "5星3系守护者自选箱碎片",
"type": 3,
"groupwt": 1,
"groupid": 1,
"subtype": 1,
"groupnum": 1,
"itemid": {
"a": "item",
"t": "11035006",
"n": 1
},
"itemdes": "35006",
"itemwt": 1000,
"min": 1,
"max": 1,
"VIPmin": 0,
"VIPmax": 15,
"playerlvmin": 0,
"playerlvmax": 0,
"notice": 0
}
]

View File

@ -103,7 +103,8 @@
13004,
13005,
13006,
13007
13007,
13008
]
},
{
@ -127,7 +128,9 @@
14003,
14004,
14005,
14006
14006,
14007,
14008
]
},
{

View File

@ -24306,7 +24306,7 @@
{
"a": "item",
"t": "17060009",
"n": 5
"n": 4
}
],
"preview": false,
@ -24377,8 +24377,8 @@
"iteminfo": [
{
"a": "item",
"t": "10000001",
"n": 5
"t": "10000034",
"n": 3
}
],
"preview": false,
@ -24413,7 +24413,7 @@
"iteminfo": [
{
"a": "item",
"t": "10000001",
"t": "10000021",
"n": 1
}
],
@ -24449,7 +24449,79 @@
"iteminfo": [
{
"a": "item",
"t": "10000013",
"t": "10000022",
"n": 1
}
],
"preview": false,
"probability": 1000,
"need": [
{
"a": "attr",
"t": "guildcoin",
"n": 250
}
],
"sale": 1000,
"salelist": [
1000,
1000,
1000,
1000,
1000,
1000
],
"buyminnum": 5,
"buymaxnum": 5,
"vip": 0,
"lvmin": 1,
"lvmax": 60,
"mapidmin": 101,
"mapidmax": 9999
},
{
"key": 697,
"id": 14006,
"iteminfo": [
{
"a": "item",
"t": "10000023",
"n": 1
}
],
"preview": false,
"probability": 1000,
"need": [
{
"a": "attr",
"t": "guildcoin",
"n": 250
}
],
"sale": 1000,
"salelist": [
1000,
1000,
1000,
1000,
1000,
1000
],
"buyminnum": 5,
"buymaxnum": 5,
"vip": 0,
"lvmin": 1,
"lvmax": 60,
"mapidmin": 101,
"mapidmax": 9999
},
{
"key": 698,
"id": 14007,
"iteminfo": [
{
"a": "item",
"t": "10000011",
"n": 1
}
],
@ -24480,8 +24552,8 @@
"mapidmax": 9999
},
{
"key": 697,
"id": 14006,
"key": 699,
"id": 14008,
"iteminfo": [
{
"a": "item",
@ -24516,7 +24588,7 @@
"mapidmax": 9999
},
{
"key": 698,
"key": 700,
"id": 15001,
"iteminfo": [
{
@ -24552,7 +24624,7 @@
"mapidmax": 9999
},
{
"key": 699,
"key": 701,
"id": 15001,
"iteminfo": [
{
@ -24588,7 +24660,7 @@
"mapidmax": 9999
},
{
"key": 700,
"key": 702,
"id": 15001,
"iteminfo": [
{
@ -24624,7 +24696,7 @@
"mapidmax": 9999
},
{
"key": 701,
"key": 703,
"id": 15002,
"iteminfo": [
{
@ -24660,84 +24732,12 @@
"mapidmax": 9999
},
{
"key": 702,
"key": 704,
"id": 15003,
"iteminfo": [
{
"a": "item",
"t": "10000001",
"n": 1
}
],
"preview": false,
"probability": 1000,
"need": [
{
"a": "attr",
"t": "moongold",
"n": 250
}
],
"sale": 800,
"salelist": [
800,
800,
800,
800,
800,
800
],
"buyminnum": 3,
"buymaxnum": 3,
"vip": 0,
"lvmin": 1,
"lvmax": 60,
"mapidmin": 101,
"mapidmax": 9999
},
{
"key": 703,
"id": 15004,
"iteminfo": [
{
"a": "item",
"t": "10000001",
"n": 1
}
],
"preview": false,
"probability": 1000,
"need": [
{
"a": "attr",
"t": "moongold",
"n": 250
}
],
"sale": 800,
"salelist": [
800,
800,
800,
800,
800,
800
],
"buyminnum": 3,
"buymaxnum": 3,
"vip": 0,
"lvmin": 1,
"lvmax": 60,
"mapidmin": 101,
"mapidmax": 9999
},
{
"key": 704,
"id": 15005,
"iteminfo": [
{
"a": "item",
"t": "10000001",
"t": "10000021",
"n": 1
}
],
@ -24769,6 +24769,78 @@
},
{
"key": 705,
"id": 15004,
"iteminfo": [
{
"a": "item",
"t": "10000022",
"n": 1
}
],
"preview": false,
"probability": 1000,
"need": [
{
"a": "attr",
"t": "moongold",
"n": 250
}
],
"sale": 800,
"salelist": [
800,
800,
800,
800,
800,
800
],
"buyminnum": 3,
"buymaxnum": 3,
"vip": 0,
"lvmin": 1,
"lvmax": 60,
"mapidmin": 101,
"mapidmax": 9999
},
{
"key": 706,
"id": 15005,
"iteminfo": [
{
"a": "item",
"t": "10000023",
"n": 1
}
],
"preview": false,
"probability": 1000,
"need": [
{
"a": "attr",
"t": "moongold",
"n": 250
}
],
"sale": 800,
"salelist": [
800,
800,
800,
800,
800,
800
],
"buyminnum": 3,
"buymaxnum": 3,
"vip": 0,
"lvmin": 1,
"lvmax": 60,
"mapidmin": 101,
"mapidmax": 9999
},
{
"key": 707,
"id": 15006,
"iteminfo": [
{
@ -24804,7 +24876,7 @@
"mapidmax": 9999
},
{
"key": 706,
"key": 708,
"id": 15007,
"iteminfo": [
{
@ -24840,7 +24912,7 @@
"mapidmax": 9999
},
{
"key": 707,
"key": 709,
"id": 15008,
"iteminfo": [
{
@ -24876,12 +24948,12 @@
"mapidmax": 9999
},
{
"key": 708,
"key": 710,
"id": 15009,
"iteminfo": [
{
"a": "item",
"t": "10000013",
"t": "10000011",
"n": 1
}
],
@ -24912,7 +24984,7 @@
"mapidmax": 9999
},
{
"key": 709,
"key": 711,
"id": 13001,
"iteminfo": [
{
@ -24948,7 +25020,7 @@
"mapidmax": 9999
},
{
"key": 710,
"key": 712,
"id": 13002,
"iteminfo": [
{
@ -24984,7 +25056,7 @@
"mapidmax": 9999
},
{
"key": 711,
"key": 713,
"id": 13003,
"iteminfo": [
{
@ -25020,7 +25092,7 @@
"mapidmax": 9999
},
{
"key": 712,
"key": 714,
"id": 13004,
"iteminfo": [
{
@ -25056,7 +25128,7 @@
"mapidmax": 9999
},
{
"key": 713,
"key": 715,
"id": 13005,
"iteminfo": [
{
@ -25092,7 +25164,7 @@
"mapidmax": 9999
},
{
"key": 714,
"key": 716,
"id": 13006,
"iteminfo": [
{
@ -25128,7 +25200,7 @@
"mapidmax": 9999
},
{
"key": 715,
"key": 717,
"id": 13007,
"iteminfo": [
{
@ -25164,7 +25236,7 @@
"mapidmax": 9999
},
{
"key": 716,
"key": 718,
"id": 13008,
"iteminfo": [
{

View File

@ -652,5 +652,7 @@ type (
GetDragonList(uid string) (dragon []*pb.DBDragon, err error)
// 创建坐骑
CreateDragon(session IUserSession, dragons map[string]int32, bPush bool) (errdata *pb.ErrorData)
// 机器人 坐骑
CreateRobotDragon(dragonid string, lv int32) (dragon *pb.DBDragon, err error)
}
)

View File

@ -19,9 +19,9 @@ func (this *apiComp) TrainCheck(session comm.IUserSession, req *pb.DragonTrainRe
func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (errdata *pb.ErrorData) {
var (
err error
dragon *pb.DBDragon
addExp int32 // 获得的训练值
err error
dragon *pb.DBDragon
//addExp int32 // 获得的训练值
playConf *cfg.GameDragonPlayData
update map[string]interface{}
)
@ -40,9 +40,9 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e
}
if conf, err := this.module.configure.GetDragonConfById(dragon.Dragonid, dragon.Lv); err == nil {
if playConf, err = this.module.configure.GetDragonPlayConfById(dragon.Dragonid, conf.Type, req.Ttype); err == nil {
addExp = playConf.Exp
//addExp = playConf.Exp
// 校验消耗
if errdata = this.module.CheckRes(session, []*cfg.Gameatn{playConf.Deplete}); errdata != nil {
if errdata = this.module.CheckRes(session, playConf.Deplete); errdata != nil {
return
}
} else {
@ -65,7 +65,7 @@ func (this *apiComp) Train(session comm.IUserSession, req *pb.DragonTrainReq) (e
dragon.Exp += conf.Exp
break
}
}else{
} else {
break
}
}

View File

@ -167,3 +167,8 @@ func (this *ModelDragon) GetDragonByOid(uid string, oid string) (dragon *pb.DBDr
}
return
}
func (this *ModelDragon) CreateAiDragon(dragonid string, lv int32) (dragon *pb.DBDragon, err error) {
return
}

View File

@ -54,3 +54,7 @@ func (this *Dragon) GetDragonList(uid string) (list []*pb.DBDragon, err error) {
func (this *Dragon) CreateDragon(session comm.IUserSession, dragons map[string]int32, bPush bool) (errdata *pb.ErrorData) {
return this.modelDragon.CreateDragon(session, dragons)
}
func (this *Dragon) CreateRobotDragon(dragonid string, lv int32) (dragon *pb.DBDragon, err error) {
return this.modelDragon.CreateAiDragon(dragonid, lv)
}

View File

@ -17,7 +17,8 @@ type GameDragonPlayData struct {
Type int32
Exp int32
Time int32
Deplete *Gameatn
Cd int32
Deplete []*Gameatn
Group int32
}
@ -34,7 +35,21 @@ func (_v *GameDragonPlayData)Deserialize(_buf map[string]interface{}) (err error
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type"].(float64); !_ok_ { err = errors.New("type error"); return }; _v.Type = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["exp"].(float64); !_ok_ { err = errors.New("exp error"); return }; _v.Exp = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["time"].(float64); !_ok_ { err = errors.New("time error"); return }; _v.Time = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["deplete"].(map[string]interface{}); !_ok_ { err = errors.New("deplete error"); return }; if _v.Deplete, err = DeserializeGameatn(_x_); err != nil { return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["cd"].(float64); !_ok_ { err = errors.New("cd error"); return }; _v.Cd = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["deplete"].([]interface{}); !_ok_ { err = errors.New("deplete error"); return }
_v.Deplete = make([]*Gameatn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatn
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } }
_v.Deplete = append(_v.Deplete, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["group"].(float64); !_ok_ { err = errors.New("group error"); return }; _v.Group = int32(_tempNum_) }
return
}

View File

@ -280,6 +280,7 @@ type GameGlobalData struct {
StonehengeKeyItemId string
PsBuyGroup int32
ChangeName *Gameatn
DragonInteraction int32
}
const TypeId_GameGlobalData = 477542761
@ -1117,6 +1118,7 @@ func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; if _v.StonehengeKeyItemId, _ok_ = _buf["stonehenge_KeyItemId"].(string); !_ok_ { err = errors.New("stonehenge_KeyItemId error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["ps_buyGroup"].(float64); !_ok_ { err = errors.New("ps_buyGroup error"); return }; _v.PsBuyGroup = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["change_name"].(map[string]interface{}); !_ok_ { err = errors.New("change_name error"); return }; if _v.ChangeName, err = DeserializeGameatn(_x_); err != nil { return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["dragon_interaction"].(float64); !_ok_ { err = errors.New("dragon_interaction error"); return }; _v.DragonInteraction = int32(_tempNum_) }
return
}