This commit is contained in:
wh_zcy 2023-06-21 14:19:14 +08:00
commit 0e89369307
24 changed files with 18598 additions and 2063 deletions

View File

@ -25,8 +25,8 @@
"n3pool": "base_pool10", "n3pool": "base_pool10",
"n4pool": "base_pool11", "n4pool": "base_pool11",
"n5pool": "base_pool12", "n5pool": "base_pool12",
"b4": 10, "baodi4": 10,
"b6": 90, "baidi5": 90,
"etime": -1, "etime": -1,
"permission": 1, "permission": 1,
"consumeA": [ "consumeA": [
@ -64,8 +64,8 @@
"n3pool": "base_pool10", "n3pool": "base_pool10",
"n4pool": "base_pool11", "n4pool": "base_pool11",
"n5pool": "base_pool12", "n5pool": "base_pool12",
"b4": 10, "baodi4": 10,
"b6": 0, "baidi5": 0,
"etime": -1, "etime": -1,
"permission": 1, "permission": 1,
"consumeA": [ "consumeA": [
@ -103,8 +103,8 @@
"n3pool": "base_pool10", "n3pool": "base_pool10",
"n4pool": "base_pool11", "n4pool": "base_pool11",
"n5pool": "base_pool12", "n5pool": "base_pool12",
"b4": 10, "baodi4": 10,
"b6": 0, "baidi5": 0,
"etime": -1, "etime": -1,
"permission": 1, "permission": 1,
"consumeA": [ "consumeA": [
@ -142,8 +142,8 @@
"n3pool": "base_pool10", "n3pool": "base_pool10",
"n4pool": "base_pool11", "n4pool": "base_pool11",
"n5pool": "base_pool12", "n5pool": "base_pool12",
"b4": 10, "baodi4": 10,
"b6": 0, "baidi5": 0,
"etime": -1, "etime": -1,
"permission": 1, "permission": 1,
"consumeA": [ "consumeA": [
@ -181,8 +181,8 @@
"n3pool": "base_pool10", "n3pool": "base_pool10",
"n4pool": "base_pool11", "n4pool": "base_pool11",
"n5pool": "base_pool12", "n5pool": "base_pool12",
"b4": 10, "baodi4": 10,
"b6": 0, "baidi5": 0,
"etime": -1, "etime": -1,
"permission": 1, "permission": 1,
"consumeA": [ "consumeA": [

View File

@ -1,37 +0,0 @@
[
{
"num": 0,
"color": {
"key": "equip_equip_color_color_1",
"text": "普通"
}
},
{
"num": 1,
"color": {
"key": "equip_equip_color_color_2",
"text": "稀有"
}
},
{
"num": 2,
"color": {
"key": "equip_equip_color_color_3",
"text": "卓越"
}
},
{
"num": 3,
"color": {
"key": "equip_equip_color_color_4",
"text": "优秀"
}
},
{
"num": 4,
"color": {
"key": "equip_equip_color_color_5",
"text": "完美"
}
}
]

View File

@ -1,102 +0,0 @@
[
{
"hero": "14007",
"switch": 1,
"pointhero": [
"35001",
"35001",
"35001",
"35001"
],
"awaken": 1,
"start": 1,
"lv": 1,
"fuison": [
{
"a": "attr",
"t": "gold",
"n": 15000
}
]
},
{
"hero": "35001",
"switch": 1,
"pointhero": [
"25001",
"25001",
"25001",
"25001"
],
"awaken": 1,
"start": 1,
"lv": 1,
"fuison": [
{
"a": "attr",
"t": "gold",
"n": 15000
}
]
},
{
"hero": "25001",
"switch": 1,
"pointhero": [
"25004",
"25004",
"25004",
"25004"
],
"awaken": 1,
"start": 1,
"lv": 1,
"fuison": [
{
"a": "attr",
"t": "gold",
"n": 15000
}
]
},
{
"hero": "25004",
"switch": 1,
"pointhero": [
"44005",
"44005",
"44005",
"44005"
],
"awaken": 1,
"start": 1,
"lv": 1,
"fuison": [
{
"a": "attr",
"t": "gold",
"n": 15000
}
]
},
{
"hero": "45003",
"switch": 1,
"pointhero": [
"44005",
"44005",
"44005",
"44005"
],
"awaken": 1,
"start": 1,
"lv": 1,
"fuison": [
{
"a": "attr",
"t": "gold",
"n": 15000
}
]
}
]

View File

@ -1,182 +0,0 @@
[
{
"id": 10100,
"subTask": 0,
"nodeIndex": 0,
"order": "1",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_1",
"text": "让阿宝变强1"
},
"describe": {
"key": "library_companionplot_describe_1",
"text": "让阿宝变强1"
},
"img": "zx_pt_01",
"ending": 0
},
{
"id": 10101,
"subTask": 10100,
"nodeIndex": 1,
"order": "2",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_2",
"text": "让阿宝变强2"
},
"describe": {
"key": "library_companionplot_describe_2",
"text": "让阿宝变强2"
},
"img": "zx_pt_02",
"ending": 0
},
{
"id": 10102,
"subTask": 10101,
"nodeIndex": 2,
"order": "3",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_3",
"text": "让阿宝变强3"
},
"describe": {
"key": "library_companionplot_describe_3",
"text": "让阿宝变强3"
},
"img": "zx_pt_03",
"ending": 0
},
{
"id": 10103,
"subTask": 10102,
"nodeIndex": 3,
"order": "4",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_4",
"text": "让阿宝变强4"
},
"describe": {
"key": "library_companionplot_describe_4",
"text": "让阿宝变强4"
},
"img": "zx_pt_04",
"ending": 0
},
{
"id": 10104,
"subTask": 10103,
"nodeIndex": 4,
"order": "5",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_5",
"text": "让阿宝变强5"
},
"describe": {
"key": "library_companionplot_describe_5",
"text": "让阿宝变强5"
},
"img": "zx_pt_05",
"ending": 0
},
{
"id": 10105,
"subTask": 10104,
"nodeIndex": 5,
"order": "6",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_6",
"text": "让阿宝变强6"
},
"describe": {
"key": "library_companionplot_describe_6",
"text": "让阿宝变强6"
},
"img": "zx_pt_06",
"ending": 0
},
{
"id": 10106,
"subTask": 10105,
"nodeIndex": 6,
"order": "7",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_7",
"text": "让阿宝变强7"
},
"describe": {
"key": "library_companionplot_describe_7",
"text": "让阿宝变强7"
},
"img": "zx_pt_07",
"ending": 0
},
{
"id": 10107,
"subTask": 10106,
"nodeIndex": 7,
"order": "8",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_8",
"text": "让阿宝变强8"
},
"describe": {
"key": "library_companionplot_describe_8",
"text": "让阿宝变强8"
},
"img": "zx_pt_08",
"ending": 0
},
{
"id": 10108,
"subTask": 10107,
"nodeIndex": 8,
"order": "9",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_9",
"text": "让阿宝变强9"
},
"describe": {
"key": "library_companionplot_describe_9",
"text": "让阿宝变强9"
},
"img": "zx_pt_01",
"ending": 0
},
{
"id": 10109,
"subTask": 10108,
"nodeIndex": 9,
"order": "10",
"story_id": 300001,
"fetter_id": 40001,
"name": {
"key": "library_companionplot_name_10",
"text": "让阿宝变强10"
},
"describe": {
"key": "library_companionplot_describe_10",
"text": "让阿宝变强10"
},
"img": "zx_pt_02",
"ending": 1
}
]

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -124663,8 +124663,8 @@
"Id": 306003, "Id": 306003,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 3, "star": 3,
"equip": [], "equip": [],
@ -124963,8 +124963,8 @@
"Id": 306006, "Id": 306006,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 3, "star": 3,
"equip": [], "equip": [],
@ -125263,8 +125263,8 @@
"Id": 306009, "Id": 306009,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 3, "star": 3,
"equip": [], "equip": [],
@ -125563,8 +125563,8 @@
"Id": 306012, "Id": 306012,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 3, "star": 3,
"equip": [], "equip": [],
@ -125863,8 +125863,8 @@
"Id": 306015, "Id": 306015,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 4, "star": 4,
"equip": [], "equip": [],
@ -126163,8 +126163,8 @@
"Id": 306018, "Id": 306018,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 4, "star": 4,
"equip": [], "equip": [],
@ -126463,8 +126463,8 @@
"Id": 306021, "Id": 306021,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 4, "star": 4,
"equip": [], "equip": [],
@ -126763,8 +126763,8 @@
"Id": 306024, "Id": 306024,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 4, "star": 4,
"equip": [], "equip": [],
@ -127063,8 +127063,8 @@
"Id": 306027, "Id": 306027,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 5, "star": 5,
"equip": [], "equip": [],
@ -127363,8 +127363,8 @@
"Id": 306030, "Id": 306030,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 5, "star": 5,
"equip": [], "equip": [],
@ -127663,8 +127663,8 @@
"Id": 306033, "Id": 306033,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 5, "star": 5,
"equip": [], "equip": [],
@ -127963,8 +127963,8 @@
"Id": 306036, "Id": 306036,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 1,
"IsBoss": 1, "IsBoss": 0,
"bossHpCnt": 4, "bossHpCnt": 0,
"heroid": 53003, "heroid": 53003,
"star": 5, "star": 5,
"equip": [], "equip": [],

View File

@ -1,342 +0,0 @@
[
{
"id": 10100,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Task",
"header": ""
},
{
"id": 10101,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "task",
"path": "Root|Task|Daily",
"header": "赵长远"
},
{
"id": 10102,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "task",
"path": "Root|Task|Week",
"header": "赵长远"
},
{
"id": 10103,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "task",
"path": "Root|Task|Achievement",
"header": "赵长远"
},
{
"id": 10200,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Task|Daily",
"header": ""
},
{
"id": 10201,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "task",
"path": "Root|Task|Daily|Active",
"header": ""
},
{
"id": 10300,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Task|Week",
"header": ""
},
{
"id": 10301,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "task",
"path": "Root|Task|Week|Active",
"header": ""
},
{
"id": 11100,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|MainLine",
"header": "梅雄风"
},
{
"id": 12100,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Email",
"header": ""
},
{
"id": 12101,
"msg_type": 2,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Email|Btn",
"header": ""
},
{
"id": 12102,
"msg_type": 2,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Email|UnreadBtn",
"header": ""
},
{
"id": 13100,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|ViKingExpedition",
"header": ""
},
{
"id": 13101,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|ViKingExpedition|MainPage",
"header": ""
},
{
"id": 13102,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|ViKingExpedition|MainPage|Btn",
"header": ""
},
{
"id": 14100,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hunting",
"header": ""
},
{
"id": 14101,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hunting|MainPage",
"header": ""
},
{
"id": 14102,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hunting|MainPage|Btn",
"header": ""
},
{
"id": 20100,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hero",
"header": ""
},
{
"id": 20101,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hero|Heroup",
"header": ""
},
{
"id": 20102,
"msg_type": 2,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hero|Heroup|Btn",
"header": ""
},
{
"id": 20200,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hero|Awake",
"header": ""
},
{
"id": 20201,
"msg_type": 2,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hero|Awake|Btn",
"header": ""
},
{
"id": 20300,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hero|Heroup",
"header": ""
},
{
"id": 20301,
"msg_type": 2,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Hero|Heroup|Btn",
"header": ""
},
{
"id": 15100,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "sociaty",
"path": "Root|Guild",
"header": "赵长远"
},
{
"id": 15101,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "sociaty",
"path": "Root|Guild|MBtn",
"header": "赵长远"
},
{
"id": 15102,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "sociaty",
"path": "Root|Guild|MBtn|Btn",
"header": "赵长远"
},
{
"id": 15200,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "sociaty",
"path": "Root|Guild|Apply",
"header": ""
},
{
"id": 15201,
"msg_type": 1,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "sociaty",
"path": "Root|Guild|Apply|Btn",
"header": ""
},
{
"id": 16100,
"msg_type": 0,
"tree_type": 0,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Bag",
"header": "赵长远"
},
{
"id": 16101,
"msg_type": 2,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Bag|Item",
"header": "赵长远"
},
{
"id": 16102,
"msg_type": 2,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Bag|Equip",
"header": "赵长远"
},
{
"id": 16103,
"msg_type": 2,
"tree_type": 1,
"show_type": 0,
"count_type": 0,
"group": "",
"path": "Root|Bag|Shard",
"header": "赵长远"
}
]

View File

@ -1540,7 +1540,7 @@
"heroid": 25001, "heroid": 25001,
"datas": [ "datas": [
"GameMain", "GameMain",
"20030_熊猫2", "云朵先生",
"901" "901"
], ],
"event": [ "event": [
@ -1554,7 +1554,7 @@
"heroid": 25001, "heroid": 25001,
"datas": [ "datas": [
"GameMain", "GameMain",
"20030_熊猫2", "暴芙那特",
"901" "901"
], ],
"event": [ "event": [
@ -1580,7 +1580,7 @@
"heroid": 25001, "heroid": 25001,
"datas": [ "datas": [
"GameMain", "GameMain",
"20030_熊猫2", "功能入口-维京远征",
"901" "901"
], ],
"event": [ "event": [
@ -1621,9 +1621,9 @@
"id": 10320, "id": 10320,
"heroid": 25001, "heroid": 25001,
"datas": [ "datas": [
"GameMain", "CommandScene",
"20030_邦尼兔4", "功能入口_主线",
"901" "905"
], ],
"event": [ "event": [
2, 2,
@ -1659,9 +1659,9 @@
"id": 10330, "id": 10330,
"heroid": 25001, "heroid": 25001,
"datas": [ "datas": [
"GameMain", "CommandScene",
"20030_邦尼兔4", "功能入口_主线",
"901" "905"
], ],
"event": [ "event": [
2, 2,

View File

@ -1,226 +0,0 @@
[
{
"id": 10001,
"type": 1,
"group": "task",
"layer": "Root|Task|Daily",
"header": "赵长远"
},
{
"id": 10002,
"type": 1,
"group": "task",
"layer": "Root|Task|Week",
"header": "赵长远"
},
{
"id": 10003,
"type": 1,
"group": "sociaty",
"layer": "Root|Guild|MBtn|Btn",
"header": "赵长远"
},
{
"id": 10004,
"type": 1,
"group": "task",
"layer": "Root|Task|Achievement",
"header": "赵长远"
},
{
"id": 10005,
"type": 1,
"group": "mainline",
"layer": "",
"header": "梅雄风"
},
{
"id": 10006,
"type": 1,
"group": "",
"layer": "Root|Pagoda|Challenge",
"header": "梅雄风"
},
{
"id": 10007,
"type": 0,
"group": "",
"layer": "Root|Pagoda|Reward",
"header": ""
},
{
"id": 10008,
"type": 2,
"group": "",
"layer": "Root|Hero|Heroup|Btn",
"header": ""
},
{
"id": 10009,
"type": 2,
"group": "",
"layer": "Root|Hero|Awake|Btn",
"header": ""
},
{
"id": 10010,
"type": 2,
"group": "",
"layer": "Root|Hero|Resonance|Icon|Btn",
"header": ""
},
{
"id": 10011,
"type": 2,
"group": "",
"layer": "Root|Hero|Heroup|Btn",
"header": ""
},
{
"id": 10012,
"type": 2,
"group": "",
"layer": "Root|Hero|Equip|Wear",
"header": ""
},
{
"id": 10013,
"type": 2,
"group": "",
"layer": "Root|Hero|Equip|Replace",
"header": ""
},
{
"id": 10014,
"type": 2,
"group": "",
"layer": "Root|Hero|Equip|IntensifyPage|Intensify",
"header": ""
},
{
"id": 10015,
"type": 2,
"group": "",
"layer": "Root|Hero|Equip|EnchantPage|Enchant",
"header": ""
},
{
"id": 10016,
"type": 2,
"group": "",
"layer": "Root|Hero|Equip|WashsPracticePage|WashsPractice",
"header": ""
},
{
"id": 10017,
"type": 1,
"group": "",
"layer": "Root|Head|Horoscope|Water|Icon|Btn",
"header": ""
},
{
"id": 10018,
"type": 1,
"group": "",
"layer": "Root|Recruit|Btn",
"header": ""
},
{
"id": 10019,
"type": 1,
"group": "",
"layer": "Root|Arena|Btn",
"header": ""
},
{
"id": 10020,
"type": 1,
"group": "",
"layer": "Root|Gourmet|Order|OrderBtn",
"header": ""
},
{
"id": 10021,
"type": 1,
"group": "",
"layer": "Root|Gourmet|Order|UpBtn|Btn",
"header": ""
},
{
"id": 10022,
"type": 1,
"group": "",
"layer": "Root|Gourmet|OrderReceive|Btn",
"header": ""
},
{
"id": 10023,
"type": 1,
"group": "",
"layer": "Root|KungFu|Pillar|Btn",
"header": ""
},
{
"id": 10024,
"type": 1,
"group": "",
"layer": "Root|KungFu|Up|Btn",
"header": ""
},
{
"id": 10025,
"type": 1,
"group": "",
"layer": "Root|KungFu|Pillar|ReceiveBtn",
"header": ""
},
{
"id": 10026,
"type": 2,
"group": "",
"layer": "Root|Email|Btn",
"header": ""
},
{
"id": 10027,
"type": 1,
"group": "task",
"layer": "Root|Task|Daily|Active",
"header": ""
},
{
"id": 10028,
"type": 1,
"group": "task",
"layer": "Root|Task|Week|Active",
"header": ""
},
{
"id": 10029,
"type": 1,
"group": "sociaty",
"layer": "Root|Guild|Apply|Btn",
"header": ""
},
{
"id": 10030,
"type": 1,
"group": "",
"layer": "Root|Email|UnreadBtn",
"header": ""
},
{
"id": 10031,
"type": 1,
"group": "",
"layer": "Root|ViKingExpedition|MainPage|Btn",
"header": ""
},
{
"id": 10032,
"type": 1,
"group": "",
"layer": "Root|Hunting|MainPage|Btn",
"header": ""
}
]

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 5 "n": 0
} }
}, },
{ {
@ -22,7 +22,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 5 "n": 0
} }
}, },
{ {
@ -35,7 +35,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 5 "n": 0
} }
}, },
{ {
@ -48,7 +48,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 5 "n": 0
} }
}, },
{ {
@ -61,7 +61,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 5 "n": 0
} }
}, },
{ {
@ -74,7 +74,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 5 "n": 0
} }
}, },
{ {
@ -87,7 +87,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 5 "n": 0
} }
}, },
{ {
@ -100,7 +100,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 5 "n": 0
} }
}, },
{ {
@ -113,7 +113,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -126,7 +126,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -139,7 +139,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -152,7 +152,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -165,7 +165,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -178,7 +178,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -191,7 +191,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -204,7 +204,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -217,7 +217,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -230,7 +230,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 8 "n": 0
} }
}, },
{ {
@ -243,7 +243,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 10 "n": 0
} }
}, },
{ {
@ -256,7 +256,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 10 "n": 0
} }
}, },
{ {
@ -269,7 +269,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 10 "n": 0
} }
}, },
{ {
@ -282,7 +282,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 10 "n": 0
} }
}, },
{ {
@ -295,7 +295,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 10 "n": 0
} }
}, },
{ {
@ -308,7 +308,7 @@
"playexp": { "playexp": {
"a": "attr", "a": "attr",
"t": "exp", "t": "exp",
"n": 10 "n": 0
} }
} }
] ]

