This commit is contained in:
liwei1dao 2022-07-05 11:31:12 +08:00
commit d841560c25
24 changed files with 8854 additions and 304 deletions

View File

@ -0,0 +1,172 @@
[
{
"key": 1,
"id_tag": 1,
"active": 20,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 2,
"id_tag": 1,
"active": 40,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 3,
"id_tag": 1,
"active": 60,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 4,
"id_tag": 1,
"active": 80,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 5,
"id_tag": 1,
"active": 100,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 6,
"id_tag": 2,
"active": 40,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 7,
"id_tag": 2,
"active": 80,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 8,
"id_tag": 2,
"active": 120,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 9,
"id_tag": 2,
"active": 160,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 10,
"id_tag": 2,
"active": 200,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
}
]

View File

@ -38,5 +38,20 @@
"index": "init_hero", "index": "init_hero",
"var": "15001, 25001", "var": "15001, 25001",
"intr": "初始英雄" "intr": "初始英雄"
},
{
"index": "cameramin",
"var": "0,0,0",
"intr": "镜头坐标最小值"
},
{
"index": "cameramax",
"var": "10.4,16.4,151.5",
"intr": "镜头坐标最大值"
},
{
"index": "heroshownum",
"var": "2",
"intr": "播放开场动作角色数量"
} }
] ]

View File

@ -523,7 +523,7 @@
"effectstay": [], "effectstay": [],
"hpspace": { "hpspace": {
"x": 0, "x": 0,
"y": 0, "y": 0.154,
"z": 0 "z": 0
}, },
"skill1": 0, "skill1": 0,
@ -607,7 +607,7 @@
"effectstay": [], "effectstay": [],
"hpspace": { "hpspace": {
"x": 0, "x": 0,
"y": 0, "y": 0.26,
"z": 0 "z": 0
}, },
"skill1": 0, "skill1": 0,

File diff suppressed because it is too large Load Diff

View File

