This commit is contained in:
liwei1dao 2023-03-16 16:17:23 +08:00
commit 953dd22db8
10 changed files with 2422 additions and 2418 deletions

View File

@ -1,86 +1,86 @@
[
{
"id": 1001,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 1,
"occupational_restrictions": 1,
"star_limit": 6,
"buffid": 200000001,
"p": 1667,
"name": {
"key": "wuguanbuff200000001",
"text": "攻击力增加2%"
}
},
{
"id": 1002,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 2,
"occupational_restrictions": 2,
"star_limit": 6,
"buffid": 200000002,
"p": 1667,
"name": {
"key": "wuguanbuff200000002",
"text": "防御力增加2%"
}
},
{
"id": 1003,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 3,
"occupational_restrictions": 3,
"star_limit": 6,
"buffid": 200000003,
"p": 1667,
"name": {
"key": "wuguanbuff200000003",
"text": "暴击率增加2%"
}
},
{
"id": 1004,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 4,
"occupational_restrictions": 4,
"star_limit": 6,
"buffid": 200000004,
"p": 1667,
"name": {
"key": "wuguanbuff200000004",
"text": "暴击抵抗增加2%"
}
},
{
"id": 1005,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 0,
"occupational_restrictions": 0,
"star_limit": 0,
"buffid": 200000005,
"p": 1667,
"name": {
"key": "wuguanbuff200000005",
"text": "效果命中增加2%"
}
},
{
"id": 1006,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 0,
"occupational_restrictions": 0,
"star_limit": 0,
"buffid": 200000006,
"p": 1667,
"name": {
"key": "wuguanbuff200000006",
"text": "效果抵抗增加2%"
}
}
[
{
"id": 1001,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 1,
"occupational_restrictions": 1,
"star_limit": 6,
"buffid": 200000001,
"p": 1667,
"name": {
"key": "wuguanbuff200000001",
"text": "攻击力增加2%"
}
},
{
"id": 1002,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 2,
"occupational_restrictions": 2,
"star_limit": 6,
"buffid": 200000002,
"p": 1667,
"name": {
"key": "wuguanbuff200000002",
"text": "防御力增加2%"
}
},
{
"id": 1003,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 3,
"occupational_restrictions": 3,
"star_limit": 6,
"buffid": 200000003,
"p": 1667,
"name": {
"key": "wuguanbuff200000003",
"text": "暴击率增加2%"
}
},
{
"id": 1004,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 4,
"occupational_restrictions": 4,
"star_limit": 6,
"buffid": 200000004,
"p": 1667,
"name": {
"key": "wuguanbuff200000004",
"text": "暴击抵抗增加2%"
}
},
{
"id": 1005,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 0,
"occupational_restrictions": 0,
"star_limit": 0,
"buffid": 200000005,
"p": 1667,
"name": {
"key": "wuguanbuff200000005",
"text": "效果命中增加2%"
}
},
{
"id": 1006,
"buff_group": 1000001,
"duration": "",
"camp_restriction": 0,
"occupational_restrictions": 0,
"star_limit": 0,
"buffid": 200000006,
"p": 1667,
"name": {
"key": "wuguanbuff200000006",
"text": "效果抵抗增加2%"
}
}
]

File diff suppressed because it is too large Load Diff

View File

@ -1,151 +1,151 @@
[
{
"lv": 1,
"name": {
"key": "muzhuang_1",
"text": "1级木人桩"
},
"pile_appearance": "Level1",
"effect": {
"key": "muzhuang_xiaoguo_1",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [
{
"a": "item",
"t": "30001",
"n": 1
},
{
"a": "item",
"t": "30002",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 5000
}
],
"min_exp": 10,
"placement_duration": 2,
"prop_position": 0,
"photo_guide_unlocking": []
},
{
"lv": 2,
"name": {
"key": "muzhuang_2",
"text": "2级木人桩"
},
"pile_appearance": "Level2",
"effect": {
"key": "muzhuang_xiaoguo_2",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [
{
"a": "item",
"t": "30001",
"n": 1
},
{
"a": "item",
"t": "30002",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 5000
}
],
"min_exp": 15,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
},
{
"lv": 3,
"name": {
"key": "muzhuang_3",
"text": "3级木人桩"
},
"pile_appearance": "Level2",
"effect": {
"key": "muzhuang_xiaoguo_3",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [
{
"a": "item",
"t": "30001",
"n": 1
},
{
"a": "item",
"t": "30002",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 5000
}
],
"min_exp": 20,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
},
{
"lv": 4,
"name": {
"key": "muzhuang_4",
"text": "4级木人桩"
},
"pile_appearance": "Level2",
"effect": {
"key": "muzhuang_xiaoguo_4",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [
{
"a": "item",
"t": "30001",
"n": 1
},
{
"a": "item",
"t": "30002",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 5000
}
],
"min_exp": 25,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
},
{
"lv": 5,
"name": {
"key": "muzhuang_5",
"text": "5级木人桩"
},
"pile_appearance": "Level2",
"effect": {
"key": "muzhuang_xiaoguo_5",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [],
"min_exp": 30,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
}
[
{
"lv": 1,
"name": {
"key": "muzhuang_1",
"text": "1级木人桩"
},
"pile_appearance": "Level1",
"effect": {
"key": "muzhuang_xiaoguo_1",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [
{
"a": "item",
"t": "30001",
"n": 1
},
{
"a": "item",
"t": "30002",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 5000
}
],
"min_exp": 10,
"placement_duration": 2,
"prop_position": 0,
"photo_guide_unlocking": []
},
{
"lv": 2,
"name": {
"key": "muzhuang_2",
"text": "2级木人桩"
},
"pile_appearance": "Level2",
"effect": {
"key": "muzhuang_xiaoguo_2",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [
{
"a": "item",
"t": "30001",
"n": 1
},
{
"a": "item",
"t": "30002",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 5000
}
],
"min_exp": 15,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
},
{
"lv": 3,
"name": {
"key": "muzhuang_3",
"text": "3级木人桩"
},
"pile_appearance": "Level2",
"effect": {
"key": "muzhuang_xiaoguo_3",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [
{
"a": "item",
"t": "30001",
"n": 1
},
{
"a": "item",
"t": "30002",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 5000
}
],
"min_exp": 20,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
},
{
"lv": 4,
"name": {
"key": "muzhuang_4",
"text": "4级木人桩"
},
"pile_appearance": "Level2",
"effect": {
"key": "muzhuang_xiaoguo_4",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [
{
"a": "item",
"t": "30001",
"n": 1
},
{
"a": "item",
"t": "30002",
"n": 1
},
{
"a": "attr",
"t": "gold",
"n": 5000
}
],
"min_exp": 25,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
},
{
"lv": 5,
"name": {
"key": "muzhuang_5",
"text": "5级木人桩"
},
"pile_appearance": "Level2",
"effect": {
"key": "muzhuang_xiaoguo_5",
"text": "每分钟提升经验{0}"
},
"up_lv_consume": [],
"min_exp": 30,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
}
]

View File

@ -1,178 +1,178 @@
[
{
"atlas_lv": 1,
"atlas_score": 0,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 2,
"atlas_score": 50,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 3,
"atlas_score": 100,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 4,
"atlas_score": 150,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 5,
"atlas_score": 200,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 6,
"atlas_score": 250,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 7,
"atlas_score": 300,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 8,
"atlas_score": 350,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 9,
"atlas_score": 400,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 10,
"atlas_score": 450,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 11,
"atlas_score": 500,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 12,
"atlas_score": 550,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 13,
"atlas_score": 600,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 14,
"atlas_score": 650,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 15,
"atlas_score": 700,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 16,
"atlas_score": 750,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
}
[
{
"atlas_lv": 1,
"atlas_score": 0,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 2,
"atlas_score": 50,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 3,
"atlas_score": 100,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 4,
"atlas_score": 150,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 5,
"atlas_score": 200,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 6,
"atlas_score": 250,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 7,
"atlas_score": 300,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 8,
"atlas_score": 350,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 9,
"atlas_score": 400,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 10,
"atlas_score": 450,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 11,
"atlas_score": 500,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 12,
"atlas_score": 550,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 13,
"atlas_score": 600,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 14,
"atlas_score": 650,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 15,
"atlas_score": 700,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
},
{
"atlas_lv": 16,
"atlas_score": 750,
"item_id": [
{
"a": "item",
"t": "10002",
"n": 1
}
]
}
]

View File

@ -1,90 +1,90 @@
[
{
"id": 1,
"describe": {
"key": "wuguyanyxjx1",
"text": "添加真诚阵营的英雄获得额外经验值加成"
},
"camp": 1,
"occupation": 0,
"register": 2,
"exp_bonus": 5
},
{
"id": 2,
"describe": {
"key": "wuguyanyxjx2",
"text": "添加共情阵营的英雄获得额外经验值加成"
},
"camp": 2,
"occupation": 0,
"register": 2,
"exp_bonus": 5
},
{
"id": 3,
"describe": {
"key": "wuguyanyxjx3",
"text": "添加直觉阵营的英雄获得额外经验值加成"
},
"camp": 3,
"occupation": 0,
"register": 2,
"exp_bonus": 5
},
{
"id": 4,
"describe": {
"key": "wuguyanyxjx4",
"text": "添加责任阵营的英雄获得额外经验值加成"
},
"camp": 4,
"occupation": 0,
"register": 2,
"exp_bonus": 5
},
{
"id": 5,
"describe": {
"key": "wuguyanyxjx5",
"text": "添加输出职业的英雄获得额外经验值加成"
},
"camp": 0,
"occupation": 1,
"register": 2,
"exp_bonus": 5
},
{
"id": 6,
"describe": {
"key": "wuguyanyxjx6",
"text": "添加防御职业的英雄获得额外经验值加成"
},
"camp": 0,
"occupation": 2,
"register": 2,
"exp_bonus": 5
},
{
"id": 7,
"describe": {
"key": "wuguyanyxjx7",
"text": "添加辅助职业的英雄获得额外经验值加成"
},
"camp": 0,
"occupation": 3,
"register": 2,
"exp_bonus": 5
},
{
"id": 8,
"describe": {
"key": "wuguyanyxjx8",
"text": "添加控制职业的英雄获得额外经验值加成"
},
"camp": 0,
"occupation": 4,
"register": 2,
"exp_bonus": 5
}
[
{
"id": 1,
"describe": {
"key": "wuguyanyxjx1",
"text": "添加真诚阵营的英雄获得额外经验值加成"
},
"camp": 1,
"occupation": 0,
"register": 2,
"exp_bonus": 5
},
{
"id": 2,
"describe": {
"key": "wuguyanyxjx2",
"text": "添加共情阵营的英雄获得额外经验值加成"
},
"camp": 2,
"occupation": 0,
"register": 2,
"exp_bonus": 5
},
{
"id": 3,
"describe": {
"key": "wuguyanyxjx3",
"text": "添加直觉阵营的英雄获得额外经验值加成"
},
"camp": 3,
"occupation": 0,
"register": 2,
"exp_bonus": 5
},
{
"id": 4,
"describe": {
"key": "wuguyanyxjx4",
"text": "添加责任阵营的英雄获得额外经验值加成"
},
"camp": 4,
"occupation": 0,
"register": 2,
"exp_bonus": 5
},
{
"id": 5,
"describe": {
"key": "wuguyanyxjx5",
"text": "添加输出职业的英雄获得额外经验值加成"
},
"camp": 0,
"occupation": 1,
"register": 2,
"exp_bonus": 5
},
{
"id": 6,
"describe": {
"key": "wuguyanyxjx6",
"text": "添加防御职业的英雄获得额外经验值加成"
},
"camp": 0,
"occupation": 2,
"register": 2,
"exp_bonus": 5
},
{
"id": 7,
"describe": {
"key": "wuguyanyxjx7",
"text": "添加辅助职业的英雄获得额外经验值加成"
},
"camp": 0,
"occupation": 3,
"register": 2,
"exp_bonus": 5
},
{
"id": 8,
"describe": {
"key": "wuguyanyxjx8",
"text": "添加控制职业的英雄获得额外经验值加成"
},
"camp": 0,
"occupation": 4,
"register": 2,
"exp_bonus": 5
}
]

File diff suppressed because it is too large Load Diff

View File

@ -169,7 +169,7 @@ func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq)
code = pb.ErrorCode_SystemError
return
}
tasks = append(tasks, comm.GettaskParam(comm.Rtype5, 1, utils.ToInt32(hero.HeroID), equipNum))
tasks = append(tasks, comm.GettaskParam(comm.Rtype5, 1, equipNum, utils.ToInt32(hero.HeroID)))
// this.module.ModuleRtask.SendToRtask(session, comm.Rtype5, utils.ToInt32(hero.HeroID), equipNum)
for k, v := range equipStr {
tasks = append(tasks, comm.GettaskParam(comm.Rtype41, 1, utils.ToInt32(hero.HeroID), v, k))

View File

@ -86,7 +86,7 @@ func (this *apiComp) StrengthenUpStar(session comm.IUserSession, req *pb.HeroStr
// 推送 世界任务消息
var szTask []*comm.TaskParam
szTask = append(szTask, comm.GettaskParam(comm.Rtype6, utils.ToInt32(_hero.HeroID), _hero.Star))
szTask = append(szTask, comm.GettaskParam(comm.Rtype6, _hero.Star, utils.ToInt32(_hero.HeroID)))
szTask = append(szTask, comm.GettaskParam(comm.Rtype25, 1, utils.ToInt32(_hero.HeroID), _hero.Star))
if _hero.Star == 4 {

View File

@ -576,7 +576,7 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex
var szTask []*comm.TaskParam
szTask = append(szTask, comm.GettaskParam(comm.Rtype147, utils.ToInt32(hero.HeroID), curLv-preLv))
szTask = append(szTask, comm.GettaskParam(comm.Rtype113, utils.ToInt32(hero.HeroID), curLv-preLv))
szTask = append(szTask, comm.GettaskParam(comm.Rtype4, utils.ToInt32(hero.HeroID), hero.Lv))
szTask = append(szTask, comm.GettaskParam(comm.Rtype4, hero.Lv, utils.ToInt32(hero.HeroID)))
szTask = append(szTask, comm.GettaskParam(comm.Rtype23, 1, hero.Star, hero.Lv))
szTask = append(szTask, comm.GettaskParam(comm.Rtype24, 1))
szTask = append(szTask, comm.GettaskParam(comm.Rtype29, 1, hero.Lv, utils.ToInt32(hero.HeroID)))

View File

@ -1,6 +1,7 @@
package hero
import (
"context"
"crypto/rand"
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
@ -944,31 +945,34 @@ func (this *Hero) QueryCrossMultipleHeroinfo(oid []string) (hero []*pb.DBHero, e
if err1 != nil {
continue
}
result := make([]bson.M, 0)
for _, v := range oid {
sr := conn.Mgo.FindOne(comm.TableHero, bson.M{
"_id": v,
})
result = append(result, bson.M{"_id": v})
}
sr, _ := conn.Mgo.Find(comm.TableHero, bson.M{"$or": result})
for sr.Next(context.TODO()) {
_hero := &pb.DBHero{}
if err = sr.Decode(_hero); err != nil {
this.modelHero.moduleHero.Errorf("find hero error: %v", err)
}
hero = append(hero, _hero)
}
return
}
} else { // 不是跨服就查本服 注意 这个接口是给跨服玩法调用 理论上这个分支是不会执行的
result := make([]bson.M, 0)
for _, v := range oid {
if res := this.modelHero.DB.FindOne(comm.TableHero, bson.M{
"_id": v,
}); res == nil {
_hero := &pb.DBHero{}
if err = res.Decode(_hero); err != nil {
this.modelHero.moduleHero.Errorf("find hero error: %v", err)
return
}
hero = append(hero, _hero)
result = append(result, bson.M{"_id": v})
}
sr, _ := this.modelHero.DB.Find(comm.TableHero, bson.M{"$or": result})
for sr.Next(context.TODO()) {
_hero := &pb.DBHero{}
if err = sr.Decode(_hero); err != nil {
this.modelHero.moduleHero.Errorf("find hero error: %v", err)
}
hero = append(hero, _hero)
}
}