View File

@ -1174,7 +1174,7 @@
}, },
"npctxt": { "npctxt": {
"key": "worldtask_world_task_npctxt_33", "key": "worldtask_world_task_npctxt_33",
"text": "和阿宝对话" "text": "和希卡普对话"
}, },
"npc": 10310, "npc": 10310,
"completetask": [ "completetask": [
@ -1210,7 +1210,7 @@
}, },
"npctxt": { "npctxt": {
"key": "worldtask_world_task_npctxt_34", "key": "worldtask_world_task_npctxt_34",
"text": "和邦尼兔对话" "text": "和骇客蛛对话"
}, },
"npc": 10320, "npc": 10320,
"completetask": [ "completetask": [
@ -1246,7 +1246,7 @@
}, },
"npctxt": { "npctxt": {
"key": "worldtask_world_task_npctxt_35", "key": "worldtask_world_task_npctxt_35",
"text": "与邦尼兔聊聊" "text": "和骇客蛛对话"
}, },
"npc": 10330, "npc": 10330,
"completetask": [ "completetask": [

View File

@ -0,0 +1,349 @@
package hero
import (
"crypto/rand"
"go_dreamfactory/comm"
"go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
"math/big"
)
func (this *apiComp) DrawCardV2Check(session comm.IUserSession, req *pb.HeroDrawCardReq) (errdata *pb.ErrorData) {
if req.DrawType < 0 && (req.DrawCount == 1 || req.DrawCount == 10) { // 只能是单抽或10抽
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),
}
}
return
}
//抽卡
func (this *apiComp) DrawCardV2(session comm.IUserSession, req *pb.HeroDrawCardReq) (errdata *pb.ErrorData) {
var (
szCards []string // 最终抽到的卡牌
drawCount int32 // 抽卡次数
szStar []int32 //星级
costRes []*cfg.Gameatn // 消耗
star4Max int32 // 10连抽最大4星数量
star5Max int32 // 10连抽最大5星数量
cfgDraw *cfg.GameGlobalData
costAtn *cfg.Gameatn
heroRecord *pb.DBHeroRecord
pool string // 当前抽对应的卡池
atno []*pb.UserAtno // 最终获得的资源
strPool []string // 10连跨多个卡池情况
update map[string]interface{}
normalDraw bool // 是否是普通抽
)
update = make(map[string]interface{})
cfgDraw = this.module.ModuleTools.GetGlobalConf() // 读取抽卡配置文件
if cfgDraw == nil {
return
}
if errdata = this.DrawCardV2Check(session, req); errdata != nil {
return
}
szCards = make([]string, 0)
heroRecord, _ = this.module.modelRecord.GetHeroRecord(session.GetUserId())
drawCount = heroRecord.Drawcount
if req.DrawType == 0 { // 普通卡池抽卡
normalDraw = true
// 获取普通抽卡池
if req.DrawCount == 1 {
costAtn = cfgDraw.BasePoolCost
} else {
costAtn = cfgDraw.BasePool10cost
}
costRes = append(costRes, costAtn)
if errdata = this.module.CheckRes(session, costRes); errdata != nil { // 消耗数量不足直接返回
return
}
for i := 0; i < int(req.DrawCount); i++ {
drawCount += 1
pool = this.module.modelHero.CheckPool(drawCount, cfgDraw)
strPool = append(strPool, pool)
ret := this.module.CheckCondition(session.GetUserId())
if ret == true { // 命中插入5星英雄
szStar = append(szStar, 5)
heroRecord.Star5 = 0 // 重置保底
star5Max++ // 记录当前 5星数量
continue
}
// 3,4,5 星权重
starWeight := []int32{cfgDraw.BasePoolStar3, cfgDraw.BasePoolStar4, cfgDraw.BasePoolStar5}
starIndex := comm.GetRandW(starWeight) // 3 4 5 星索引
// 特殊规则 DrawCard_5StarsInRange 第2-30次抽奖必出一个5星英雄普通卡池
inRangeConf := this.module.ModuleTools.GetGlobalConf().DrawCard5StarsInRange
if len(inRangeConf) == 3 {
iStart := inRangeConf[0] // 抽卡开始
iEnd := inRangeConf[1] // 抽卡结束
star := inRangeConf[2]
if star >= 3 { // 保底必须三星+
if heroRecord.Inevitable == 0 && heroRecord.Drawcount > iStart && heroRecord.Drawcount < iEnd && iEnd >= iStart {
n, _ := rand.Int(rand.Reader, big.NewInt(int64(iEnd-iStart)))
if n.Int64() < 1 { // 抽中
starIndex = star - 3
heroRecord.Inevitable = heroRecord.Drawcount
update["inevitable"] = heroRecord.Drawcount
szStar = append(szStar, star)
if star == 4 {
heroRecord.Star4 = 0
star4Max++
} else if star == 5 {
star5Max++
heroRecord.Star5 = 0
}
continue
}
}
// 保底情况
if heroRecord.Drawcount == iEnd && heroRecord.Inevitable == 0 {
starIndex = star - 3
heroRecord.Inevitable = heroRecord.Drawcount
update["inevitable"] = heroRecord.Drawcount
szStar = append(szStar, star)
if star == 4 {
heroRecord.Star4 = 0
star4Max++
} else if star == 5 {
star5Max++
heroRecord.Star5 = 0
}
continue
}
}
}
inRangeConf1 := this.module.ModuleTools.GetGlobalConf().DrawCard5StarsInRange1
if len(inRangeConf1) == 3 {
iStart := inRangeConf1[0] // 抽卡开始
iEnd := inRangeConf1[1] // 抽卡结束
star := inRangeConf1[2]
if star >= 3 { // 保底必须三星+
if heroRecord.Inevitable == 0 && heroRecord.Drawcount > iStart && heroRecord.Drawcount < iEnd && iEnd >= iStart {
n, _ := rand.Int(rand.Reader, big.NewInt(int64(iEnd-iStart)))
if n.Int64() < 1 { // 抽中
starIndex = star - 3
heroRecord.Inevitable = heroRecord.Drawcount
update["inevitable1"] = heroRecord.Drawcount
szStar = append(szStar, star)
if star == 4 {
heroRecord.Star4 = 0
star4Max++
} else if star == 5 {
star5Max++
heroRecord.Star5 = 0
}
// 修改卡池
newPoll := this.module.ModuleTools.GetGlobalConf().DrawCard5StarsInRange1Pool
if newPoll != "" {
strPool[len(strPool)-1] = newPoll
}
continue
}
}
// 保底情况
if heroRecord.Drawcount == iEnd && heroRecord.Inevitable == 0 {
starIndex = star - 3
heroRecord.Inevitable1 = heroRecord.Drawcount
update["inevitable1"] = heroRecord.Drawcount
szStar = append(szStar, star)
if star == 4 {
heroRecord.Star4 = 0
star4Max++
} else if star == 5 {
star5Max++
heroRecord.Star5 = 0
}
// 修改卡池
newPoll := this.module.ModuleTools.GetGlobalConf().DrawCard5StarsInRange1Pool
if newPoll != "" {
strPool[len(strPool)-1] = newPoll
}
continue
}
}
}
heroRecord.Star4++ // 4星保底数量+1
heroRecord.Star5++ // 5星保底数量+1
if starIndex == 1 {
heroRecord.Star4 = 0
star4Max++
} else if starIndex == 2 {
star5Max++
heroRecord.Star5 = 0
}
if star4Max >= cfgDraw.Draw10Star4Max || star5Max >= cfgDraw.Draw10Star5Max { // 达到10连抽最大(4,5星)数量 直接给三星
starIndex = 0
} else {
// 普通卡池保底
if cfgDraw.DrawFloorStar4 <= heroRecord.Star4 {
heroRecord.Star4 = 0
starIndex = 1
}
if cfgDraw.DrawFloorStar5 <= heroRecord.Star5 {
heroRecord.Star5 = 0
starIndex = 2
}
}
szStar = append(szStar, starIndex+3)
if len(szStar) >= int(req.DrawCount) {
break
}
}
} else { // 所有阵营抽卡都走这里
drawCount += req.DrawCount
if req.DrawCount == 1 {
switch req.DrawType {
case 1:
pool = cfgDraw.Camp1Pool1
costAtn = cfgDraw.Camp1PoolCost
case 2:
pool = cfgDraw.Camp2Pool1
costAtn = cfgDraw.Camp2PoolCost
case 3:
pool = cfgDraw.Camp3Pool1
costAtn = cfgDraw.Camp3PoolCost
case 4:
pool = cfgDraw.Camp4Pool1
costAtn = cfgDraw.Camp4PoolCost
}
strPool = append(strPool, pool)
} else {
costAtn = cfgDraw.Camp1PoolCost
switch req.DrawType {
case 1:
pool = cfgDraw.Camp1Pool1
costAtn = cfgDraw.Camp1Pool10cost
case 2:
pool = cfgDraw.Camp2Pool1
costAtn = cfgDraw.Camp2Pool10cost
case 3:
pool = cfgDraw.Camp3Pool1
costAtn = cfgDraw.Camp3Pool10cost
case 4:
pool = cfgDraw.Camp4Pool1
costAtn = cfgDraw.Camp4Pool10cost
}
for i := 0; i < int(req.DrawCount); i++ {
strPool = append(strPool, pool)
}
}
costRes = append(costRes, costAtn)
//阵营消耗
if errdata = this.module.CheckRes(session, costRes); errdata != nil { // 消耗数量不足直接返回
return
}
for {
starWeight := []int32{cfgDraw.CampPoolStar3, cfgDraw.CampPoolStar4, cfgDraw.CampPoolStar5}
starIndex := comm.GetRandW(starWeight)
if starIndex == 1 {
star4Max++
} else if starIndex == 2 {
star5Max++
}
if star4Max >= cfgDraw.Draw10Star4Max || star5Max >= cfgDraw.Draw10Star5Max {
starIndex = 0
}
szStar = append(szStar, starIndex)
if len(szStar) >= int(req.DrawCount) {
break
}
}
}
for index, star := range szStar {
_data, err := this.module.configure.GetPollByType(strPool[index])
if err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Title: pb.ErrorCode_ConfigNoFound.ToString(),
Message: err.Error(),
}
return
}
sz := make([]int32, 0)
for _, v := range _data[int32(star)] {
sz = append(sz, v.Weight)
}
randomIndex := comm.GetRandW(sz)
if v, ok := _data[int32(star)]; ok {
if int32(len(v)) > randomIndex {
cardId := v[randomIndex].Id
if star == 5 { // 抽出5星英雄后A次抽奖内不会再抽到5星英雄普通卡池+阵营卡池)
curDrawCount := drawCount - req.DrawCount
if drawCount <= 10 { // 前10次不计算连续抽卡最多连续出A个相同阵营的英雄
szCards = append(szCards, cardId)
continue
}
newID := this.module.ContinuousRestriction(session.GetUserId(), cardId, curDrawCount+int32(index+1), strPool[index])
szCards = append(szCards, newID)
continue
}
szCards = append(szCards, cardId)
// 普通卡池 最多连续出A个相同阵营的英雄
if req.DrawType == 0 {
newId := this.module.DrawCardContinuousRestrictionCamp(cardId, heroRecord.Race, sz, v)
if cardId != newId {
szCards[len(szCards)-1] = newId
}
}
}
}
}
// 消耗道具
if errdata = this.module.ConsumeRes(session, costRes, true); errdata != nil {
return
}
heroRecord.Totalcount += req.DrawCount
heroRecord.Daycount += req.DrawCount
update["star4"] = heroRecord.Star4
update["star5"] = heroRecord.Star5
update["drawcount"] = drawCount
update["totalcount"] = heroRecord.Totalcount
update["daycount"] = heroRecord.Daycount
this.module.modelRecord.ChangeHeroRecord(session.GetUserId(), update)
rsp := &pb.HeroDrawCardResp{
Data: []*pb.AtnoData{},
}
for _, heroId := range szCards {
if errdata, atno = this.module.DispenseAtno(session, []*cfg.Gameatn{{
A: "hero",
T: heroId,
N: 1,
}}, true); errdata == nil {
rsp.Data = append(rsp.Data, &pb.AtnoData{Atno: atno})
for _, v := range atno {
if v.A == "hero" && v.N == 1 {
if user := this.module.ModuleUser.GetUser(session.GetUserId()); user != nil { // 广播 首次获得英雄
this.chat.SendSysChatToWorld(comm.ChatSystem13, nil, 0, 0, user.Name, v.T)
}
}
}
} else {
return
}
}
session.SendMsg(string(this.module.GetType()), DrawCard, rsp)
// 任务统计
this.module.SendTaskMsg(session, szStar, req.DrawCount, normalDraw)
return
}

