Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
59a355bf29
@ -17683,15 +17683,15 @@
|
||||
"type_sp": 1,
|
||||
"tasktxt": {
|
||||
"key": "buried_buried_condi_tasktxt_756",
|
||||
"text": "维京远征冰霜泰坦难度1"
|
||||
"text": "维京远征火焰泰坦难度2"
|
||||
},
|
||||
"type": 73,
|
||||
"valid": 0,
|
||||
"NPC": 10314,
|
||||
"value": 1,
|
||||
"filter": [
|
||||
2,
|
||||
1
|
||||
1,
|
||||
2
|
||||
],
|
||||
"filter2": [
|
||||
"boss类型",
|
||||
@ -17923,15 +17923,15 @@
|
||||
"type_sp": 1,
|
||||
"tasktxt": {
|
||||
"key": "buried_buried_condi_tasktxt_766",
|
||||
"text": "维京远征boss3难度1"
|
||||
"text": "维京远征火焰泰坦难度3"
|
||||
},
|
||||
"type": 73,
|
||||
"valid": 0,
|
||||
"NPC": 10404,
|
||||
"value": 1,
|
||||
"filter": [
|
||||
3,
|
||||
1
|
||||
1,
|
||||
3
|
||||
],
|
||||
"filter2": [
|
||||
"boss类型",
|
||||
|
@ -27,8 +27,7 @@
|
||||
"color": 2,
|
||||
"effects": "",
|
||||
"access": [
|
||||
158,
|
||||
165
|
||||
158
|
||||
],
|
||||
"img": "attr_diamond",
|
||||
"intr": {
|
||||
|
@ -95,7 +95,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "ps",
|
||||
"n": 100
|
||||
"n": 50
|
||||
}
|
||||
],
|
||||
"access": [
|
||||
|
@ -224,11 +224,11 @@
|
||||
"id": 165,
|
||||
"title": {
|
||||
"key": "itemlink_itemlink_title_14",
|
||||
"text": "前往vip"
|
||||
"text": "前往会员"
|
||||
},
|
||||
"desc": {
|
||||
"key": "itemlink_itemlink_desc_14",
|
||||
"text": "提升vip等级可获得"
|
||||
"text": "提升会员等级可获得"
|
||||
},
|
||||
"jumpid": 165,
|
||||
"btnTitle": {
|
||||
@ -258,7 +258,7 @@
|
||||
"id": 10005,
|
||||
"title": {
|
||||
"key": "itemlink_itemlink_title_16",
|
||||
"text": "经验副本"
|
||||
"text": "前往经验副本"
|
||||
},
|
||||
"desc": {
|
||||
"key": "itemlink_itemlink_desc_16",
|
||||
@ -275,7 +275,7 @@
|
||||
"id": 702,
|
||||
"title": {
|
||||
"key": "itemlink_itemlink_title_17",
|
||||
"text": "烹饪"
|
||||
"text": "前往烹饪"
|
||||
},
|
||||
"desc": {
|
||||
"key": "itemlink_itemlink_desc_17",
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -3007,7 +3007,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 1,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3038,7 +3038,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 2,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3069,7 +3069,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 3,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3100,7 +3100,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 4,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3131,7 +3131,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 5,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3173,7 +3173,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 6,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3204,7 +3204,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 7,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3235,7 +3235,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 8,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3266,7 +3266,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 9,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
@ -3297,7 +3297,7 @@
|
||||
"Level_type": 1,
|
||||
"layer_num": 10,
|
||||
"tab": 10,
|
||||
"tabIcon": "xmwg_fb_rk4",
|
||||
"tabIcon": "xmwg_fb_rk3",
|
||||
"tabTitle": {
|
||||
"key": "pagoda10",
|
||||
"text": "功夫宗师"
|
||||
|
@ -26,7 +26,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 30
|
||||
"n": 120
|
||||
}
|
||||
],
|
||||
"channel": "0",
|
||||
@ -61,7 +61,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 150
|
||||
"n": 600
|
||||
}
|
||||
],
|
||||
"channel": "0",
|
||||
@ -96,7 +96,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 340
|
||||
"n": 1360
|
||||
}
|
||||
],
|
||||
"channel": "0",
|
||||
@ -131,7 +131,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 490
|
||||
"n": 1960
|
||||
}
|
||||
],
|
||||
"channel": "0",
|
||||
@ -166,7 +166,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 640
|
||||
"n": 2560
|
||||
}
|
||||
],
|
||||
"channel": "0",
|
||||
@ -201,7 +201,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 990
|
||||
"n": 3960
|
||||
}
|
||||
],
|
||||
"channel": "0",
|
||||
@ -236,7 +236,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 1640
|
||||
"n": 6560
|
||||
}
|
||||
],
|
||||
"channel": "0",
|
||||
@ -271,7 +271,7 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 3240
|
||||
"n": 12960
|
||||
}
|
||||
],
|
||||
"channel": "0",
|
||||
@ -290,25 +290,9 @@
|
||||
"a": "attr",
|
||||
"t": "vipexp",
|
||||
"n": 60
|
||||
},
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 60
|
||||
}
|
||||
],
|
||||
"diamond_num_double": [
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "vipexp",
|
||||
"n": 60
|
||||
},
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "diamond",
|
||||
"n": 30
|
||||
}
|
||||
],
|
||||
"diamond_num_double": [],
|
||||
"channel": "0",
|
||||
"text": "0",
|
||||
"show": "6元",
|
||||
|
@ -23981,7 +23981,7 @@
|
||||
"iteminfo": [
|
||||
{
|
||||
"a": "item",
|
||||
"t": "10000004",
|
||||
"t": "10000008",
|
||||
"n": 1
|
||||
}
|
||||
],
|
||||
@ -24017,7 +24017,7 @@
|
||||
"iteminfo": [
|
||||
{
|
||||
"a": "item",
|
||||
"t": "10000005",
|
||||
"t": "10000009",
|
||||
"n": 1
|
||||
}
|
||||
],
|
||||
@ -24053,7 +24053,7 @@
|
||||
"iteminfo": [
|
||||
{
|
||||
"a": "item",
|
||||
"t": "10000006",
|
||||
"t": "10000010",
|
||||
"n": 1
|
||||
}
|
||||
],
|
||||
@ -25385,7 +25385,7 @@
|
||||
"iteminfo": [
|
||||
{
|
||||
"a": "item",
|
||||
"t": "10000008",
|
||||
"t": "10000004",
|
||||
"n": 1
|
||||
}
|
||||
],
|
||||
@ -25395,17 +25395,17 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "arenacoin",
|
||||
"n": 6000
|
||||
"n": 150
|
||||
}
|
||||
],
|
||||
"sale": 200,
|
||||
"salelist": [
|
||||
200,
|
||||
200,
|
||||
200,
|
||||
200,
|
||||
200,
|
||||
200
|
||||
500,
|
||||
500,
|
||||
500,
|
||||
500,
|
||||
500,
|
||||
500
|
||||
],
|
||||
"buyminnum": 1,
|
||||
"buymaxnum": 1,
|
||||
@ -25421,7 +25421,7 @@
|
||||
"iteminfo": [
|
||||
{
|
||||
"a": "item",
|
||||
"t": "10000009",
|
||||
"t": "10000005",
|
||||
"n": 1
|
||||
}
|
||||
],
|
||||
@ -25457,7 +25457,7 @@
|
||||
"iteminfo": [
|
||||
{
|
||||
"a": "item",
|
||||
"t": "10000010",
|
||||
"t": "10000006",
|
||||
"n": 1
|
||||
}
|
||||
],
|
||||
@ -25467,17 +25467,17 @@
|
||||
{
|
||||
"a": "attr",
|
||||
"t": "arenacoin",
|
||||
"n": 150
|
||||
"n": 6000
|
||||
}
|
||||
],
|
||||
"sale": 500,
|
||||
"salelist": [
|
||||
500,
|
||||
500,
|
||||
500,
|
||||
500,
|
||||
500,
|
||||
500
|
||||
200,
|
||||
200,
|
||||
200,
|
||||
200,
|
||||
200,
|
||||
200
|
||||
],
|
||||
"buyminnum": 5,
|
||||
"buymaxnum": 5,
|
||||
|
@ -1924,15 +1924,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_50",
|
||||
"text": "冒险3-4通关"
|
||||
"text": "冒险5-4通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_50",
|
||||
"text": "冒险3-4通关"
|
||||
"text": "冒险5-4通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_50",
|
||||
"text": "冒险3-4通关"
|
||||
"text": "冒险5-4通关"
|
||||
},
|
||||
"npc": 10480,
|
||||
"completetask": [
|
||||
@ -1996,15 +1996,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_52",
|
||||
"text": "冒险3-8通关"
|
||||
"text": "冒险5-8通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_52",
|
||||
"text": "冒险3-8通关"
|
||||
"text": "冒险5-8通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_52",
|
||||
"text": "冒险3-8通关"
|
||||
"text": "冒险5-8通关"
|
||||
},
|
||||
"npc": 10500,
|
||||
"completetask": [
|
||||
@ -2474,15 +2474,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_65",
|
||||
"text": "冒险4-8通关"
|
||||
"text": "冒险6-8通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_65",
|
||||
"text": "冒险4-8通关"
|
||||
"text": "冒险6-8通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_65",
|
||||
"text": "冒险4-8通关"
|
||||
"text": "冒险6-8通关"
|
||||
},
|
||||
"npc": 10630,
|
||||
"completetask": [
|
||||
@ -2664,15 +2664,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_70",
|
||||
"text": "冒险5-8通关"
|
||||
"text": "冒险7-8通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_70",
|
||||
"text": "冒险5-8通关"
|
||||
"text": "冒险7-8通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_70",
|
||||
"text": "冒险5-8通关"
|
||||
"text": "冒险7-8通关"
|
||||
},
|
||||
"npc": 10680,
|
||||
"completetask": [
|
||||
@ -2993,15 +2993,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_79",
|
||||
"text": "冒险6-6通关"
|
||||
"text": "冒险8-8通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_79",
|
||||
"text": "冒险6-6通关"
|
||||
"text": "冒险8-8通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_79",
|
||||
"text": "冒险6-6通关"
|
||||
"text": "冒险8-8通关"
|
||||
},
|
||||
"npc": 10770,
|
||||
"completetask": [
|
||||
@ -3178,15 +3178,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_84",
|
||||
"text": "冒险7-6通关"
|
||||
"text": "冒险9-8通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_84",
|
||||
"text": "冒险7-6通关"
|
||||
"text": "冒险9-8通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_84",
|
||||
"text": "冒险7-6通关"
|
||||
"text": "冒险9-8通关"
|
||||
},
|
||||
"npc": 10820,
|
||||
"completetask": [
|
||||
@ -3296,15 +3296,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_87",
|
||||
"text": "冒险8-6通关"
|
||||
"text": "冒险10-8通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_87",
|
||||
"text": "冒险8-6通关"
|
||||
"text": "冒险10-8通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_87",
|
||||
"text": "冒险8-6通关"
|
||||
"text": "冒险10-8通关"
|
||||
},
|
||||
"npc": 10850,
|
||||
"completetask": [
|
||||
@ -3409,15 +3409,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_90",
|
||||
"text": "冒险9-6通关"
|
||||
"text": "冒险11-8通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_90",
|
||||
"text": "冒险9-6通关"
|
||||
"text": "冒险11-8通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_90",
|
||||
"text": "冒险9-6通关"
|
||||
"text": "冒险11-8通关"
|
||||
},
|
||||
"npc": 10880,
|
||||
"completetask": [
|
||||
@ -3486,15 +3486,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_92",
|
||||
"text": "冒险10-6通关"
|
||||
"text": "冒险12-3通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_92",
|
||||
"text": "冒险10-6通关"
|
||||
"text": "冒险12-3通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_92",
|
||||
"text": "冒险10-6通关"
|
||||
"text": "冒险12-3通关"
|
||||
},
|
||||
"npc": 10900,
|
||||
"completetask": [
|
||||
@ -3594,15 +3594,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_95",
|
||||
"text": "冒险11-6通关"
|
||||
"text": "冒险12-6通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_95",
|
||||
"text": "冒险11-6通关"
|
||||
"text": "冒险12-6通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_95",
|
||||
"text": "冒险11-6通关"
|
||||
"text": "冒险12-6通关"
|
||||
},
|
||||
"npc": 10930,
|
||||
"completetask": [
|
||||
@ -3666,15 +3666,15 @@
|
||||
"icon": "",
|
||||
"task_name": {
|
||||
"key": "worldtask_world_task_task_name_97",
|
||||
"text": "冒险12-6通关"
|
||||
"text": "冒险12-8通关"
|
||||
},
|
||||
"task_details": {
|
||||
"key": "worldtask_world_task_task_details_97",
|
||||
"text": "冒险12-6通关"
|
||||
"text": "冒险12-8通关"
|
||||
},
|
||||
"npctxt": {
|
||||
"key": "worldtask_world_task_npctxt_97",
|
||||
"text": "冒险12-6通关"
|
||||
"text": "冒险12-8通关"
|
||||
},
|
||||
"npc": 10950,
|
||||
"completetask": [
|
||||
|
@ -820,35 +820,34 @@ func (this *ModelHero) createHero(session comm.IUserSession, heroCfgId string, c
|
||||
O: hero.Id,
|
||||
})
|
||||
}
|
||||
res := make([]*cfg.Gameatn, 0)
|
||||
rst, err := this.module.ModuleUser.GetUserExpand(session.GetUserId())
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if rst.Expitem == nil {
|
||||
rst.Expitem = make(map[string]int32)
|
||||
}
|
||||
if rst.Herofrag == nil {
|
||||
rst.Herofrag = make(map[string]int32)
|
||||
}
|
||||
bChange := false
|
||||
// 转碎片处理
|
||||
for i := 0; int32(i) < count; i++ {
|
||||
bAdd := false
|
||||
//守护之星 获得
|
||||
if heroCfg.Herofragnum > 0 {
|
||||
if v, ok := rst.Herofrag[hero.HeroID]; !ok {
|
||||
rst.Herofrag[hero.HeroID] = 1
|
||||
bAdd = true
|
||||
bChange = true
|
||||
} else if heroCfg.Herofragnum > v {
|
||||
rst.Herofrag[hero.HeroID] += 1
|
||||
bAdd = true
|
||||
bChange = true
|
||||
}
|
||||
}
|
||||
if bAdd {
|
||||
|
||||
// 转碎片处理
|
||||
if count > 0 {
|
||||
res := make([]*cfg.Gameatn, 0)
|
||||
|
||||
// 如果技能是满级 则转成其他道具
|
||||
if this.checkHeroAllSkillMax(hero) {
|
||||
list := this.module.ModuleTools.GetGlobalConf().Moonshopmoney
|
||||
if list != nil {
|
||||
|
||||
for pos, v := range list {
|
||||
if int32(pos)+3 == heroCfg.Star && v > 0 {
|
||||
res = append(res, &cfg.Gameatn{
|
||||
A: "attr",
|
||||
T: "moongold",
|
||||
N: v * count,
|
||||
})
|
||||
atno = append(atno, &pb.UserAtno{
|
||||
A: "attr",
|
||||
T: "moongold",
|
||||
N: v * count,
|
||||
})
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for i := 0; i < int(count); i++ {
|
||||
res = append(res, heroCfg.Herofrag...)
|
||||
for _, v := range heroCfg.Herofrag {
|
||||
atno = append(atno, &pb.UserAtno{
|
||||
@ -857,42 +856,29 @@ func (this *ModelHero) createHero(session comm.IUserSession, heroCfgId string, c
|
||||
N: v.N,
|
||||
})
|
||||
}
|
||||
} else {
|
||||
list := this.module.ModuleTools.GetGlobalConf().Moonshopmoney
|
||||
if list != nil {
|
||||
for pos, v := range list {
|
||||
if int32(pos)+3 == heroCfg.Star && v > 0 {
|
||||
res = append(res, &cfg.Gameatn{
|
||||
A: "attr",
|
||||
T: "moongold",
|
||||
N: v,
|
||||
})
|
||||
atno = append(atno, &pb.UserAtno{
|
||||
A: "attr",
|
||||
T: "moongold",
|
||||
N: v,
|
||||
})
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
bAdd = false // 初始化
|
||||
|
||||
// expitem 获得
|
||||
if rst, err := this.module.ModuleUser.GetUserExpand(session.GetUserId()); err == nil { // 统计主线进度
|
||||
_mp := rst.Expitem
|
||||
bAdd := false
|
||||
if heroCfg.Expitemnum > 0 {
|
||||
if v, ok := rst.Expitem[hero.HeroID]; ok {
|
||||
if v, ok := _mp[hero.HeroID]; ok {
|
||||
if heroCfg.Expitemnum > v {
|
||||
rst.Expitem[hero.HeroID] += 1
|
||||
_mp[hero.HeroID] += 1
|
||||
bAdd = true
|
||||
bChange = true
|
||||
}
|
||||
} else {
|
||||
rst.Expitem[hero.HeroID] = 1
|
||||
_mp[hero.HeroID] = 1
|
||||
bAdd = true
|
||||
bChange = true
|
||||
}
|
||||
}
|
||||
if bAdd {
|
||||
this.module.ModuleUser.ChangeUserExpand(session.GetUserId(), map[string]interface{}{
|
||||
"expitem": _mp,
|
||||
})
|
||||
for i := 0; i < int(count); i++ {
|
||||
res = append(res, heroCfg.Expitem...)
|
||||
for _, v := range heroCfg.Expitem {
|
||||
atno = append(atno, &pb.UserAtno{
|
||||
@ -901,19 +887,13 @@ func (this *ModelHero) createHero(session comm.IUserSession, heroCfgId string, c
|
||||
N: v.N,
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
if bChange {
|
||||
this.module.ModuleUser.ChangeUserExpand(session.GetUserId(), map[string]interface{}{
|
||||
"herofrag": rst.Herofrag,
|
||||
"expitem": rst.Expitem,
|
||||
})
|
||||
}
|
||||
if len(res) > 0 { // 资源统一发放
|
||||
this.module.DispenseRes(session, res, true)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -54,7 +54,6 @@ func (this *ModelExpand) GetUserExpand(uid string) (result *pb.DBUserExpand, err
|
||||
"mline": make(map[string]int32, 0),
|
||||
"race": make(map[string]int32, 0),
|
||||
"givetime": configure.Now().Unix(),
|
||||
"herofrag": make(map[string]int32, 0), // 初始化
|
||||
}
|
||||
result.SociatyTicket = globalConf.GuildBossInitialNum
|
||||
if err = this.module.modelExpand.ChangeUserExpand(uid, initUpdate); err != nil {
|
||||
|
@ -59,7 +59,6 @@ type DBUserExpand struct {
|
||||
SuiteId []int32 `protobuf:"varint,35,rep,packed,name=suiteId,proto3" json:"suiteId" bson:"suiteId"` // 套装Id
|
||||
Globalbuff int32 `protobuf:"varint,36,opt,name=globalbuff,proto3" json:"globalbuff" bson:"globalbuff"` // 全局buff
|
||||
Race map[int32]int32 `protobuf:"bytes,37,rep,name=race,proto3" json:"race" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // key 阵营ID 1~4 value 总好感度
|
||||
Herofrag map[string]int32 `protobuf:"bytes,38,rep,name=herofrag,proto3" json:"herofrag" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //当获得重复守护者时获得的守护之心次数
|
||||
}
|
||||
|
||||
func (x *DBUserExpand) Reset() {
|
||||
@ -325,18 +324,11 @@ func (x *DBUserExpand) GetRace() map[int32]int32 {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *DBUserExpand) GetHerofrag() map[string]int32 {
|
||||
if x != nil {
|
||||
return x.Herofrag
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_userexpand_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_userexpand_proto_rawDesc = []byte{
|
||||
0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x22, 0x88, 0x0c, 0x0a, 0x0c, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70,
|
||||
0x74, 0x6f, 0x22, 0x92, 0x0b, 0x0a, 0x0c, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70,
|
||||
0x61, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
||||
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x72, 0x65, 0x61,
|
||||
@ -414,26 +406,19 @@ var file_userexpand_proto_rawDesc = []byte{
|
||||
0x0a, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x62, 0x75, 0x66, 0x66, 0x12, 0x2b, 0x0a, 0x04, 0x72,
|
||||
0x61, 0x63, 0x65, 0x18, 0x25, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x44, 0x42, 0x55, 0x73,
|
||||
0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x74,
|
||||
0x72, 0x79, 0x52, 0x04, 0x72, 0x61, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x68, 0x65, 0x72, 0x6f,
|
||||
0x66, 0x72, 0x61, 0x67, 0x18, 0x26, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x44, 0x42, 0x55,
|
||||
0x73, 0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x66, 0x72,
|
||||
0x61, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x68, 0x65, 0x72, 0x6f, 0x66, 0x72, 0x61,
|
||||
0x67, 0x1a, 0x3a, 0x0a, 0x0c, 0x45, 0x78, 0x70, 0x69, 0x74, 0x65, 0x6d, 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, 0x1a, 0x38, 0x0a,
|
||||
0x0a, 0x4d, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||
0x72, 0x79, 0x52, 0x04, 0x72, 0x61, 0x63, 0x65, 0x1a, 0x3a, 0x0a, 0x0c, 0x45, 0x78, 0x70, 0x69,
|
||||
0x74, 0x65, 0x6d, 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, 0x1a, 0x38, 0x0a, 0x0a, 0x4d, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x6e, 0x74,
|
||||
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 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, 0x1a, 0x37,
|
||||
0x0a, 0x09, 0x52, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
|
||||
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 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, 0x1a, 0x37, 0x0a, 0x09, 0x52, 0x61, 0x63, 0x65, 0x45,
|
||||
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x05, 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,
|
||||
0x1a, 0x3b, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x66, 0x72, 0x61, 0x67, 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, 0x42, 0x06, 0x5a,
|
||||
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
|
||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
|
||||
var (
|
||||
@ -448,24 +433,22 @@ func file_userexpand_proto_rawDescGZIP() []byte {
|
||||
return file_userexpand_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_userexpand_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_userexpand_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_userexpand_proto_goTypes = []interface{}{
|
||||
(*DBUserExpand)(nil), // 0: DBUserExpand
|
||||
nil, // 1: DBUserExpand.ExpitemEntry
|
||||
nil, // 2: DBUserExpand.MlineEntry
|
||||
nil, // 3: DBUserExpand.RaceEntry
|
||||
nil, // 4: DBUserExpand.HerofragEntry
|
||||
}
|
||||
var file_userexpand_proto_depIdxs = []int32{
|
||||
1, // 0: DBUserExpand.expitem:type_name -> DBUserExpand.ExpitemEntry
|
||||
2, // 1: DBUserExpand.mline:type_name -> DBUserExpand.MlineEntry
|
||||
3, // 2: DBUserExpand.race:type_name -> DBUserExpand.RaceEntry
|
||||
4, // 3: DBUserExpand.herofrag:type_name -> DBUserExpand.HerofragEntry
|
||||
4, // [4:4] is the sub-list for method output_type
|
||||
4, // [4:4] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
3, // [3:3] is the sub-list for method output_type
|
||||
3, // [3:3] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
3, // [3:3] is the sub-list for extension extendee
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_userexpand_proto_init() }
|
||||
@ -493,7 +476,7 @@ func file_userexpand_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_userexpand_proto_rawDesc,
|
||||
NumEnums: 0,
|
||||
NumMessages: 5,
|
||||
NumMessages: 4,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
|
@ -14,7 +14,6 @@ type GameLoadingData struct {
|
||||
Id int32
|
||||
Scene string
|
||||
Image string
|
||||
Icon string
|
||||
Prompt string
|
||||
}
|
||||
|
||||
@ -28,7 +27,6 @@ func (_v *GameLoadingData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
|
||||
{ var _ok_ bool; if _v.Scene, _ok_ = _buf["scene"].(string); !_ok_ { err = errors.New("scene error"); return } }
|
||||
{ var _ok_ bool; if _v.Image, _ok_ = _buf["image"].(string); !_ok_ { err = errors.New("image error"); return } }
|
||||
{ var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } }
|
||||
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["prompt"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Prompt error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Prompt, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
|
||||
return
|
||||
}
|
||||
|
@ -46,7 +46,6 @@ type GameHeroData struct {
|
||||
Deviation int32
|
||||
Show int32
|
||||
Herofrag []*Gameatn
|
||||
Herofragnum int32
|
||||
Heroskillup []string
|
||||
Expitem []*Gameatn
|
||||
Expitemnum int32
|
||||
@ -152,7 +151,6 @@ func (_v *GameHeroData)Deserialize(_buf map[string]interface{}) (err error) {
|
||||
}
|
||||
}
|
||||
|
||||
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["herofragnum"].(float64); !_ok_ { err = errors.New("herofragnum error"); return }; _v.Herofragnum = int32(_tempNum_) }
|
||||
{
|
||||
var _arr_ []interface{}
|
||||
var _ok_ bool
|
||||
|
Loading…
Reference in New Issue
Block a user