@ -1,10 +1,10 @@
[ [
{ {
"key": 1, "key": 1,
"id": 15001, "id": 25001,
"star": 4, "star": 4,
"maxlevel": 40, "maxlevel": 40,
"needhero": 15001, "needhero": 25001,
"needherostar": 4, "needherostar": 4,
"needheronum": 1, "needheronum": 1,
"needrace": [ "needrace": [
@ -16,10 +16,10 @@
}, },
{ {
"key": 2, "key": 2,
"id": 15001, "id": 25001,
"star": 5, "star": 5,
"maxlevel": 50, "maxlevel": 50,
"needhero": 15001, "needhero": 25001,
"needherostar": 5, "needherostar": 5,
"needheronum": 1, "needheronum": 1,
"needrace": [ "needrace": [
@ -31,7 +31,7 @@
}, },
{ {
"key": 3, "key": 3,
"id": 15001, "id": 25001,
"star": 6, "star": 6,
"maxlevel": 60, "maxlevel": 60,
"needhero": 0, "needhero": 0,
@ -44,10 +44,10 @@
}, },
{ {
"key": 4, "key": 4,
"id": 25001, "id": 25002,
"star": 5, "star": 5,
"maxlevel": 50, "maxlevel": 50,
"needhero": 25001, "needhero": 25002,
"needherostar": 5, "needherostar": 5,
"needheronum": 1, "needheronum": 1,
"needrace": [ "needrace": [
@ -59,7 +59,7 @@
}, },
{ {
"key": 5, "key": 5,
"id": 25001, "id": 25002,
"star": 6, "star": 6,
"maxlevel": 60, "maxlevel": 60,
"needhero": 0, "needhero": 0,
@ -72,10 +72,10 @@
}, },
{ {
"key": 6, "key": 6,
"id": 35001, "id": 25003,
"star": 5, "star": 5,
"maxlevel": 50, "maxlevel": 50,
"needhero": 35001, "needhero": 25003,
"needherostar": 5, "needherostar": 5,
"needheronum": 1, "needheronum": 1,
"needrace": [ "needrace": [
@ -87,7 +87,7 @@
}, },
{ {
"key": 7, "key": 7,
"id": 35001, "id": 25003,
"star": 6, "star": 6,
"maxlevel": 60, "maxlevel": 60,
"needhero": 0, "needhero": 0,
@ -100,10 +100,10 @@
}, },
{ {
"key": 8, "key": 8,
"id": 44001, "id": 15004,
"star": 5, "star": 5,
"maxlevel": 50, "maxlevel": 50,
"needhero": 44001, "needhero": 15004,
"needherostar": 5, "needherostar": 5,
"needheronum": 1, "needheronum": 1,
"needrace": [ "needrace": [
@ -115,7 +115,7 @@
}, },
{ {
"key": 9, "key": 9,
"id": 44001, "id": 15004,
"star": 6, "star": 6,
"maxlevel": 60, "maxlevel": 60,
"needhero": 0, "needhero": 0,

File diff suppressed because it is too large Load Diff

View File

@ -2,6 +2,8 @@
{ {
"sameid": 110001, "sameid": 110001,
"act": "Atk", "act": "Atk",
"type": 0,
"triggerchannce": 5000,
"tubiao": "skillicon_001", "tubiao": "skillicon_001",
"name": "太极一式", "name": "太极一式",
"describe": "" "describe": ""
@ -9,6 +11,8 @@
{ {
"sameid": 110002, "sameid": 110002,
"act": "Skill1", "act": "Skill1",
"type": 0,
"triggerchannce": 0,
"tubiao": "skillicon_002", "tubiao": "skillicon_002",
"name": "太极零式", "name": "太极零式",
"describe": "" "describe": ""
@ -16,6 +20,8 @@
{ {
"sameid": 110003, "sameid": 110003,
"act": "Skill2", "act": "Skill2",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_003", "tubiao": "skillicon_003",
"name": "太极最终式", "name": "太极最终式",
"describe": "" "describe": ""
@ -23,6 +29,8 @@
{ {
"sameid": 110004, "sameid": 110004,
"act": "Atk", "act": "Atk",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_004", "tubiao": "skillicon_004",
"name": "和谐音律", "name": "和谐音律",
"describe": "" "describe": ""
@ -30,6 +38,8 @@
{ {
"sameid": 110005, "sameid": 110005,
"act": "Skill1", "act": "Skill1",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_005", "tubiao": "skillicon_005",
"name": "彩虹音符", "name": "彩虹音符",
"describe": "" "describe": ""
@ -37,6 +47,8 @@
{ {
"sameid": 110006, "sameid": 110006,
"act": "Atk", "act": "Atk",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_010", "tubiao": "skillicon_010",
"name": "冰霜之语", "name": "冰霜之语",
"describe": "" "describe": ""
@ -44,6 +56,8 @@
{ {
"sameid": 110007, "sameid": 110007,
"act": "Skill1", "act": "Skill1",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_011", "tubiao": "skillicon_011",
"name": "极寒领域", "name": "极寒领域",
"describe": "" "describe": ""
@ -51,6 +65,8 @@
{ {
"sameid": 110008, "sameid": 110008,
"act": "Atk", "act": "Atk",
"type": 1,
"triggerchannce": 2000,
"tubiao": "skillicon_013", "tubiao": "skillicon_013",
"name": "梦·呓语", "name": "梦·呓语",
"describe": "" "describe": ""
@ -58,6 +74,8 @@
{ {
"sameid": 110009, "sameid": 110009,
"act": "Skill1", "act": "Skill1",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_014", "tubiao": "skillicon_014",
"name": "梦·创世", "name": "梦·创世",
"describe": "" "describe": ""
@ -65,6 +83,8 @@
{ {
"sameid": 110010, "sameid": 110010,
"act": "Atk", "act": "Atk",
"type": 0,
"triggerchannce": 0,
"tubiao": "skillicon_007", "tubiao": "skillicon_007",
"name": "一往无前", "name": "一往无前",
"describe": "" "describe": ""
@ -72,6 +92,8 @@
{ {
"sameid": 110011, "sameid": 110011,
"act": "Skill1", "act": "Skill1",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_008", "tubiao": "skillicon_008",
"name": "自由之往", "name": "自由之往",
"describe": "" "describe": ""
@ -79,6 +101,8 @@
{ {
"sameid": 110012, "sameid": 110012,
"act": "Skill2", "act": "Skill2",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_006", "tubiao": "skillicon_006",
"name": "彩虹音符", "name": "彩虹音符",
"describe": "" "describe": ""
@ -86,6 +110,8 @@
{ {
"sameid": 110013, "sameid": 110013,
"act": "Skill2", "act": "Skill2",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_009", "tubiao": "skillicon_009",
"name": "自由之往", "name": "自由之往",
"describe": "" "describe": ""
@ -93,6 +119,8 @@
{ {
"sameid": 110014, "sameid": 110014,
"act": "Skill2", "act": "Skill2",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_012", "tubiao": "skillicon_012",
"name": "极寒领域", "name": "极寒领域",
"describe": "" "describe": ""
@ -100,6 +128,8 @@
{ {
"sameid": 110015, "sameid": 110015,
"act": "Skill2", "act": "Skill2",
"type": 1,
"triggerchannce": 0,
"tubiao": "skillicon_015", "tubiao": "skillicon_015",
"name": "梦·创世", "name": "梦·创世",
"describe": "" "describe": ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1 +1,210 @@
[] [
{
"Id": 390001001,
"Type": "ProBuff",
"Name": "攻击提升",
"Desc": "攻击提升40%",
"Tags": [
"201"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001002,
"Type": "ProBuff",
"Name": "攻击下降",
"Desc": "攻击下降40%",
"Tags": [
"202"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001003,
"Type": "ProBuff",
"Name": "防御提升",
"Desc": "防御提升60%",
"Tags": [
"201"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001004,
"Type": "ProBuff",
"Name": "防御下降",
"Desc": "防御下降60%",
"Tags": [
"202"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001005,
"Type": "ProBuff",
"Name": "速度提升",
"Desc": "速度提升30%",
"Tags": [
"201"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001006,
"Type": "ProBuff",
"Name": "速度下降",
"Desc": "速度下降30%",
"Tags": [
"202"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001007,
"Type": "ProBuff",
"Name": "暴击提升",
"Desc": "暴击率提升30%",
"Tags": [
"201"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001008,
"Type": "ProBuff",
"Name": "暴击下降",
"Desc": "暴击率下降30%",
"Tags": [
"202"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001009,
"Type": "ProBuff",
"Name": "烙印",
"Desc": "被攻击时受到的伤害提高25%",
"Tags": [
"202"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001010,
"Type": "ProBuff",
"Name": "失手率提升",
"Desc": "失手率提升50%",
"Tags": [
"202"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390001011,
"Type": "ProBuff",
"Name": "叹息之力",
"Desc": "无法驱散类状态每层使自身攻击力提升5%每10层使自身受到伤害降低3%。最高可叠加50层",
"Tags": [
"201",
"301"
],
"OverlayTimes": 50,
"SameID": true
},
{
"Id": 390001012,
"Type": "ProBuff",
"Name": "暴击抵抗",
"Desc": "受到暴击概率降低30%",
"Tags": [
"201"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390002001,
"Type": "TagBuff",
"Name": "眩晕",
"Desc": "无法进行任务行动",
"Tags": [
"202",
"302"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390002002,
"Type": "TagBuff",
"Name": "冰冻",
"Desc": "无法进行任何行动",
"Tags": [
"202",
"302"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390002003,
"Type": "TagBuff",
"Name": "无法获得增益效果",
"Desc": "无法附加增益状态(不可驱散)(不配置标签)",
"Tags": [],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390002004,
"Type": "TagBuff",
"Name": "无法获得减益效果",
"Desc": "无法获得减益效果(不可驱散)(不配置标签)",
"Tags": [],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390002005,
"Type": "TagBuff",
"Name": "免疫",
"Desc": "无法获得减益效果",
"Tags": [
"201"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390002006,
"Type": "TagBuff",
"Name": "无敌",
"Desc": "无法受到任何伤害",
"Tags": [
"201"
],
"OverlayTimes": 0,
"SameID": false
},
{
"Id": 390002007,
"Type": "TagBuff",
"Name": "禁疗",
"Desc": "无法恢复生命",
"Tags": [
"202"
],
"OverlayTimes": 0,
"SameID": false
}
]

View File

@ -0,0 +1,702 @@
[
{
"key": 10001,
"id_list": 1,
"id_tag": 1,
"task_display": "将任意装备提升1级",
"type_id": 101,
"condition_second": 1,
"condition_condition": 0,
"active": 5,
"id_after": 0,
"reword": []
},
{
"key": 10002,
"id_list": 2,
"id_tag": 1,
"task_display": "获得1个5星英雄",
"type_id": 102,
"condition_second": 1,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 10003,
"id_list": 3,
"id_tag": 1,
"task_display": "获得2个5星英雄",
"type_id": 102,
"condition_second": 2,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 10004,
"id_list": 4,
"id_tag": 1,
"task_display": "获得3个5星英雄",
"type_id": 102,
"condition_second": 3,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 10005,
"id_list": 5,
"id_tag": 1,
"task_display": "获得4个5星英雄",
"type_id": 102,
"condition_second": 4,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 10006,
"id_list": 6,
"id_tag": 1,
"task_display": "获得5个5星英雄",
"type_id": 102,
"condition_second": 5,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 10007,
"id_list": 7,
"id_tag": 1,
"task_display": "获得6个5星英雄",
"type_id": 102,
"condition_second": 6,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 10008,
"id_list": 8,
"id_tag": 1,
"task_display": "获得7个5星英雄",
"type_id": 102,
"condition_second": 7,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 10009,
"id_list": 9,
"id_tag": 1,
"task_display": "获得8个5星英雄",
"type_id": 102,
"condition_second": 8,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 10010,
"id_list": 10,
"id_tag": 1,
"task_display": "获得9个5星英雄",
"type_id": 102,
"condition_second": 9,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20001,
"id_list": 11,
"id_tag": 2,
"task_display": "获得10个5星英雄",
"type_id": 102,
"condition_second": 10,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20002,
"id_list": 12,
"id_tag": 2,
"task_display": "获得11个5星英雄",
"type_id": 102,
"condition_second": 11,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20003,
"id_list": 13,
"id_tag": 2,
"task_display": "获得12个5星英雄",
"type_id": 102,
"condition_second": 12,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20004,
"id_list": 14,
"id_tag": 2,
"task_display": "获得13个5星英雄",
"type_id": 102,
"condition_second": 13,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20005,
"id_list": 15,
"id_tag": 2,
"task_display": "获得14个5星英雄",
"type_id": 102,
"condition_second": 14,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20006,
"id_list": 16,
"id_tag": 2,
"task_display": "获得15个5星英雄",
"type_id": 102,
"condition_second": 15,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20007,
"id_list": 17,
"id_tag": 2,
"task_display": "获得16个5星英雄",
"type_id": 102,
"condition_second": 16,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20008,
"id_list": 18,
"id_tag": 2,
"task_display": "获得17个5星英雄",
"type_id": 102,
"condition_second": 17,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20009,
"id_list": 19,
"id_tag": 2,
"task_display": "获得18个5星英雄",
"type_id": 102,
"condition_second": 18,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 20010,
"id_list": 20,
"id_tag": 2,
"task_display": "获得19个5星英雄",
"type_id": 102,
"condition_second": 19,
"condition_condition": 5,
"active": 10,
"id_after": 0,
"reword": []
},
{
"key": 30001,
"id_list": 21,
"id_tag": 3,
"task_display": "将装备提升1级",
"type_id": 101,
"condition_second": 1,
"condition_condition": 0,
"active": 0,
"id_after": 0,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30101,
"id_list": 22,
"id_tag": 3,
"task_display": "获得1个5星英雄",
"type_id": 102,
"condition_second": 1,
"condition_condition": 5,
"active": 0,
"id_after": 20003,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30102,
"id_list": 23,
"id_tag": 3,
"task_display": "获得2个5星英雄",
"type_id": 102,
"condition_second": 2,
"condition_condition": 5,
"active": 0,
"id_after": 20004,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30103,
"id_list": 24,
"id_tag": 3,
"task_display": "获得3个5星英雄",
"type_id": 102,
"condition_second": 3,
"condition_condition": 5,
"active": 0,
"id_after": 20005,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30104,
"id_list": 25,
"id_tag": 3,
"task_display": "获得4个5星英雄",
"type_id": 102,
"condition_second": 4,
"condition_condition": 5,
"active": 0,
"id_after": 20006,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30105,
"id_list": 26,
"id_tag": 3,
"task_display": "获得5个5星英雄",
"type_id": 102,
"condition_second": 5,
"condition_condition": 5,
"active": 0,
"id_after": 20007,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30106,
"id_list": 27,
"id_tag": 3,
"task_display": "获得6个5星英雄",
"type_id": 102,
"condition_second": 6,
"condition_condition": 5,
"active": 0,
"id_after": 20008,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30107,
"id_list": 28,
"id_tag": 3,
"task_display": "获得7个5星英雄",
"type_id": 102,
"condition_second": 7,
"condition_condition": 5,
"active": 0,
"id_after": 20009,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30108,
"id_list": 29,
"id_tag": 3,
"task_display": "获得8个5星英雄",
"type_id": 102,
"condition_second": 8,
"condition_condition": 5,
"active": 0,
"id_after": 20010,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30109,
"id_list": 30,
"id_tag": 3,
"task_display": "获得9个5星英雄",
"type_id": 102,
"condition_second": 9,
"condition_condition": 5,
"active": 0,
"id_after": 20011,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30110,
"id_list": 31,
"id_tag": 3,
"task_display": "获得10个5星英雄",
"type_id": 102,
"condition_second": 10,
"condition_condition": 5,
"active": 0,
"id_after": 20012,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30111,
"id_list": 32,
"id_tag": 3,
"task_display": "获得11个5星英雄",
"type_id": 102,
"condition_second": 11,
"condition_condition": 5,
"active": 0,
"id_after": 20013,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30112,
"id_list": 33,
"id_tag": 3,
"task_display": "获得12个5星英雄",
"type_id": 102,
"condition_second": 12,
"condition_condition": 5,
"active": 0,
"id_after": 20014,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30113,
"id_list": 34,
"id_tag": 3,
"task_display": "获得13个5星英雄",
"type_id": 102,
"condition_second": 13,
"condition_condition": 5,
"active": 0,
"id_after": 20015,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30114,
"id_list": 35,
"id_tag": 3,
"task_display": "获得14个5星英雄",
"type_id": 102,
"condition_second": 14,
"condition_condition": 5,
"active": 0,
"id_after": 20016,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30115,
"id_list": 36,
"id_tag": 3,
"task_display": "获得15个5星英雄",
"type_id": 102,
"condition_second": 15,
"condition_condition": 5,
"active": 0,
"id_after": 20017,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30116,
"id_list": 37,
"id_tag": 3,
"task_display": "获得16个5星英雄",
"type_id": 102,
"condition_second": 16,
"condition_condition": 5,
"active": 0,
"id_after": 20018,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30117,
"id_list": 38,
"id_tag": 3,
"task_display": "获得17个5星英雄",
"type_id": 102,
"condition_second": 17,
"condition_condition": 5,
"active": 0,
"id_after": 20019,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30118,
"id_list": 39,
"id_tag": 3,
"task_display": "获得18个5星英雄",
"type_id": 102,
"condition_second": 18,
"condition_condition": 5,
"active": 0,
"id_after": 20020,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
},
{
"key": 30119,
"id_list": 40,
"id_tag": 3,
"task_display": "获得19个5星英雄",
"type_id": 102,
"condition_second": 19,
"condition_condition": 5,
"active": 0,
"id_after": 0,
"reword": [
{
"a": "attr",
"t": "gold",
"n": 100000
},
{
"a": "attr",
"t": "diamonds",
"n": 100
}
]
}
]

View File

@ -3,6 +3,7 @@ package mail
import ( import (
"go_dreamfactory/comm" "go_dreamfactory/comm"
"go_dreamfactory/pb" "go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
) )
@ -36,23 +37,22 @@ func (this *apiComp) GetUserMailAttachment(session comm.IUserSession, req *pb.Ma
_data, err := this.module.modelMail.Mail_GetMailAttachment(req.ObjID) _data, err := this.module.modelMail.Mail_GetMailAttachment(req.ObjID)
if err == nil { if err == nil {
if len(_data) > 0 { if len(_data) > 0 {
// todo 领取附件 res := make([]*cfg.Game_atn, 0)
_items := make(map[int32]int32, 0)
for _, v := range _data { for _, v := range _data {
_items[int32(v.ItemId)] += int32(v.ItemCount) d := &cfg.Game_atn{
A: v.A,
T: v.T,
N: v.N,
} }
code = this.items.AddItems(&comm.ModuleCallSource{ res = append(res, d)
Module: string(this.module.GetType()), }
FuncName: "GetUserMailAttachment", code = this.module.api.module.CheckConsumeRes(session.GetUserId(), res) // 领取附件
Describe: "领取附件",
}, mail.Uid, _items)
if code == pb.ErrorCode_Success { if code == pb.ErrorCode_Success {
// 修改状态 // 修改状态
this.module.modelMail.Mail_UpdateMailAttachmentState(req.ObjID) this.module.modelMail.Mail_UpdateMailAttachmentState(req.ObjID)
mail.Reward = true mail.Reward = true
return return
} }
return
} }
} }
code = pb.ErrorCode_SystemError code = pb.ErrorCode_SystemError

View File

@ -75,7 +75,7 @@ func (this *modelMail) Mail_ReadOneMail(objId string) (mail *pb.DBMailData, err
} }
// 查询附件信息 // 查询附件信息
func (this *modelMail) Mail_GetMailAttachment(objId string) (itmes []*pb.MailAttachment, err error) { func (this *modelMail) Mail_GetMailAttachment(objId string) (itmes []*pb.UserAssets, err error) {
obj := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId}) obj := this.DB.FindOne(DB_MailTable, bson.M{"_id": objId})
var nd *pb.DBMailData var nd *pb.DBMailData

View File

@ -20,61 +20,6 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
type MailAttachment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ItemId uint32 `protobuf:"varint,1,opt,name=ItemId,proto3" json:"ItemId"` // 道具iD
ItemCount uint32 `protobuf:"varint,2,opt,name=ItemCount,proto3" json:"ItemCount"` // 数量
}
func (x *MailAttachment) Reset() {
*x = MailAttachment{}
if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MailAttachment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MailAttachment) ProtoMessage() {}
func (x *MailAttachment) ProtoReflect() protoreflect.Message {
mi := &file_mail_mail_db_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MailAttachment.ProtoReflect.Descriptor instead.
func (*MailAttachment) Descriptor() ([]byte, []int) {
return file_mail_mail_db_proto_rawDescGZIP(), []int{0}
}
func (x *MailAttachment) GetItemId() uint32 {
if x != nil {
return x.ItemId
}
return 0
}
func (x *MailAttachment) GetItemCount() uint32 {
if x != nil {
return x.ItemCount
}
return 0
}
type DBMailData struct { type DBMailData struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@ -88,13 +33,13 @@ type DBMailData struct {
DueTime uint64 `protobuf:"varint,6,opt,name=DueTime,proto3" json:"DueTime"` // 过期时间 DueTime uint64 `protobuf:"varint,6,opt,name=DueTime,proto3" json:"DueTime"` // 过期时间
Check bool `protobuf:"varint,7,opt,name=Check,proto3" json:"Check"` // 是否查看 Check bool `protobuf:"varint,7,opt,name=Check,proto3" json:"Check"` // 是否查看
Reward bool `protobuf:"varint,8,opt,name=Reward,proto3" json:"Reward"` // 附件领取状态 Reward bool `protobuf:"varint,8,opt,name=Reward,proto3" json:"Reward"` // 附件领取状态
Items []*MailAttachment `protobuf:"bytes,9,rep,name=Items,proto3" json:"Items"` // 附件 Items []*UserAssets `protobuf:"bytes,9,rep,name=Items,proto3" json:"Items"` // 附件
} }
func (x *DBMailData) Reset() { func (x *DBMailData) Reset() {
*x = DBMailData{} *x = DBMailData{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_mail_mail_db_proto_msgTypes[1] mi := &file_mail_mail_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@ -107,7 +52,7 @@ func (x *DBMailData) String() string {
func (*DBMailData) ProtoMessage() {} func (*DBMailData) ProtoMessage() {}
func (x *DBMailData) ProtoReflect() protoreflect.Message { func (x *DBMailData) ProtoReflect() protoreflect.Message {
mi := &file_mail_mail_db_proto_msgTypes[1] mi := &file_mail_mail_db_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@ -120,7 +65,7 @@ func (x *DBMailData) ProtoReflect() protoreflect.Message {
// Deprecated: Use DBMailData.ProtoReflect.Descriptor instead. // Deprecated: Use DBMailData.ProtoReflect.Descriptor instead.
func (*DBMailData) Descriptor() ([]byte, []int) { func (*DBMailData) Descriptor() ([]byte, []int) {
return file_mail_mail_db_proto_rawDescGZIP(), []int{1} return file_mail_mail_db_proto_rawDescGZIP(), []int{0}
} }
func (x *DBMailData) GetObjId() string { func (x *DBMailData) GetObjId() string {
@ -179,7 +124,7 @@ func (x *DBMailData) GetReward() bool {
return false return false
} }
func (x *DBMailData) GetItems() []*MailAttachment { func (x *DBMailData) GetItems() []*UserAssets {
if x != nil { if x != nil {
return x.Items return x.Items
} }
@ -190,26 +135,22 @@ var File_mail_mail_db_proto protoreflect.FileDescriptor
var file_mail_mail_db_proto_rawDesc = []byte{ var file_mail_mail_db_proto_rawDesc = []byte{
0x0a, 0x12, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x0a, 0x12, 0x6d, 0x61, 0x69, 0x6c, 0x2f, 0x6d, 0x61, 0x69, 0x6c, 0x5f, 0x64, 0x62, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x22, 0x46, 0x0a, 0x0e, 0x4d, 0x61, 0x69, 0x6c, 0x41, 0x74, 0x74, 0x61, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x22, 0xed, 0x01, 0x0a, 0x0a, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12,
0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x49, 0x74, 0x65, 0x6d, 0x49, 0x64, 0x12, 0x1c, 0x14, 0x0a, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
0x0a, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01,
0x0d, 0x52, 0x09, 0x49, 0x74, 0x65, 0x6d, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xf1, 0x01, 0x0a, 0x28, 0x09, 0x52, 0x03, 0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65,
0x0a, 0x44, 0x42, 0x4d, 0x61, 0x69, 0x6c, 0x44, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x4f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a,
0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x4f, 0x62, 0x6a, 0x49, 0x06, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43,
0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54,
0x55, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74,
0x28, 0x09, 0x52, 0x05, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65,
0x74, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12,
0x78, 0x12, 0x1e, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x14, 0x0a, 0x05, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05,
0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18,
0x65, 0x12, 0x18, 0x0a, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x21, 0x0a,
0x28, 0x04, 0x52, 0x07, 0x44, 0x75, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x43, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x55,
0x68, 0x65, 0x63, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x43, 0x68, 0x65, 0x63, 0x73, 0x65, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73,
0x6b, 0x12, 0x16, 0x0a, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28,
0x08, 0x52, 0x06, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x25, 0x0a, 0x05, 0x49, 0x74, 0x65,
0x6d, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x4d, 0x61, 0x69, 0x6c, 0x41,
0x74, 0x74, 0x61, 0x63, 0x68, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x05, 0x49, 0x74, 0x65, 0x6d, 0x73,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
@ -225,13 +166,13 @@ func file_mail_mail_db_proto_rawDescGZIP() []byte {
return file_mail_mail_db_proto_rawDescData return file_mail_mail_db_proto_rawDescData
} }
var file_mail_mail_db_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_mail_mail_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
var file_mail_mail_db_proto_goTypes = []interface{}{ var file_mail_mail_db_proto_goTypes = []interface{}{
(*MailAttachment)(nil), // 0: MailAttachment (*DBMailData)(nil), // 0: DBMailData
(*DBMailData)(nil), // 1: DBMailData (*UserAssets)(nil), // 1: UserAssets
} }
var file_mail_mail_db_proto_depIdxs = []int32{ var file_mail_mail_db_proto_depIdxs = []int32{
0, // 0: DBMailData.Items:type_name -> MailAttachment 1, // 0: DBMailData.Items:type_name -> UserAssets
1, // [1:1] is the sub-list for method output_type 1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type 1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name 1, // [1:1] is the sub-list for extension type_name
@ -244,20 +185,9 @@ func file_mail_mail_db_proto_init() {
if File_mail_mail_db_proto != nil { if File_mail_mail_db_proto != nil {
return return
} }
file_comm_proto_init()
if !protoimpl.UnsafeEnabled { if !protoimpl.UnsafeEnabled {
file_mail_mail_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { file_mail_mail_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MailAttachment); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_mail_mail_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBMailData); i { switch v := v.(*DBMailData); i {
case 0: case 0:
return &v.state return &v.state
@ -276,7 +206,7 @@ func file_mail_mail_db_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_mail_mail_db_proto_rawDesc, RawDescriptor: file_mail_mail_db_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 2, NumMessages: 1,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },

View File

@ -1,15 +1,6 @@
syntax = "proto3"; syntax = "proto3";
option go_package = ".;pb"; option go_package = ".;pb";
import "comm.proto";
// message Cache_mailData {
// string UserID = 1;
// repeated DB_MailData MailData = 2;
// }
message MailAttachment { //
uint32 ItemId = 1; // iD
uint32 ItemCount = 2; //
}
message DBMailData { message DBMailData {
string ObjId = 1; // @go_tags(`bson:"_id"`) ID string ObjId = 1; // @go_tags(`bson:"_id"`) ID
@ -20,5 +11,5 @@ message DBMailData {
uint64 DueTime = 6; // uint64 DueTime = 6; //
bool Check = 7; // bool Check = 7; //
bool Reward = 8; // bool Reward = 8; //
repeated MailAttachment Items = 9; // repeated UserAssets Items = 9; //
} }

View File

@ -35,6 +35,13 @@ type Tables struct {
equipIntensify *Game_equipIntensify equipIntensify *Game_equipIntensify
item *Game_item item *Game_item
heroSkillLevel *Game_heroSkillLevel heroSkillLevel *Game_heroSkillLevel
heroResonance *Game_heroResonance
comAtn *Game_comAtn
heroAwaken *Game_heroAwaken
shop *Game_shop
shopitem *Game_shopitem
taskRound *Game_taskRound
activeReward *Game_activeReward
} }
func NewTables(loader JsonLoader) (*Tables, error) { func NewTables(loader JsonLoader) (*Tables, error) {
@ -180,5 +187,47 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.heroSkillLevel, err = NewGame_heroSkillLevel(buf) ; err != nil { if tables.heroSkillLevel, err = NewGame_heroSkillLevel(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_heroresonance") ; err != nil {
return nil, err
}
if tables.heroResonance, err = NewGame_heroResonance(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_comatn") ; err != nil {
return nil, err
}
if tables.comAtn, err = NewGame_comAtn(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_heroawaken") ; err != nil {
return nil, err
}
if tables.heroAwaken, err = NewGame_heroAwaken(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_shop") ; err != nil {
return nil, err
}
if tables.shop, err = NewGame_shop(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_shopitem") ; err != nil {
return nil, err
}
if tables.shopitem, err = NewGame_shopitem(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_taskround") ; err != nil {
return nil, err
}
if tables.taskRound, err = NewGame_taskRound(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_activereward") ; err != nil {
return nil, err
}
if tables.activeReward, err = NewGame_activeReward(buf) ; err != nil {
return nil, err
}
return tables, nil return tables, nil
} }

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type Game_activeReward struct {
_dataMap map[int32]*Game_activeRewardData
_dataList []*Game_activeRewardData
}
func NewGame_activeReward(_buf []map[string]interface{}) (*Game_activeReward, error) {
_dataList := make([]*Game_activeRewardData, 0, len(_buf))
dataMap := make(map[int32]*Game_activeRewardData)
for _, _ele_ := range _buf {
if _v, err2 := NewGame_activeRewardData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Key] = _v
}
}
return &Game_activeReward{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Game_activeReward) GetDataMap() map[int32]*Game_activeRewardData {
return table._dataMap
}
func (table *Game_activeReward) GetDataList() []*Game_activeRewardData {
return table._dataList
}
func (table *Game_activeReward) Get(key int32) *Game_activeRewardData {
return table._dataMap[key]
}

View File

@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type Game_activeRewardData struct {
Key int32
IdTag int32
Active int32
Reword []*Game_atn
}
func (Game_activeRewardData) GetTypeId() int {
return -41023077
}
func NewGame_activeRewardData(_buf map[string]interface{}) (_v *Game_activeRewardData, err error) {
_v = &Game_activeRewardData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id_tag"].(float64); !_ok_ { err = errors.New("id_tag error"); return }; _v.IdTag = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["active"].(float64); !_ok_ { err = errors.New("active error"); return }; _v.Active = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["reword"].([]interface{}); !_ok_ { err = errors.New("reword error"); return }
_v.Reword = make([]*Game_atn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Game_atn
{ 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 = NewGame_atn(_x_); err != nil { return } }
_v.Reword = append(_v.Reword, _list_v_)
}
}
return
}

View File

@ -19,7 +19,7 @@ type Game_skillAfteratkData struct {
Order []string Order []string
EmitPR int32 EmitPR int32
Type string Type string
Argu []string Argu string
AddEffect bool AddEffect bool
FollowSK []int32 FollowSK []int32
FailFollowSK []string FailFollowSK []string
@ -67,20 +67,7 @@ func NewGame_skillAfteratkData(_buf map[string]interface{}) (_v *Game_skillAfter
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["EmitPR"].(float64); !_ok_ { err = errors.New("EmitPR error"); return }; _v.EmitPR = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["EmitPR"].(float64); !_ok_ { err = errors.New("EmitPR error"); return }; _v.EmitPR = int32(_tempNum_) }
{ var _ok_ bool; if _v.Type, _ok_ = _buf["Type"].(string); !_ok_ { err = errors.New("Type error"); return } } { var _ok_ bool; if _v.Type, _ok_ = _buf["Type"].(string); !_ok_ { err = errors.New("Type error"); return } }
{ { var _ok_ bool; if _v.Argu, _ok_ = _buf["Argu"].(string); !_ok_ { err = errors.New("Argu error"); return } }
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["Argu"].([]interface{}); !_ok_ { err = errors.New("Argu error"); return }
_v.Argu = make([]string, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ string
{ if _list_v_, _ok_ = _e_.(string); !_ok_ { err = errors.New("_list_v_ error"); return } }
_v.Argu = append(_v.Argu, _list_v_)
}
}
{ var _ok_ bool; if _v.AddEffect, _ok_ = _buf["AddEffect"].(bool); !_ok_ { err = errors.New("AddEffect error"); return } } { var _ok_ bool; if _v.AddEffect, _ok_ = _buf["AddEffect"].(bool); !_ok_ { err = errors.New("AddEffect error"); return } }
{ {
var _arr_ []interface{} var _arr_ []interface{}

View File

@ -13,6 +13,8 @@ import "errors"
type Game_skillData struct { type Game_skillData struct {
Sameid int32 Sameid int32
Act string Act string
Type int32
Triggerchannce int32
Tubiao string Tubiao string
Name string Name string
Describe string Describe string
@ -26,6 +28,8 @@ func NewGame_skillData(_buf map[string]interface{}) (_v *Game_skillData, err err
_v = &Game_skillData{} _v = &Game_skillData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["sameid"].(float64); !_ok_ { err = errors.New("sameid error"); return }; _v.Sameid = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["sameid"].(float64); !_ok_ { err = errors.New("sameid error"); return }; _v.Sameid = int32(_tempNum_) }
{ var _ok_ bool; if _v.Act, _ok_ = _buf["act"].(string); !_ok_ { err = errors.New("act error"); return } } { var _ok_ bool; if _v.Act, _ok_ = _buf["act"].(string); !_ok_ { err = errors.New("act error"); return } }
{ 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["triggerchannce"].(float64); !_ok_ { err = errors.New("triggerchannce error"); return }; _v.Triggerchannce = int32(_tempNum_) }
{ var _ok_ bool; if _v.Tubiao, _ok_ = _buf["tubiao"].(string); !_ok_ { err = errors.New("tubiao error"); return } } { var _ok_ bool; if _v.Tubiao, _ok_ = _buf["tubiao"].(string); !_ok_ { err = errors.New("tubiao error"); return } }
{ var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } } { var _ok_ bool; if _v.Name, _ok_ = _buf["name"].(string); !_ok_ { err = errors.New("name error"); return } }
{ var _ok_ bool; if _v.Describe, _ok_ = _buf["describe"].(string); !_ok_ { err = errors.New("describe error"); return } } { var _ok_ bool; if _v.Describe, _ok_ = _buf["describe"].(string); !_ok_ { err = errors.New("describe error"); return } }

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type Game_taskReward struct {
_dataMap map[int32]*Game_taskRewardData
_dataList []*Game_taskRewardData
}
func NewGame_taskReward(_buf []map[string]interface{}) (*Game_taskReward, error) {
_dataList := make([]*Game_taskRewardData, 0, len(_buf))
dataMap := make(map[int32]*Game_taskRewardData)
for _, _ele_ := range _buf {
if _v, err2 := NewGame_taskRewardData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Key] = _v
}
}
return &Game_taskReward{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Game_taskReward) GetDataMap() map[int32]*Game_taskRewardData {
return table._dataMap
}
func (table *Game_taskReward) GetDataList() []*Game_taskRewardData {
return table._dataList
}
func (table *Game_taskReward) Get(key int32) *Game_taskRewardData {
return table._dataMap[key]
}

View File

@ -0,0 +1,44 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type Game_taskRewardData struct {
Key int32
IdTag int32
Active int32
Reword []*Game_atn
}
func (Game_taskRewardData) GetTypeId() int {
return -79537062
}
func NewGame_taskRewardData(_buf map[string]interface{}) (_v *Game_taskRewardData, err error) {
_v = &Game_taskRewardData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id_tag"].(float64); !_ok_ { err = errors.New("id_tag error"); return }; _v.IdTag = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["active"].(float64); !_ok_ { err = errors.New("active error"); return }; _v.Active = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["reword"].([]interface{}); !_ok_ { err = errors.New("reword error"); return }
_v.Reword = make([]*Game_atn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Game_atn
{ 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 = NewGame_atn(_x_); err != nil { return } }
_v.Reword = append(_v.Reword, _list_v_)
}
}
return
}

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type Game_taskRound struct {
_dataMap map[int32]*Game_taskRoundData
_dataList []*Game_taskRoundData
}
func NewGame_taskRound(_buf []map[string]interface{}) (*Game_taskRound, error) {
_dataList := make([]*Game_taskRoundData, 0, len(_buf))
dataMap := make(map[int32]*Game_taskRoundData)
for _, _ele_ := range _buf {
if _v, err2 := NewGame_taskRoundData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Key] = _v
}
}
return &Game_taskRound{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *Game_taskRound) GetDataMap() map[int32]*Game_taskRoundData {
return table._dataMap
}
func (table *Game_taskRound) GetDataList() []*Game_taskRoundData {
return table._dataList
}
func (table *Game_taskRound) Get(key int32) *Game_taskRoundData {
return table._dataMap[key]
}

View File

@ -0,0 +1,56 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type Game_taskRoundData struct {
Key int32
IdList int32
IdTag int32
TaskDisplay string
TypeId int32
ConditionSecond int32
ConditionCondition int32
Active int32
IdAfter int32
Reword []*Game_atn
}
func (Game_taskRoundData) GetTypeId() int {
return 768648535
}
func NewGame_taskRoundData(_buf map[string]interface{}) (_v *Game_taskRoundData, err error) {
_v = &Game_taskRoundData{}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id_list"].(float64); !_ok_ { err = errors.New("id_list error"); return }; _v.IdList = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id_tag"].(float64); !_ok_ { err = errors.New("id_tag error"); return }; _v.IdTag = int32(_tempNum_) }
{ var _ok_ bool; if _v.TaskDisplay, _ok_ = _buf["task_display"].(string); !_ok_ { err = errors.New("task_display error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["type_id"].(float64); !_ok_ { err = errors.New("type_id error"); return }; _v.TypeId = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["condition_second"].(float64); !_ok_ { err = errors.New("condition_second error"); return }; _v.ConditionSecond = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["condition_condition"].(float64); !_ok_ { err = errors.New("condition_condition error"); return }; _v.ConditionCondition = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["active"].(float64); !_ok_ { err = errors.New("active error"); return }; _v.Active = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id_after"].(float64); !_ok_ { err = errors.New("id_after error"); return }; _v.IdAfter = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["reword"].([]interface{}); !_ok_ { err = errors.New("reword error"); return }
_v.Reword = make([]*Game_atn, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Game_atn
{ 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 = NewGame_atn(_x_); err != nil { return } }
_v.Reword = append(_v.Reword, _list_v_)
}
}
return
}