View File

@ -33,6 +33,9 @@ const (
hero_talentbox = "game_talentbox.json" // 天赋详细数据 hero_talentbox = "game_talentbox.json" // 天赋详细数据
game_shopitem = "game_shopitem.json" game_shopitem = "game_shopitem.json"
hero_skill = "game_heroskill.json" hero_skill = "game_heroskill.json"
hero_draw = "game_drawpool.json" // 新版抽卡
hero_cardweight = "game_drawweight.json" // 新版抽卡权重
) )
// /配置管理组件 // /配置管理组件
@ -64,6 +67,8 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
hero_talentbox: cfg.NewGameTalentBox, hero_talentbox: cfg.NewGameTalentBox,
game_shopitem: cfg.NewGameShopitem, game_shopitem: cfg.NewGameShopitem,
hero_skill: cfg.NewGameHeroSkill, hero_skill: cfg.NewGameHeroSkill,
hero_draw: cfg.NewGameDrawPool,
hero_cardweight: cfg.NewGameDrawWeight,
}) })
this.drawCardCfg = make(map[string]map[int32][]*cfg.GameDrawCardData, 0) this.drawCardCfg = make(map[string]map[int32][]*cfg.GameDrawCardData, 0)
configure.RegisterConfigure(hero_drawcard, cfg.NewGameDrawCard, this.SetHeroDrawConfig) configure.RegisterConfigure(hero_drawcard, cfg.NewGameDrawCard, this.SetHeroDrawConfig)
@ -103,6 +108,7 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
} }
}) })
this.GetHeroDrawConfigByType(1)
return return
} }
@ -395,3 +401,41 @@ func (this *configureComp) GetHeroTalentMaxLv(heroid string) (maxlv int32) {
return 0 return 0
} }
// id: 1 表示普通抽 2表示阵营1 3表示阵营2 ...
func (this *configureComp) GetHeroDrawConfigByType(id int32) (data *cfg.GameDrawPoolData, err error) {
var (
v interface{}
)
if v, err = this.GetConfigure(hero_draw); err == nil {
if conf, ok := v.(*cfg.GameDrawPool); ok {
if data = conf.Get(id); data != nil {
return
}
}
}
err = comm.NewNotFoundConfErr(moduleName, hero_draw, id)
return
}
func (this *configureComp) GetHeroDrawWeightConfigById(id int32) (data *cfg.GameDrawWeightData, err error) {
var (
v interface{}
)
if id > 0 {
if v, err = this.GetConfigure(hero_cardweight); err == nil {
if conf, ok := v.(*cfg.GameDrawWeight); ok {
if data = conf.Get(id); data != nil {
return
} else {
if len(conf.GetDataList()) > 0 {
data = conf.GetDataList()[len(conf.GetDataList())-1]
}
}
}
}
}
err = comm.NewNotFoundConfErr(moduleName, hero_draw, id)
return
}

View File

@ -187,6 +187,12 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.MlineChall
}) })
} }
} }
user := this.module.ModuleUser.GetUser(session.GetUserId())
if lotteryward := this.module.ModuleTools.GetGroupDataByLottery(stageConf.Lotteryward, user.Vip, user.Lv); len(lotteryward) > 0 {
if errdata = this.module.DispenseRes(session, lotteryward, true); errdata != nil {
this.module.Debugf("Mline lotteryward DispenseRes err:+%v", lotteryward)
}
}
// 加英雄经验 // 加英雄经验
if stageConf.HeroExp > 0 { if stageConf.HeroExp > 0 {

View File

@ -109,8 +109,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal
mapData["bossTime"] = viking.BossTime // 更新时间 mapData["bossTime"] = viking.BossTime // 更新时间
this.module.CheckRank(session.GetUserId(), req.BossId, req.Difficulty, req.Report) this.module.CheckRank(session.GetUserId(), req.BossId, req.Difficulty, req.Report)
} }
user := this.module.ModuleUser.GetUser(session.GetUserId())
reward = this.module.configure.GetDropReward(vikingCfg.Drop) // 获取掉落奖励 reward = this.module.ModuleTools.GetGroupDataByLottery(vikingCfg.Drop, user.Vip, user.Lv)
//reward = this.module.configure.GetDropReward(vikingCfg.Drop) // 获取掉落奖励
// 星级校验 // 星级校验
for _, v := range reward { for _, v := range reward {
bFound := false bFound := false

View File

@ -23,8 +23,8 @@ type GameDrawPoolData struct {
N3pool string N3pool string
N4pool string N4pool string
N5pool string N5pool string
B4 int32 Baodi4 int32
B6 int32 Baidi5 int32
Etime int32 Etime int32
Permission int32 Permission int32
ConsumeA []*Gameatn ConsumeA []*Gameatn
@ -63,8 +63,8 @@ func (_v *GameDrawPoolData)Deserialize(_buf map[string]interface{}) (err error)
{ var _ok_ bool; if _v.N3pool, _ok_ = _buf["n3pool"].(string); !_ok_ { err = errors.New("n3pool error"); return } } { var _ok_ bool; if _v.N3pool, _ok_ = _buf["n3pool"].(string); !_ok_ { err = errors.New("n3pool error"); return } }
{ var _ok_ bool; if _v.N4pool, _ok_ = _buf["n4pool"].(string); !_ok_ { err = errors.New("n4pool error"); return } } { var _ok_ bool; if _v.N4pool, _ok_ = _buf["n4pool"].(string); !_ok_ { err = errors.New("n4pool error"); return } }
{ var _ok_ bool; if _v.N5pool, _ok_ = _buf["n5pool"].(string); !_ok_ { err = errors.New("n5pool error"); return } } { var _ok_ bool; if _v.N5pool, _ok_ = _buf["n5pool"].(string); !_ok_ { err = errors.New("n5pool error"); return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["b4"].(float64); !_ok_ { err = errors.New("b4 error"); return }; _v.B4 = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["baodi4"].(float64); !_ok_ { err = errors.New("baodi4 error"); return }; _v.Baodi4 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["b6"].(float64); !_ok_ { err = errors.New("b6 error"); return }; _v.B6 = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["baidi5"].(float64); !_ok_ { err = errors.New("baidi5 error"); return }; _v.Baidi5 = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["etime"].(float64); !_ok_ { err = errors.New("etime error"); return }; _v.Etime = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["etime"].(float64); !_ok_ { err = errors.New("etime error"); return }; _v.Etime = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["permission"].(float64); !_ok_ { err = errors.New("permission error"); return }; _v.Permission = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["permission"].(float64); !_ok_ { err = errors.New("permission error"); return }; _v.Permission = int32(_tempNum_) }
{ {

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 GameDrawWeight struct {
_dataMap map[int32]*GameDrawWeightData
_dataList []*GameDrawWeightData
}
func NewGameDrawWeight(_buf []map[string]interface{}) (*GameDrawWeight, error) {
_dataList := make([]*GameDrawWeightData, 0, len(_buf))
dataMap := make(map[int32]*GameDrawWeightData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameDrawWeightData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Key] = _v
}
}
return &GameDrawWeight{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameDrawWeight) GetDataMap() map[int32]*GameDrawWeightData {
return table._dataMap
}
func (table *GameDrawWeight) GetDataList() []*GameDrawWeightData {
return table._dataList
}
func (table *GameDrawWeight) Get(key int32) *GameDrawWeightData {
return table._dataMap[key]
}

View File

@ -10,25 +10,25 @@ package cfg
import "errors" import "errors"
type GameDrawWeigthData struct { type GameDrawWeightData struct {
Key int32 Key int32
Weight int32 Weight int32
} }
const TypeId_GameDrawWeigthData = -1955284598 const TypeId_GameDrawWeightData = 2007215138
func (*GameDrawWeigthData) GetTypeId() int32 { func (*GameDrawWeightData) GetTypeId() int32 {
return -1955284598 return 2007215138
} }
func (_v *GameDrawWeigthData)Deserialize(_buf map[string]interface{}) (err error) { func (_v *GameDrawWeightData)Deserialize(_buf map[string]interface{}) (err error) {
{ 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["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["weight"].(float64); !_ok_ { err = errors.New("weight error"); return }; _v.Weight = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["weight"].(float64); !_ok_ { err = errors.New("weight error"); return }; _v.Weight = int32(_tempNum_) }
return return
} }
func DeserializeGameDrawWeigthData(_buf map[string]interface{}) (*GameDrawWeigthData, error) { func DeserializeGameDrawWeightData(_buf map[string]interface{}) (*GameDrawWeightData, error) {
v := &GameDrawWeigthData{} v := &GameDrawWeightData{}
if err := v.Deserialize(_buf); err == nil { if err := v.Deserialize(_buf); err == nil {
return v, nil return v, nil
} else { } else {

View File

@ -1,42 +0,0 @@
//------------------------------------------------------------------------------
// <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 GameDrawWeigth struct {
_dataMap map[int32]*GameDrawWeigthData
_dataList []*GameDrawWeigthData
}
func NewGameDrawWeigth(_buf []map[string]interface{}) (*GameDrawWeigth, error) {
_dataList := make([]*GameDrawWeigthData, 0, len(_buf))
dataMap := make(map[int32]*GameDrawWeigthData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameDrawWeigthData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Key] = _v
}
}
return &GameDrawWeigth{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameDrawWeigth) GetDataMap() map[int32]*GameDrawWeigthData {
return table._dataMap
}
func (table *GameDrawWeigth) GetDataList() []*GameDrawWeigthData {
return table._dataList
}
func (table *GameDrawWeigth) Get(key int32) *GameDrawWeigthData {
return table._dataMap[key]
}

View File

@ -30,6 +30,7 @@ type GameMainStageData struct {
PsConsume []*Gameatn PsConsume []*Gameatn
PsMg []*Gameatn PsMg []*Gameatn
Firstaward []*Gameatn Firstaward []*Gameatn
Lotteryward int32
Commonaward []*Gameatn Commonaward []*Gameatn
BattleReadyID int32 BattleReadyID int32
FormatList []int32 FormatList []int32
@ -110,6 +111,7 @@ func (_v *GameMainStageData)Deserialize(_buf map[string]interface{}) (err error)
} }
} }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["lotteryward"].(float64); !_ok_ { err = errors.New("lotteryward error"); return }; _v.Lotteryward = int32(_tempNum_) }
{ {
var _arr_ []interface{} var _arr_ []interface{}
var _ok_ bool var _ok_ bool

View File

@ -183,7 +183,7 @@ type Tables struct {
PhotoAction *GamePhotoAction PhotoAction *GamePhotoAction
PhotoFilter *GamePhotoFilter PhotoFilter *GamePhotoFilter
DrawPool *GameDrawPool DrawPool *GameDrawPool
DrawWeigth *GameDrawWeigth DrawWeight *GameDrawWeight
} }
func NewTables(loader JsonLoader) (*Tables, error) { func NewTables(loader JsonLoader) (*Tables, error) {
@ -1223,10 +1223,10 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.DrawPool, err = NewGameDrawPool(buf) ; err != nil { if tables.DrawPool, err = NewGameDrawPool(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_drawweigth") ; err != nil { if buf, err = loader("game_drawweight") ; err != nil {
return nil, err return nil, err
} }
if tables.DrawWeigth, err = NewGameDrawWeigth(buf) ; err != nil { if tables.DrawWeight, err = NewGameDrawWeight(buf) ; err != nil {
return nil, err return nil, err
} }
return tables, nil return tables, nil