From 06f57cecaa22d904c4955979a6a9a11c1fdebe64 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Fri, 19 Aug 2022 15:07:22 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/json/game_chatexpression.json | 74 ++ bin/json/game_com.json | 23 +- bin/json/game_extservers.json | 18 +- bin/json/game_global.json | 23 +- bin/json/game_initial.json | 20 + bin/json/game_item.json | 74 ++ bin/json/game_opencond.json | 4 +- bin/json/game_smithy.json | 1799 +++++++++++++++++++++++++++++ bin/json/game_smithystove.json | 719 ++++++++++++ 9 files changed, 2726 insertions(+), 28 deletions(-) create mode 100644 bin/json/game_chatexpression.json create mode 100644 bin/json/game_smithy.json create mode 100644 bin/json/game_smithystove.json diff --git a/bin/json/game_chatexpression.json b/bin/json/game_chatexpression.json new file mode 100644 index 000000000..1c96863f3 --- /dev/null +++ b/bin/json/game_chatexpression.json @@ -0,0 +1,74 @@ +[ + { + "key": 101, + "expression_code": "#101", + "expression_type": 1, + "expression_icon": "lt_bq_icon001" + }, + { + "key": 102, + "expression_code": "#102", + "expression_type": 1, + "expression_icon": "lt_bq_icon002" + }, + { + "key": 103, + "expression_code": "#103", + "expression_type": 1, + "expression_icon": "lt_bq_icon003" + }, + { + "key": 104, + "expression_code": "#104", + "expression_type": 1, + "expression_icon": "lt_bq_icon004" + }, + { + "key": 105, + "expression_code": "#105", + "expression_type": 1, + "expression_icon": "lt_bq_icon005" + }, + { + "key": 106, + "expression_code": "#106", + "expression_type": 1, + "expression_icon": "lt_bq_icon006" + }, + { + "key": 107, + "expression_code": "#107", + "expression_type": 1, + "expression_icon": "lt_bq_icon007" + }, + { + "key": 108, + "expression_code": "#108", + "expression_type": 1, + "expression_icon": "lt_bq_icon008" + }, + { + "key": 109, + "expression_code": "#109", + "expression_type": 1, + "expression_icon": "lt_bq_icon009" + }, + { + "key": 110, + "expression_code": "#110", + "expression_type": 1, + "expression_icon": "lt_bq_icon010" + }, + { + "key": 111, + "expression_code": "#111", + "expression_type": 1, + "expression_icon": "lt_bq_icon011" + }, + { + "key": 112, + "expression_code": "#112", + "expression_type": 1, + "expression_icon": "lt_bq_icon012" + } +] \ No newline at end of file diff --git a/bin/json/game_com.json b/bin/json/game_com.json index 045ab8264..93dac2336 100644 --- a/bin/json/game_com.json +++ b/bin/json/game_com.json @@ -56,52 +56,52 @@ "duplicate_removal": 1, "base_pool_cost": { "a": "item", - "t": "10001", + "t": "10018", "n": 1 }, "camp1_pool_cost": { "a": "item", - "t": "10002", + "t": "10017", "n": 1 }, "camp2_pool_cost": { "a": "item", - "t": "10003", + "t": "10017", "n": 1 }, "camp3_pool_cost": { "a": "item", - "t": "10004", + "t": "10017", "n": 1 }, "camp4_pool_cost": { "a": "item", - "t": "10005", + "t": "10017", "n": 1 }, "base_pool_10cost": { "a": "item", - "t": "10001", + "t": "10018", "n": 10 }, "camp1_pool_10cost": { "a": "item", - "t": "10002", + "t": "10017", "n": 10 }, "camp2_pool_10cost": { "a": "item", - "t": "10003", + "t": "10017", "n": 10 }, "camp3_pool_10cost": { "a": "item", - "t": "10004", + "t": "10017", "n": 10 }, "camp4_pool_10cost": { "a": "item", - "t": "10005", + "t": "10017", "n": 10 }, "camp1_pool1": "camp1_pool", @@ -134,12 +134,13 @@ "camp_pool_star3": 9000, "camp_pool_star4": 900, "camp_pool_star5": 100, - "gourmet": 500, + "gourmet": 3600, "smithy_maxplayer": 20, "smithy_maxtime": 36000, "chat_expression_small": [ "lt_bq_icon001,lt_bq_icon002,lt_bq_icon003,lt_bq_icon004,lt_bq_icon005,lt_bq_icon006,lt_bq_icon007,lt_bq_icon008,lt_bq_icon009,lt_bq_icon010,lt_bq_icon011,lt_bq_icon012" ], + "viking_num": 10, "kungfu_time": 30 } ] \ No newline at end of file diff --git a/bin/json/game_extservers.json b/bin/json/game_extservers.json index 7a1bf41d0..02fdc9fa3 100644 --- a/bin/json/game_extservers.json +++ b/bin/json/game_extservers.json @@ -23,6 +23,16 @@ "index": 3, "name": { "key": "debug_server_02", + "text": "zcy" + }, + "ips": "10.0.0.238:7891", + "debug": true, + "sid": "dfz" + }, + { + "index": 4, + "name": { + "key": "debug_server_03", "text": "mxf" }, "ips": "10.0.0.85:7891", @@ -30,7 +40,7 @@ "sid": "dfmxf" }, { - "index": 4, + "index": 5, "name": { "key": "server_10004", "text": "凤凰城" @@ -40,7 +50,7 @@ "sid": "df01" }, { - "index": 5, + "index": 6, "name": { "key": "server_10005", "text": "翡翠宫" @@ -50,7 +60,7 @@ "sid": "df01" }, { - "index": 6, + "index": 7, "name": { "key": "server_10006", "text": "乌鸦岭" @@ -60,7 +70,7 @@ "sid": "df01" }, { - "index": 7, + "index": 8, "name": { "key": "server_10003", "text": "和平谷" diff --git a/bin/json/game_global.json b/bin/json/game_global.json index 045ab8264..93dac2336 100644 --- a/bin/json/game_global.json +++ b/bin/json/game_global.json @@ -56,52 +56,52 @@ "duplicate_removal": 1, "base_pool_cost": { "a": "item", - "t": "10001", + "t": "10018", "n": 1 }, "camp1_pool_cost": { "a": "item", - "t": "10002", + "t": "10017", "n": 1 }, "camp2_pool_cost": { "a": "item", - "t": "10003", + "t": "10017", "n": 1 }, "camp3_pool_cost": { "a": "item", - "t": "10004", + "t": "10017", "n": 1 }, "camp4_pool_cost": { "a": "item", - "t": "10005", + "t": "10017", "n": 1 }, "base_pool_10cost": { "a": "item", - "t": "10001", + "t": "10018", "n": 10 }, "camp1_pool_10cost": { "a": "item", - "t": "10002", + "t": "10017", "n": 10 }, "camp2_pool_10cost": { "a": "item", - "t": "10003", + "t": "10017", "n": 10 }, "camp3_pool_10cost": { "a": "item", - "t": "10004", + "t": "10017", "n": 10 }, "camp4_pool_10cost": { "a": "item", - "t": "10005", + "t": "10017", "n": 10 }, "camp1_pool1": "camp1_pool", @@ -134,12 +134,13 @@ "camp_pool_star3": 9000, "camp_pool_star4": 900, "camp_pool_star5": 100, - "gourmet": 500, + "gourmet": 3600, "smithy_maxplayer": 20, "smithy_maxtime": 36000, "chat_expression_small": [ "lt_bq_icon001,lt_bq_icon002,lt_bq_icon003,lt_bq_icon004,lt_bq_icon005,lt_bq_icon006,lt_bq_icon007,lt_bq_icon008,lt_bq_icon009,lt_bq_icon010,lt_bq_icon011,lt_bq_icon012" ], + "viking_num": 10, "kungfu_time": 30 } ] \ No newline at end of file diff --git a/bin/json/game_initial.json b/bin/json/game_initial.json index 8d252c886..e6186473c 100644 --- a/bin/json/game_initial.json +++ b/bin/json/game_initial.json @@ -348,5 +348,25 @@ "n": 200 } ] + }, + { + "index": "39", + "var": [ + { + "a": "item", + "t": "10018", + "n": 999 + } + ] + }, + { + "index": "40", + "var": [ + { + "a": "item", + "t": "10017", + "n": 999 + } + ] } ] \ No newline at end of file diff --git a/bin/json/game_item.json b/bin/json/game_item.json index 5d742c87d..ca75ba172 100644 --- a/bin/json/game_item.json +++ b/bin/json/game_item.json @@ -1156,5 +1156,79 @@ } ], "synthetize_deplete": [] + }, + { + "id": "10017", + "name": { + "key": "itemname_10017", + "text": "阵营招募劵" + }, + "usetype": 3, + "color": 5, + "bagtype": 1, + "index": 19, + "special_type": 0, + "time": 0, + "effects": "", + "box_id": 0, + "synthetize_num": 0, + "access": 0, + "use_skip": 0, + "upper_limit": 999, + "uselv": 0, + "isani": 0, + "star": 0, + "race": 0, + "img": "wp_icon_10017", + "ico": "wp_icon_10017", + "intr": { + "key": "itemdesc_10017", + "text": "作用于阵营招募界面" + }, + "sale": [ + { + "a": "attr", + "t": "gold", + "n": 1000 + } + ], + "synthetize_deplete": [] + }, + { + "id": "10018", + "name": { + "key": "itemname_10018", + "text": "普通招募劵" + }, + "usetype": 3, + "color": 5, + "bagtype": 1, + "index": 20, + "special_type": 0, + "time": 0, + "effects": "", + "box_id": 0, + "synthetize_num": 0, + "access": 0, + "use_skip": 0, + "upper_limit": 999, + "uselv": 0, + "isani": 0, + "star": 0, + "race": 0, + "img": "wp_icon_10018", + "ico": "wp_icon_10018", + "intr": { + "key": "itemdesc_10018", + "text": "作用于普通招募界面" + }, + "sale": [ + { + "a": "attr", + "t": "gold", + "n": 1000 + } + ], + "synthetize_deplete": [] } ] \ No newline at end of file diff --git a/bin/json/game_opencond.json b/bin/json/game_opencond.json index 51f270bfd..be85597b5 100644 --- a/bin/json/game_opencond.json +++ b/bin/json/game_opencond.json @@ -117,7 +117,7 @@ "key": "num_1002", "text": "招募" }, - "main": "{\"lv\": 999}", + "main": "{\"lv\": 0}", "optional": "", "wkqbx": 0, "kqbx": 0, @@ -213,7 +213,7 @@ "key": "num_1008", "text": "心魔塔" }, - "main": "{\"lv\": 999}", + "main": "{\"lv\": 0}", "optional": "", "wkqbx": 0, "kqbx": 0, diff --git a/bin/json/game_smithy.json b/bin/json/game_smithy.json new file mode 100644 index 000000000..0a070eda6 --- /dev/null +++ b/bin/json/game_smithy.json @@ -0,0 +1,1799 @@ +[ + { + "id": 1001, + "type": 1, + "star": 1, + "starshow": { + "key": "smithy_name_1001", + "text": "木质" + }, + "before": -1, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1001, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1002, + "type": 1, + "star": 2, + "starshow": { + "key": "smithy_name_1002", + "text": "石质" + }, + "before": 1, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1002, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1003, + "type": 1, + "star": 3, + "starshow": { + "key": "smithy_name_1003", + "text": "铁质" + }, + "before": 2, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1003, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1004, + "type": 1, + "star": 4, + "starshow": { + "key": "smithy_name_1004", + "text": "钢质" + }, + "before": 3, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.8", + "floors": 2, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1004, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1005, + "type": 1, + "star": 5, + "starshow": { + "key": "smithy_name_1005", + "text": "铂金质" + }, + "before": 4, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.7", + "floors": 3, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1005, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1006, + "type": 1, + "star": 6, + "starshow": { + "key": "smithy_name_1006", + "text": "钻石质" + }, + "before": 5, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.6", + "floors": 4, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1006, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1007, + "type": 1, + "star": 7, + "starshow": { + "key": "smithy_name_1007", + "text": "星耀石质" + }, + "before": 6, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.5", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1007, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1008, + "type": 1, + "star": 8, + "starshow": { + "key": "smithy_name_1008", + "text": "星陨石质" + }, + "before": 7, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.4", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1008, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1009, + "type": 1, + "star": 9, + "starshow": { + "key": "smithy_name_1009", + "text": "星核质" + }, + "before": 8, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.3", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1009, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 1010, + "type": 1, + "star": 10, + "starshow": { + "key": "smithy_name_1010", + "text": "宇宙粒子质" + }, + "before": 9, + "starupneed": [], + "sucess": "-1", + "floors": -1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1010, + "orderneed": [ + { + "a": "item", + "t": "50001", + "n": 50 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2001, + "type": 2, + "star": 1, + "starshow": { + "key": "smithy_name_1001", + "text": "木质" + }, + "before": -1, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1011, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2002, + "type": 2, + "star": 2, + "starshow": { + "key": "smithy_name_1002", + "text": "石质" + }, + "before": 1, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1012, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2003, + "type": 2, + "star": 3, + "starshow": { + "key": "smithy_name_1003", + "text": "铁质" + }, + "before": 2, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1013, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2004, + "type": 2, + "star": 4, + "starshow": { + "key": "smithy_name_1004", + "text": "钢质" + }, + "before": 3, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.8", + "floors": 2, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1014, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2005, + "type": 2, + "star": 5, + "starshow": { + "key": "smithy_name_1005", + "text": "铂金质" + }, + "before": 4, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.7", + "floors": 3, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1015, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2006, + "type": 2, + "star": 6, + "starshow": { + "key": "smithy_name_1006", + "text": "钻石质" + }, + "before": 5, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.6", + "floors": 4, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1016, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2007, + "type": 2, + "star": 7, + "starshow": { + "key": "smithy_name_1007", + "text": "星耀石质" + }, + "before": 6, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.5", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1017, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2008, + "type": 2, + "star": 8, + "starshow": { + "key": "smithy_name_1008", + "text": "星陨石质" + }, + "before": 7, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.4", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1018, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2009, + "type": 2, + "star": 9, + "starshow": { + "key": "smithy_name_1009", + "text": "星核质" + }, + "before": 8, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.3", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1019, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 2010, + "type": 2, + "star": 10, + "starshow": { + "key": "smithy_name_1010", + "text": "宇宙粒子质" + }, + "before": 9, + "starupneed": [], + "sucess": "-1", + "floors": -1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1020, + "orderneed": [ + { + "a": "item", + "t": "50002", + "n": 50 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3001, + "type": 3, + "star": 1, + "starshow": { + "key": "smithy_name_1001", + "text": "木质" + }, + "before": -1, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1021, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3002, + "type": 3, + "star": 2, + "starshow": { + "key": "smithy_name_1002", + "text": "石质" + }, + "before": 1, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1022, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3003, + "type": 3, + "star": 3, + "starshow": { + "key": "smithy_name_1003", + "text": "铁质" + }, + "before": 2, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1023, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3004, + "type": 3, + "star": 4, + "starshow": { + "key": "smithy_name_1004", + "text": "钢质" + }, + "before": 3, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.8", + "floors": 2, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1024, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3005, + "type": 3, + "star": 5, + "starshow": { + "key": "smithy_name_1005", + "text": "铂金质" + }, + "before": 4, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.7", + "floors": 3, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1025, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3006, + "type": 3, + "star": 6, + "starshow": { + "key": "smithy_name_1006", + "text": "钻石质" + }, + "before": 5, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.6", + "floors": 4, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1026, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3007, + "type": 3, + "star": 7, + "starshow": { + "key": "smithy_name_1007", + "text": "星耀石质" + }, + "before": 6, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.5", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1027, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3008, + "type": 3, + "star": 8, + "starshow": { + "key": "smithy_name_1008", + "text": "星陨石质" + }, + "before": 7, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.4", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1028, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3009, + "type": 3, + "star": 9, + "starshow": { + "key": "smithy_name_1009", + "text": "星核质" + }, + "before": 8, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.3", + "floors": 5, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1029, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + }, + { + "id": 3010, + "type": 3, + "star": 10, + "starshow": { + "key": "smithy_name_1010", + "text": "宇宙粒子质" + }, + "before": 9, + "starupneed": [], + "sucess": "-1", + "floors": -1, + "dropshow": [ + { + "a": "item", + "t": "10001", + "n": 1 + }, + { + "a": "item", + "t": "10002", + "n": 1 + }, + { + "a": "item", + "t": "10003", + "n": 1 + }, + { + "a": "item", + "t": "10004", + "n": 1 + } + ], + "drop": 1030, + "orderneed": [ + { + "a": "item", + "t": "50003", + "n": 50 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "desk": "", + "shelves": "" + } +] \ No newline at end of file diff --git a/bin/json/game_smithystove.json b/bin/json/game_smithystove.json new file mode 100644 index 000000000..adbf9a946 --- /dev/null +++ b/bin/json/game_smithystove.json @@ -0,0 +1,719 @@ +[ + { + "id": 1001, + "star": 1, + "starshow": { + "key": "smithy_name_1001", + "text": "木质" + }, + "before": -1, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 300, + "desk": "" + }, + { + "id": 1002, + "star": 2, + "starshow": { + "key": "smithy_name_1002", + "text": "石质" + }, + "before": 1, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 300, + "desk": "" + }, + { + "id": 1003, + "star": 3, + "starshow": { + "key": "smithy_name_1003", + "text": "铁质" + }, + "before": 2, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 300, + "desk": "" + }, + { + "id": 1004, + "star": 4, + "starshow": { + "key": "smithy_name_1004", + "text": "钢质" + }, + "before": 3, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.8", + "floors": 2, + "time": 300, + "desk": "" + }, + { + "id": 1005, + "star": 5, + "starshow": { + "key": "smithy_name_1005", + "text": "铂金质" + }, + "before": 4, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.7", + "floors": 3, + "time": 300, + "desk": "" + }, + { + "id": 1006, + "star": 6, + "starshow": { + "key": "smithy_name_1006", + "text": "钻石质" + }, + "before": 5, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.6", + "floors": 4, + "time": 300, + "desk": "" + }, + { + "id": 1007, + "star": 7, + "starshow": { + "key": "smithy_name_1007", + "text": "星耀石质" + }, + "before": 6, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.5", + "floors": 5, + "time": 300, + "desk": "" + }, + { + "id": 1008, + "star": 8, + "starshow": { + "key": "smithy_name_1008", + "text": "星陨石质" + }, + "before": 7, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.4", + "floors": 5, + "time": 300, + "desk": "" + }, + { + "id": 1009, + "star": 9, + "starshow": { + "key": "smithy_name_1009", + "text": "星核质" + }, + "before": 8, + "starupneed": [ + { + "a": "item", + "t": "50001", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.3", + "floors": 5, + "time": 300, + "desk": "" + }, + { + "id": 1010, + "star": 10, + "starshow": { + "key": "smithy_name_1010", + "text": "宇宙粒子质" + }, + "before": 9, + "starupneed": [], + "sucess": "-1", + "floors": -1, + "time": 300, + "desk": "" + }, + { + "id": 1011, + "star": 11, + "starshow": { + "key": "smithy_name_1001", + "text": "木质" + }, + "before": 10, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 500, + "desk": "" + }, + { + "id": 1012, + "star": 12, + "starshow": { + "key": "smithy_name_1002", + "text": "石质" + }, + "before": 11, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 500, + "desk": "" + }, + { + "id": 1013, + "star": 13, + "starshow": { + "key": "smithy_name_1003", + "text": "铁质" + }, + "before": 12, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 500, + "desk": "" + }, + { + "id": 1014, + "star": 14, + "starshow": { + "key": "smithy_name_1004", + "text": "钢质" + }, + "before": 13, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.8", + "floors": 2, + "time": 500, + "desk": "" + }, + { + "id": 1015, + "star": 15, + "starshow": { + "key": "smithy_name_1005", + "text": "铂金质" + }, + "before": 14, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.7", + "floors": 3, + "time": 500, + "desk": "" + }, + { + "id": 1016, + "star": 16, + "starshow": { + "key": "smithy_name_1006", + "text": "钻石质" + }, + "before": 15, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.6", + "floors": 4, + "time": 500, + "desk": "" + }, + { + "id": 1017, + "star": 17, + "starshow": { + "key": "smithy_name_1007", + "text": "星耀石质" + }, + "before": 16, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.5", + "floors": 5, + "time": 500, + "desk": "" + }, + { + "id": 1018, + "star": 18, + "starshow": { + "key": "smithy_name_1008", + "text": "星陨石质" + }, + "before": 17, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.4", + "floors": 5, + "time": 500, + "desk": "" + }, + { + "id": 1019, + "star": 19, + "starshow": { + "key": "smithy_name_1009", + "text": "星核质" + }, + "before": 18, + "starupneed": [ + { + "a": "item", + "t": "50002", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.3", + "floors": 5, + "time": 500, + "desk": "" + }, + { + "id": 1020, + "star": 20, + "starshow": { + "key": "smithy_name_1010", + "text": "宇宙粒子质" + }, + "before": 19, + "starupneed": [], + "sucess": "-1", + "floors": -1, + "time": 500, + "desk": "" + }, + { + "id": 1021, + "star": 21, + "starshow": { + "key": "smithy_name_1001", + "text": "木质" + }, + "before": 20, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 5 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 1000, + "desk": "" + }, + { + "id": 1022, + "star": 22, + "starshow": { + "key": "smithy_name_1002", + "text": "石质" + }, + "before": 21, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 10 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 1000, + "desk": "" + }, + { + "id": 1023, + "star": 23, + "starshow": { + "key": "smithy_name_1003", + "text": "铁质" + }, + "before": 22, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 15 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "1", + "floors": 1, + "time": 1000, + "desk": "" + }, + { + "id": 1024, + "star": 24, + "starshow": { + "key": "smithy_name_1004", + "text": "钢质" + }, + "before": 23, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 20 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.8", + "floors": 2, + "time": 1000, + "desk": "" + }, + { + "id": 1025, + "star": 25, + "starshow": { + "key": "smithy_name_1005", + "text": "铂金质" + }, + "before": 24, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 25 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.7", + "floors": 3, + "time": 1000, + "desk": "" + }, + { + "id": 1026, + "star": 26, + "starshow": { + "key": "smithy_name_1006", + "text": "钻石质" + }, + "before": 25, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 30 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.6", + "floors": 4, + "time": 1000, + "desk": "" + }, + { + "id": 1027, + "star": 27, + "starshow": { + "key": "smithy_name_1007", + "text": "星耀石质" + }, + "before": 26, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 35 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.5", + "floors": 5, + "time": 1000, + "desk": "" + }, + { + "id": 1028, + "star": 28, + "starshow": { + "key": "smithy_name_1008", + "text": "星陨石质" + }, + "before": 27, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 40 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.4", + "floors": 5, + "time": 1000, + "desk": "" + }, + { + "id": 1029, + "star": 29, + "starshow": { + "key": "smithy_name_1009", + "text": "星核质" + }, + "before": 28, + "starupneed": [ + { + "a": "item", + "t": "50003", + "n": 45 + }, + { + "a": "item", + "t": "10013", + "n": 1 + } + ], + "sucess": "0.3", + "floors": 5, + "time": 1000, + "desk": "" + }, + { + "id": 1030, + "star": 30, + "starshow": { + "key": "smithy_name_1010", + "text": "宇宙粒子质" + }, + "before": 29, + "starupneed": [], + "sucess": "-1", + "floors": -1, + "time": 1000, + "desk": "" + } +] \ No newline at end of file From 509043d8d4f0e8ab24894533e8070a976a588e3e Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 19 Aug 2022 14:52:05 +0800 Subject: [PATCH 2/7] update --- cmd/v2/lib/common/lang.go | 1 + cmd/v2/package.bat | 4 + cmd/v2/ui/toy_userinfo.go | 55 +++++----- modules/friend/api.go | 16 +++ modules/friend/api_applylist.go | 13 +-- modules/friend/api_blacklist.go | 12 +-- modules/friend/api_list.go | 15 +-- modules/friend/api_randlist.go | 29 +++--- modules/friend/api_zanlist.go | 13 +-- pb/errorcode.pb.go | 159 ++++++++++++++--------------- pb/friend_msg.pb.go | 8 +- pb/hero_db.pb.go | 171 ++++++++++---------------------- 12 files changed, 216 insertions(+), 280 deletions(-) create mode 100644 cmd/v2/package.bat diff --git a/cmd/v2/lib/common/lang.go b/cmd/v2/lib/common/lang.go index d06ee0f1d..7f9c6298b 100644 --- a/cmd/v2/lib/common/lang.go +++ b/cmd/v2/lib/common/lang.go @@ -152,6 +152,7 @@ const ( USERINFO_BTN_REFRESH = "刷新" USERINFO_PANEL_TITLE = "用户信息" USERINFO_UID = "UID" + USERINFO_SERVER = "区服" USERINFO_ACC = "账号" USERINFO_NAME = "昵称" USERINFO_TITLE = "头衔" diff --git a/cmd/v2/package.bat b/cmd/v2/package.bat new file mode 100644 index 000000000..880676c07 --- /dev/null +++ b/cmd/v2/package.bat @@ -0,0 +1,4 @@ +SET GOOS=windows +SET GOARCH=amd64 + +go build -o robot.exe \ No newline at end of file diff --git a/cmd/v2/ui/toy_userinfo.go b/cmd/v2/ui/toy_userinfo.go index 390f6ca2b..b8f813d95 100644 --- a/cmd/v2/ui/toy_userinfo.go +++ b/cmd/v2/ui/toy_userinfo.go @@ -96,18 +96,19 @@ func (this *toyUserInfo) dataListener() { // _ = this.data.Append(fmt.Sprintf("%-3s\t: %s", common.USERINFO_UID, this.userInfo.DbUser.Uid)) _ = this.data.Append(this.getAcc()) //0 - _ = this.data.Append(this.getName()) //1 - _ = this.data.Append(this.getAvatar()) //2 - _ = this.data.Append(this.getVip()) //3 - _ = this.data.Append(this.getLv()) //4 - _ = this.data.Append(this.getGold()) //5 - _ = this.data.Append(this.getExp()) //6 - _ = this.data.Append(this.getTitle()) //7 - _ = this.data.Append(this.getActiveDay()) //8 - _ = this.data.Append(this.getActiveWeek()) //9 - _ = this.data.Append(this.getFriendPoint()) //10 - _ = this.data.Append(this.getModiNameCount()) //11 - _ = this.data.Append(this.getSign()) //12 + _ = this.data.Append(this.getSid()) //1 + _ = this.data.Append(this.getName()) //2 + _ = this.data.Append(this.getAvatar()) //3 + _ = this.data.Append(this.getVip()) //4 + _ = this.data.Append(this.getLv()) //5 + _ = this.data.Append(this.getGold()) //6 + _ = this.data.Append(this.getExp()) //7 + _ = this.data.Append(this.getTitle()) //8 + _ = this.data.Append(this.getActiveDay()) //9 + _ = this.data.Append(this.getActiveWeek()) //10 + _ = this.data.Append(this.getFriendPoint()) //11 + _ = this.data.Append(this.getModiNameCount()) //12 + _ = this.data.Append(this.getSign()) //13 }, }) @@ -122,7 +123,7 @@ func (this *toyUserInfo) dataListener() { logrus.Error("unmarshal err") } // updatename - this.setProp(1, common.USERINFO_NAME, rsp.Name) + this.setProp(2, common.USERINFO_NAME, rsp.Name) } //update info @@ -133,17 +134,19 @@ func (this *toyUserInfo) dataListener() { logrus.Error("unmarshal err") return } - this.setProp(2, common.USERINFO_AVATAR, rsp.Data.Avatar) - this.setProp(3, common.USERINFO_VIP, rsp.Data.Vip) - this.setProp(4, common.USERINFO_LV, rsp.Data.Lv) - this.setProp(5, common.USERINFO_GOLD, rsp.Data.Gold) - this.setProp(6, common.USERINFO_EXP, rsp.Data.Exp) - this.setProp(7, common.USERINFO_TITLE, rsp.Data.Title) - this.setProp(8, common.USERINFO_ACTIVE_DAY, rsp.Ex.Activeday) - this.setProp(9, common.USERINFO_ACTIVE_WEEK, rsp.Ex.Activeweek) - this.setProp(10, common.USERINFO_FRIENDPOINT, rsp.Ex.FriendPoint) - this.setProp(11, common.USERINFO_MODINAME, rsp.Ex.ModifynameCount) - this.setProp(12, common.USERINFO_SIGN, rsp.Ex.Sign) + this.setProp(1, common.USERINFO_SERVER, rsp.Data.Sid) + this.setProp(2, common.USERINFO_NAME, rsp.Data.Name) + this.setProp(3, common.USERINFO_AVATAR, rsp.Data.Avatar) + this.setProp(4, common.USERINFO_VIP, rsp.Data.Vip) + this.setProp(5, common.USERINFO_LV, rsp.Data.Lv) + this.setProp(6, common.USERINFO_GOLD, rsp.Data.Gold) + this.setProp(7, common.USERINFO_EXP, rsp.Data.Exp) + this.setProp(8, common.USERINFO_TITLE, rsp.Data.Title) + this.setProp(9, common.USERINFO_ACTIVE_DAY, rsp.Ex.Activeday) + this.setProp(10, common.USERINFO_ACTIVE_WEEK, rsp.Ex.Activeweek) + this.setProp(11, common.USERINFO_FRIENDPOINT, rsp.Ex.FriendPoint) + this.setProp(12, common.USERINFO_MODINAME, rsp.Ex.ModifynameCount) + this.setProp(13, common.USERINFO_SIGN, rsp.Ex.Sign) } }, }) @@ -180,6 +183,10 @@ func (this *toyUserInfo) getAcc() string { return fmt.Sprintf("%-3s\t: %s", common.USERINFO_ACC, this.userInfo.DbUser.Binduid) } +func (this *toyUserInfo) getSid() string { + return fmt.Sprintf("%-3s\t: %s", common.USERINFO_SERVER, this.userInfo.DbUser.Sid) +} + func (this *toyUserInfo) getName() string { return fmt.Sprintf("%-3s\t: %s", common.USERINFO_NAME, this.userInfo.DbUser.Name) } diff --git a/modules/friend/api.go b/modules/friend/api.go index c631bc5b4..e6aab76c1 100644 --- a/modules/friend/api.go +++ b/modules/friend/api.go @@ -3,6 +3,7 @@ package friend import ( "go_dreamfactory/lego/core" "go_dreamfactory/modules" + "go_dreamfactory/pb" ) const ( @@ -33,3 +34,18 @@ func (this *apiComp) Init(service core.IService, module core.IModule, comp core. this.moduleFriend = module.(*Friend) return } + +func (this *apiComp) setDefaultFriendUserBaseInfo(userId string) *pb.FriendBase { + user := this.moduleFriend.ModuleUser.GetUser(userId) + if user != nil { + return &pb.FriendBase{ + ServerId: user.Sid, + UserId: userId, + NickName: user.Name, + Level: user.Lv, + Avatar: user.Avatar, + OfflineTime: user.Offlinetime, + } + } + return nil +} diff --git a/modules/friend/api_applylist.go b/modules/friend/api_applylist.go index 443576914..4dd95cc34 100644 --- a/modules/friend/api_applylist.go +++ b/modules/friend/api_applylist.go @@ -37,17 +37,10 @@ func (this *apiComp) ApplyList(session comm.IUserSession, req *pb.FriendApplyLis } for _, userId := range self.ApplyIds { - user := this.moduleFriend.ModuleUser.GetUser(userId) - if user == nil { - continue + base := this.setDefaultFriendUserBaseInfo(userId) + if base != nil { + list = append(list, base) } - //TODO 组装FriendBase明细数据 - list = append(list, &pb.FriendBase{ - UserId: userId, - NickName: user.Name, - Level: user.Lv, - Avatar: user.Avatar, - }) } return diff --git a/modules/friend/api_blacklist.go b/modules/friend/api_blacklist.go index cf8bb00ae..453be5dfa 100644 --- a/modules/friend/api_blacklist.go +++ b/modules/friend/api_blacklist.go @@ -38,16 +38,10 @@ func (this *apiComp) Blacklist(session comm.IUserSession, req *pb.FriendBlackLis } for _, userId := range self.BlackIds { - user := this.moduleFriend.ModuleUser.GetUser(userId) - if user == nil { - continue + base := this.setDefaultFriendUserBaseInfo(userId) + if base != nil { + list = append(list, base) } - - list = append(list, &pb.FriendBase{ - UserId: userId, - NickName: user.Name, - Level: user.Lv, - }) } return diff --git a/modules/friend/api_list.go b/modules/friend/api_list.go index 7b82e24e7..e144627d6 100644 --- a/modules/friend/api_list.go +++ b/modules/friend/api_list.go @@ -44,22 +44,15 @@ func (this *apiComp) List(session comm.IUserSession, req *pb.FriendListReq) (cod // 我的好友 for _, userId := range self.FriendIds { // 获取好友详情 - user := this.moduleFriend.ModuleUser.GetUser(userId) - if user == nil { + base := this.setDefaultFriendUserBaseInfo(userId) + if base == nil { continue } - base := &pb.FriendBase{ - UserId: userId, - NickName: user.Name, - Level: user.Lv, - Avatar: user.Avatar, - } - // 判断用户在线状态 us := this.moduleFriend.ModuleUser.GetUserSession(userId) - if us == nil || us.SessionId == "" { - base.OfflineTime = user.Offlinetime //离线时间 + if us != nil { + base.OfflineTime = 0 //在线 } // 判断是否已点赞 diff --git a/modules/friend/api_randlist.go b/modules/friend/api_randlist.go index 230063655..79217b67d 100644 --- a/modules/friend/api_randlist.go +++ b/modules/friend/api_randlist.go @@ -1,7 +1,6 @@ package friend import ( - "fmt" "go_dreamfactory/comm" "go_dreamfactory/pb" "go_dreamfactory/utils" @@ -25,10 +24,14 @@ func (this *apiComp) Randlist(session comm.IUserSession, req *pb.FriendRandlistR } // 只随机选择5个在线玩家 - // var randOnlineUsers []string + var randOnlineUsers []string if len(cu) > 5 { - fmt.Println(utils.Numbers(0, len(cu), 5)) - + randArr := utils.Numbers(0, len(cu), 5) + for _, v := range randArr { + if cu[v] != nil { + randOnlineUsers = append(randOnlineUsers, cu[v].Uid) + } + } } // 当前玩家好友数据 @@ -40,33 +43,31 @@ func (this *apiComp) Randlist(session comm.IUserSession, req *pb.FriendRandlistR var userList []*pb.FriendBase - for _, v := range cu { + for _, uid := range randOnlineUsers { // 将自己从在线玩家中过滤掉 - if v.Uid == session.GetUserId() { + if uid == session.GetUserId() { continue } // 将自己的好友从在线玩家中过滤掉 - if _, ok := utils.Findx(self.FriendIds, v.Uid); ok { + if _, ok := utils.Findx(self.FriendIds, uid); ok { continue } // 判断当前在线好友是否在自己的申请列表中,如果存在也过滤掉 - target := this.moduleFriend.modelFriend.GetFriend(v.Uid) + target := this.moduleFriend.modelFriend.GetFriend(uid) if target == nil { continue } // 获取在线好友的信息 - user := this.moduleFriend.ModuleUser.GetUser(v.Uid) + user := this.moduleFriend.ModuleUser.GetUser(uid) if user == nil { continue } - base := &pb.FriendBase{ - UserId: user.Uid, - NickName: user.Name, - Level: user.Lv, - OfflineTime: user.Offlinetime, + base := this.setDefaultFriendUserBaseInfo(uid) + if base == nil { + continue } // 申请过的在线好友,设置申请状态 diff --git a/modules/friend/api_zanlist.go b/modules/friend/api_zanlist.go index 3c0045be7..46f135adc 100644 --- a/modules/friend/api_zanlist.go +++ b/modules/friend/api_zanlist.go @@ -13,7 +13,7 @@ func (this *apiComp) ZanlistCheck(session comm.IUserSession, req *pb.FriendZanli return } -// Deprecated: +// Deprecated: func (this *apiComp) Zanlist(session comm.IUserSession, req *pb.FriendZanlistReq) (code pb.ErrorCode, data proto.Message) { if code = this.ZanlistCheck(session, req); code != pb.ErrorCode_Success { return @@ -31,15 +31,10 @@ func (this *apiComp) Zanlist(session comm.IUserSession, req *pb.FriendZanlistReq } for _, v := range self.ZanIds { - user := this.moduleFriend.ModuleUser.GetUser(v) - if user == nil { - continue + base := this.setDefaultFriendUserBaseInfo(v) + if base != nil { + list = append(list, base) } - - list = append(list, &pb.FriendBase{ - UserId: v, - NickName: user.Name, - }) } rsp := &pb.FriendZanlistResp{ diff --git a/pb/errorcode.pb.go b/pb/errorcode.pb.go index d826f7260..1c67f8477 100644 --- a/pb/errorcode.pb.go +++ b/pb/errorcode.pb.go @@ -84,31 +84,30 @@ const ( ErrorCode_ItemsGirdAmountUpper ErrorCode = 1203 //背包格子容量已达上限 ErrorCode_ItemsUseNotSupported ErrorCode = 1204 //暂不支持使用 // hero - ErrorCode_HeroNoExist ErrorCode = 1300 //英雄不存在 - ErrorCode_HeroNoEnough ErrorCode = 1301 //英雄数量不足 - ErrorCode_HeroMaxLv ErrorCode = 1302 //英雄达到最大等级 - ErrorCode_HeroInitCreat ErrorCode = 1303 //初始化英雄 - ErrorCode_HeroColorErr ErrorCode = 1304 // 品质不匹配 - ErrorCode_HeroSkillUpErr ErrorCode = 1305 // 技能升级失败 - ErrorCode_HeroMaxResonate ErrorCode = 1306 // 达到最大共鸣次数 - ErrorCode_HeroNoResonate ErrorCode = 1307 // 没有共鸣 - ErrorCode_HeroNotNeedResonate ErrorCode = 1308 // 不需要重置共鸣 - ErrorCode_HeroNoEnergy ErrorCode = 1309 // 没有能量点数 - ErrorCode_HeroCreate ErrorCode = 1310 // 创建卡失败 - ErrorCode_HeroEquipUpdate ErrorCode = 1311 // 更新装备失败 - ErrorCode_HeroMaxAwaken ErrorCode = 1312 // 达到最大觉醒等级 - ErrorCode_HeroIsLock ErrorCode = 1313 // 英雄被锁定不能被消耗 - ErrorCode_HeroMaxCount ErrorCode = 1314 // 英雄达到最大数量 - ErrorCode_HeroCostTypeErr ErrorCode = 1315 // 消耗英雄参数不匹配 - ErrorCode_HeroStarErr ErrorCode = 1316 // 不满足升星条件 - ErrorCode_HeroTypeErr ErrorCode = 1317 // 升级英雄类型不对 - ErrorCode_HeroExpTypeErr ErrorCode = 1318 // 技能升级卡类型不对 - ErrorCode_HeroAddMaxExp ErrorCode = 1319 // 升级经验卡溢出 检查传入的数量 - ErrorCode_HeroStarLvErr ErrorCode = 1320 // 升星等级不够 - ErrorCode_HeroMaxStarLv ErrorCode = 1321 // 达到最大升星等级 - ErrorCode_DrawCardTypeNotFound ErrorCode = 1322 // 抽卡类型不匹配 - ErrorCode_HeroMaxSkillLv ErrorCode = 1323 // 达到最大技能等级 - ErrorCode_HeroAlreadyKongFuStatus ErrorCode = 1324 // 已经是练功状态 + ErrorCode_HeroNoExist ErrorCode = 1300 //英雄不存在 + ErrorCode_HeroNoEnough ErrorCode = 1301 //英雄数量不足 + ErrorCode_HeroMaxLv ErrorCode = 1302 //英雄达到最大等级 + ErrorCode_HeroInitCreat ErrorCode = 1303 //初始化英雄 + ErrorCode_HeroColorErr ErrorCode = 1304 // 品质不匹配 + ErrorCode_HeroSkillUpErr ErrorCode = 1305 // 技能升级失败 + ErrorCode_HeroMaxResonate ErrorCode = 1306 // 达到最大共鸣次数 + ErrorCode_HeroNoResonate ErrorCode = 1307 // 没有共鸣 + ErrorCode_HeroNotNeedResonate ErrorCode = 1308 // 不需要重置共鸣 + ErrorCode_HeroNoEnergy ErrorCode = 1309 // 没有能量点数 + ErrorCode_HeroCreate ErrorCode = 1310 // 创建卡失败 + ErrorCode_HeroEquipUpdate ErrorCode = 1311 // 更新装备失败 + ErrorCode_HeroMaxAwaken ErrorCode = 1312 // 达到最大觉醒等级 + ErrorCode_HeroIsLock ErrorCode = 1313 // 英雄被锁定不能被消耗 + ErrorCode_HeroMaxCount ErrorCode = 1314 // 英雄达到最大数量 + ErrorCode_HeroCostTypeErr ErrorCode = 1315 // 消耗英雄参数不匹配 + ErrorCode_HeroStarErr ErrorCode = 1316 // 不满足升星条件 + ErrorCode_HeroTypeErr ErrorCode = 1317 // 升级英雄类型不对 + ErrorCode_HeroExpTypeErr ErrorCode = 1318 // 技能升级卡类型不对 + ErrorCode_HeroAddMaxExp ErrorCode = 1319 // 升级经验卡溢出 检查传入的数量 + ErrorCode_HeroStarLvErr ErrorCode = 1320 // 升星等级不够 + ErrorCode_HeroMaxStarLv ErrorCode = 1321 // 达到最大升星等级 + ErrorCode_DrawCardTypeNotFound ErrorCode = 1322 // 抽卡类型不匹配 + ErrorCode_HeroMaxSkillLv ErrorCode = 1323 // 达到最大技能等级 // equipment ErrorCode_EquipmentOnFoundEquipment ErrorCode = 1400 // 未找到武器 ErrorCode_EquipmentLvlimitReached ErrorCode = 1401 // 武器等级已达上限 @@ -239,7 +238,6 @@ var ( 1321: "HeroMaxStarLv", 1322: "DrawCardTypeNotFound", 1323: "HeroMaxSkillLv", - 1324: "HeroAlreadyKongFuStatus", 1400: "EquipmentOnFoundEquipment", 1401: "EquipmentLvlimitReached", 1402: "EquipmentIsWorn", @@ -358,7 +356,6 @@ var ( "HeroMaxStarLv": 1321, "DrawCardTypeNotFound": 1322, "HeroMaxSkillLv": 1323, - "HeroAlreadyKongFuStatus": 1324, "EquipmentOnFoundEquipment": 1400, "EquipmentLvlimitReached": 1401, "EquipmentIsWorn": 1402, @@ -428,7 +425,7 @@ var File_errorcode_proto protoreflect.FileDescriptor var file_errorcode_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2a, 0xd4, 0x13, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, + 0x6f, 0x2a, 0xb6, 0x13, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, @@ -533,60 +530,58 @@ var file_errorcode_proto_rawDesc = []byte{ 0x4c, 0x76, 0x10, 0xa9, 0x0a, 0x12, 0x19, 0x0a, 0x14, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xaa, 0x0a, 0x12, 0x13, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x53, 0x6b, 0x69, 0x6c, 0x6c, - 0x4c, 0x76, 0x10, 0xab, 0x0a, 0x12, 0x1c, 0x0a, 0x17, 0x48, 0x65, 0x72, 0x6f, 0x41, 0x6c, 0x72, - 0x65, 0x61, 0x64, 0x79, 0x4b, 0x6f, 0x6e, 0x67, 0x46, 0x75, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x10, 0xac, 0x0a, 0x12, 0x1e, 0x0a, 0x19, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, - 0x4f, 0x6e, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, - 0x10, 0xf8, 0x0a, 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, - 0x4c, 0x76, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x61, 0x63, 0x68, 0x65, 0x64, 0x10, 0xf9, - 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x73, - 0x57, 0x6f, 0x72, 0x6e, 0x10, 0xfa, 0x0a, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, 0x6e, 0x6c, - 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, - 0x72, 0x10, 0xdc, 0x0b, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, - 0x49, 0x44, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0xdd, 0x0b, 0x12, 0x15, 0x0a, 0x10, 0x4d, - 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, - 0xde, 0x0b, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, - 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xdf, 0x0b, 0x12, 0x19, 0x0a, 0x14, - 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x52, 0x65, - 0x77, 0x61, 0x72, 0x64, 0x10, 0xe0, 0x0b, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, 0x6e, 0x6c, - 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, - 0x64, 0x10, 0xe1, 0x0b, 0x12, 0x0d, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x69, 0x74, - 0x10, 0xc0, 0x0c, 0x12, 0x0e, 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x65, 0x74, - 0x10, 0xc1, 0x0c, 0x12, 0x0f, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x61, 0x6e, 0x64, 0x6c, - 0x65, 0x10, 0xc2, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x63, 0x65, - 0x69, 0x76, 0x65, 0x64, 0x10, 0xc3, 0x0c, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x41, - 0x63, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x10, 0xc4, 0x0c, 0x12, 0x16, 0x0a, 0x11, - 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x66, 0x6f, 0x75, 0x6e, - 0x64, 0x10, 0xc5, 0x0c, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, - 0x76, 0x65, 0x4e, 0x6f, 0x65, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0xc6, 0x0c, 0x12, 0x13, 0x0a, - 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, - 0xc7, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, - 0x65, 0x64, 0x10, 0xc8, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x61, 0x67, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xc9, 0x0c, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, - 0x49, 0x64, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xca, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, - 0x73, 0x6b, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xcb, 0x0c, 0x12, 0x17, 0x0a, - 0x12, 0x53, 0x68, 0x6f, 0x70, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x73, 0x53, 0x6f, 0x6c, 0x64, - 0x4f, 0x75, 0x74, 0x10, 0xa4, 0x0d, 0x12, 0x1c, 0x0a, 0x17, 0x53, 0x68, 0x6f, 0x70, 0x4e, 0x6f, - 0x53, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x75, - 0x6d, 0x10, 0xa5, 0x0d, 0x12, 0x0c, 0x0a, 0x07, 0x4d, 0x61, 0x69, 0x6c, 0x45, 0x72, 0x72, 0x10, - 0x88, 0x0e, 0x12, 0x13, 0x0a, 0x0e, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x4e, 0x6f, 0x74, 0x46, - 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xec, 0x0e, 0x12, 0x12, 0x0a, 0x0d, 0x50, 0x61, 0x67, 0x6f, 0x64, - 0x61, 0x4c, 0x65, 0x76, 0x6c, 0x45, 0x72, 0x72, 0x10, 0xed, 0x0e, 0x12, 0x17, 0x0a, 0x12, 0x50, - 0x61, 0x67, 0x6f, 0x64, 0x61, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x72, - 0x72, 0x10, 0xee, 0x0e, 0x12, 0x17, 0x0a, 0x12, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x43, 0x6f, - 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x10, 0xef, 0x0e, 0x12, 0x1b, 0x0a, - 0x16, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x74, 0x55, - 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xd0, 0x0f, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x61, - 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x10, 0xd1, - 0x0f, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, - 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xd2, 0x0f, 0x12, 0x19, 0x0a, 0x14, 0x47, - 0x6f, 0x75, 0x72, 0x6d, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, - 0x69, 0x6d, 0x65, 0x10, 0xb5, 0x10, 0x12, 0x16, 0x0a, 0x11, 0x47, 0x6f, 0x75, 0x72, 0x6d, 0x65, - 0x74, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x4d, 0x61, 0x78, 0x4c, 0x76, 0x10, 0xb6, 0x10, 0x12, 0x12, - 0x0a, 0x0d, 0x52, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, - 0x99, 0x11, 0x12, 0x14, 0x0a, 0x0f, 0x52, 0x74, 0x61, 0x73, 0x6b, 0x55, 0x6e, 0x46, 0x69, 0x6e, - 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, 0x9a, 0x11, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x4c, 0x76, 0x10, 0xab, 0x0a, 0x12, 0x1e, 0x0a, 0x19, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, + 0x6e, 0x74, 0x4f, 0x6e, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, + 0x6e, 0x74, 0x10, 0xf8, 0x0a, 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, + 0x6e, 0x74, 0x4c, 0x76, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x61, 0x63, 0x68, 0x65, 0x64, + 0x10, 0xf9, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, + 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6e, 0x10, 0xfa, 0x0a, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, + 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x70, + 0x74, 0x65, 0x72, 0x10, 0xdc, 0x0b, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, + 0x6e, 0x65, 0x49, 0x44, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0xdd, 0x0b, 0x12, 0x15, 0x0a, + 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, + 0x64, 0x10, 0xde, 0x0b, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, + 0x50, 0x72, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xdf, 0x0b, 0x12, 0x19, + 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, + 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x10, 0xe0, 0x0b, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, + 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x77, + 0x61, 0x72, 0x64, 0x10, 0xe1, 0x0b, 0x12, 0x0d, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, + 0x69, 0x74, 0x10, 0xc0, 0x0c, 0x12, 0x0e, 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, + 0x65, 0x74, 0x10, 0xc1, 0x0c, 0x12, 0x0f, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x61, 0x6e, + 0x64, 0x6c, 0x65, 0x10, 0xc2, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, + 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, 0xc3, 0x0c, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, + 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x10, 0xc4, 0x0c, 0x12, 0x16, + 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x66, 0x6f, + 0x75, 0x6e, 0x64, 0x10, 0xc5, 0x0c, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, + 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x65, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0xc6, 0x0c, 0x12, + 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, + 0x64, 0x10, 0xc7, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, + 0x73, 0x68, 0x65, 0x64, 0x10, 0xc8, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x54, + 0x61, 0x67, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xc9, 0x0c, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x61, + 0x73, 0x6b, 0x49, 0x64, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xca, 0x0c, 0x12, 0x11, 0x0a, 0x0c, + 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xcb, 0x0c, 0x12, + 0x17, 0x0a, 0x12, 0x53, 0x68, 0x6f, 0x70, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x73, 0x53, 0x6f, + 0x6c, 0x64, 0x4f, 0x75, 0x74, 0x10, 0xa4, 0x0d, 0x12, 0x1c, 0x0a, 0x17, 0x53, 0x68, 0x6f, 0x70, + 0x4e, 0x6f, 0x53, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, + 0x4e, 0x75, 0x6d, 0x10, 0xa5, 0x0d, 0x12, 0x0c, 0x0a, 0x07, 0x4d, 0x61, 0x69, 0x6c, 0x45, 0x72, + 0x72, 0x10, 0x88, 0x0e, 0x12, 0x13, 0x0a, 0x0e, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x4e, 0x6f, + 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xec, 0x0e, 0x12, 0x12, 0x0a, 0x0d, 0x50, 0x61, 0x67, + 0x6f, 0x64, 0x61, 0x4c, 0x65, 0x76, 0x6c, 0x45, 0x72, 0x72, 0x10, 0xed, 0x0e, 0x12, 0x17, 0x0a, + 0x12, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, + 0x45, 0x72, 0x72, 0x10, 0xee, 0x0e, 0x12, 0x17, 0x0a, 0x12, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, + 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x10, 0xef, 0x0e, 0x12, + 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, + 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xd0, 0x0f, 0x12, 0x15, 0x0a, 0x10, + 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x55, 0x73, 0x65, + 0x10, 0xd1, 0x0f, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, + 0x6c, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xd2, 0x0f, 0x12, 0x19, 0x0a, + 0x14, 0x47, 0x6f, 0x75, 0x72, 0x6d, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x65, 0x4f, 0x72, 0x64, 0x65, + 0x72, 0x54, 0x69, 0x6d, 0x65, 0x10, 0xb5, 0x10, 0x12, 0x16, 0x0a, 0x11, 0x47, 0x6f, 0x75, 0x72, + 0x6d, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x4d, 0x61, 0x78, 0x4c, 0x76, 0x10, 0xb6, 0x10, + 0x12, 0x12, 0x0a, 0x0d, 0x52, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, + 0x64, 0x10, 0x99, 0x11, 0x12, 0x14, 0x0a, 0x0f, 0x52, 0x74, 0x61, 0x73, 0x6b, 0x55, 0x6e, 0x46, + 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, 0x9a, 0x11, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, + 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pb/friend_msg.pb.go b/pb/friend_msg.pb.go index 0c641ad89..13f626649 100644 --- a/pb/friend_msg.pb.go +++ b/pb/friend_msg.pb.go @@ -30,7 +30,7 @@ type FriendBase struct { Level int32 `protobuf:"varint,3,opt,name=level,proto3" json:"level"` //等级 Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar"` //头像 Strength int64 `protobuf:"varint,5,opt,name=strength,proto3" json:"strength"` //战力 - ServerId int32 `protobuf:"varint,6,opt,name=serverId,proto3" json:"serverId"` //服务编号 + ServerId string `protobuf:"bytes,6,opt,name=serverId,proto3" json:"serverId"` //服务编号 OfflineTime int64 `protobuf:"varint,7,opt,name=offlineTime,proto3" json:"offlineTime"` //最近一次下线时间 0在线 IsApplied bool `protobuf:"varint,8,opt,name=isApplied,proto3" json:"isApplied"` //是否已申请加好友 IsZaned bool `protobuf:"varint,9,opt,name=isZaned,proto3" json:"isZaned"` //是否已点赞 @@ -104,11 +104,11 @@ func (x *FriendBase) GetStrength() int64 { return 0 } -func (x *FriendBase) GetServerId() int32 { +func (x *FriendBase) GetServerId() string { if x != nil { return x.ServerId } - return 0 + return "" } func (x *FriendBase) GetOfflineTime() int64 { @@ -1676,7 +1676,7 @@ var file_friend_friend_msg_proto_rawDesc = []byte{ 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, - 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x49, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x73, 0x41, 0x70, 0x70, 0x6c, 0x69, 0x65, diff --git a/pb/hero_db.pb.go b/pb/hero_db.pb.go index 372b05636..412337e60 100644 --- a/pb/hero_db.pb.go +++ b/pb/hero_db.pb.go @@ -20,52 +20,6 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type HeroType int32 - -const ( - HeroType_HeroTypeNil HeroType = 0 - HeroType_HeroTypeKongFu HeroType = 1 -) - -// Enum value maps for HeroType. -var ( - HeroType_name = map[int32]string{ - 0: "HeroTypeNil", - 1: "HeroTypeKongFu", - } - HeroType_value = map[string]int32{ - "HeroTypeNil": 0, - "HeroTypeKongFu": 1, - } -) - -func (x HeroType) Enum() *HeroType { - p := new(HeroType) - *p = x - return p -} - -func (x HeroType) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (HeroType) Descriptor() protoreflect.EnumDescriptor { - return file_hero_hero_db_proto_enumTypes[0].Descriptor() -} - -func (HeroType) Type() protoreflect.EnumType { - return &file_hero_hero_db_proto_enumTypes[0] -} - -func (x HeroType) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use HeroType.Descriptor instead. -func (HeroType) EnumDescriptor() ([]byte, []int) { - return file_hero_hero_db_proto_rawDescGZIP(), []int{0} -} - type SkillData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -151,7 +105,6 @@ type DBHero struct { IsOverlying bool `protobuf:"varint,23,opt,name=isOverlying,proto3" json:"isOverlying"` // go_tags(`bson:"isOverlying"`) 是否允许叠加 默认true EnergyProperty map[string]int32 `protobuf:"bytes,24,rep,name=energyProperty,proto3" json:"energyProperty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"energyProperty"` // JuexProperty map[string]int32 `protobuf:"bytes,25,rep,name=juexProperty,proto3" json:"juexProperty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"juexProperty"` ////hp - Status HeroType `protobuf:"varint,26,opt,name=status,proto3,enum=HeroType" json:"status"` // 状态 (1 练功) } func (x *DBHero) Reset() { @@ -361,13 +314,6 @@ func (x *DBHero) GetJuexProperty() map[string]int32 { return nil } -func (x *DBHero) GetStatus() HeroType { - if x != nil { - return x.Status - } - return HeroType_HeroTypeNil -} - type Floor struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -519,7 +465,7 @@ var file_hero_hero_db_proto_rawDesc = []byte{ 0x61, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6b, - 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x22, 0xb3, 0x09, 0x0a, 0x06, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, + 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x22, 0x90, 0x09, 0x0a, 0x06, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, @@ -572,45 +518,40 @@ var file_hero_hero_db_proto_rawDesc = []byte{ 0x0c, 0x6a, 0x75, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x2e, 0x4a, 0x75, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, - 0x6a, 0x75, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x48, - 0x65, 0x72, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, - 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, - 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, - 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, - 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x6a, 0x75, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x1a, 0x3b, 0x0a, 0x0d, + 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x64, 0x64, + 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, + 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, + 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x45, 0x6e, 0x65, + 0x72, 0x67, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x50, 0x72, + 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x45, 0x6e, 0x65, 0x72, 0x67, - 0x79, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x4a, 0x75, - 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x27, 0x0a, 0x05, 0x46, - 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x34, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x02, 0x68, 0x34, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x35, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x02, 0x68, 0x35, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, - 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x34, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x34, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x72, 0x35, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, - 0x61, 0x72, 0x35, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x72, 0x61, - 0x77, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x72, - 0x61, 0x77, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2a, 0x2f, 0x0a, 0x08, 0x48, 0x65, 0x72, 0x6f, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x4e, - 0x69, 0x6c, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x54, 0x79, 0x70, 0x65, - 0x4b, 0x6f, 0x6e, 0x67, 0x46, 0x75, 0x10, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x4a, 0x75, 0x65, 0x78, 0x50, + 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, + 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x27, 0x0a, 0x05, 0x46, 0x6c, 0x6f, 0x6f, + 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x34, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x68, + 0x34, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x35, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x68, + 0x35, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x65, 0x63, 0x6f, + 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x34, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x34, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, + 0x61, 0x72, 0x35, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x35, + 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x72, 0x61, 0x77, 0x63, 0x6f, + 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x72, 0x61, 0x77, 0x63, + 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -625,33 +566,30 @@ func file_hero_hero_db_proto_rawDescGZIP() []byte { return file_hero_hero_db_proto_rawDescData } -var file_hero_hero_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_hero_hero_db_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_hero_hero_db_proto_goTypes = []interface{}{ - (HeroType)(0), // 0: HeroType - (*SkillData)(nil), // 1: SkillData - (*DBHero)(nil), // 2: DBHero - (*Floor)(nil), // 3: Floor - (*DBHeroRecord)(nil), // 4: DBHeroRecord - nil, // 5: DBHero.PropertyEntry - nil, // 6: DBHero.AddPropertyEntry - nil, // 7: DBHero.EnergyEntry - nil, // 8: DBHero.EnergyPropertyEntry - nil, // 9: DBHero.JuexPropertyEntry + (*SkillData)(nil), // 0: SkillData + (*DBHero)(nil), // 1: DBHero + (*Floor)(nil), // 2: Floor + (*DBHeroRecord)(nil), // 3: DBHeroRecord + nil, // 4: DBHero.PropertyEntry + nil, // 5: DBHero.AddPropertyEntry + nil, // 6: DBHero.EnergyEntry + nil, // 7: DBHero.EnergyPropertyEntry + nil, // 8: DBHero.JuexPropertyEntry } var file_hero_hero_db_proto_depIdxs = []int32{ - 1, // 0: DBHero.normalSkill:type_name -> SkillData - 5, // 1: DBHero.property:type_name -> DBHero.PropertyEntry - 6, // 2: DBHero.addProperty:type_name -> DBHero.AddPropertyEntry - 7, // 3: DBHero.energy:type_name -> DBHero.EnergyEntry - 8, // 4: DBHero.energyProperty:type_name -> DBHero.EnergyPropertyEntry - 9, // 5: DBHero.juexProperty:type_name -> DBHero.JuexPropertyEntry - 0, // 6: DBHero.status:type_name -> HeroType - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name + 0, // 0: DBHero.normalSkill:type_name -> SkillData + 4, // 1: DBHero.property:type_name -> DBHero.PropertyEntry + 5, // 2: DBHero.addProperty:type_name -> DBHero.AddPropertyEntry + 6, // 3: DBHero.energy:type_name -> DBHero.EnergyEntry + 7, // 4: DBHero.energyProperty:type_name -> DBHero.EnergyPropertyEntry + 8, // 5: DBHero.juexProperty:type_name -> DBHero.JuexPropertyEntry + 6, // [6:6] is the sub-list for method output_type + 6, // [6:6] is the sub-list for method input_type + 6, // [6:6] is the sub-list for extension type_name + 6, // [6:6] is the sub-list for extension extendee + 0, // [0:6] is the sub-list for field type_name } func init() { file_hero_hero_db_proto_init() } @@ -714,14 +652,13 @@ func file_hero_hero_db_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_hero_hero_db_proto_rawDesc, - NumEnums: 1, + NumEnums: 0, NumMessages: 9, NumExtensions: 0, NumServices: 0, }, GoTypes: file_hero_hero_db_proto_goTypes, DependencyIndexes: file_hero_hero_db_proto_depIdxs, - EnumInfos: file_hero_hero_db_proto_enumTypes, MessageInfos: file_hero_hero_db_proto_msgTypes, }.Build() File_hero_hero_db_proto = out.File From 7bb58fa2ffd9b7a46fd8f76cb339247079ff1fee Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 19 Aug 2022 15:22:05 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=A5=BD=E5=8F=8B?= =?UTF-8?q?=E5=8A=A9=E6=88=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/friend/api.go | 1 + modules/friend/api_assistlist.go | 43 ++++++++ modules/friend/api_list.go | 4 - pb/chat_db.pb.go | 2 +- pb/errorcode.pb.go | 159 ++++++++++++++-------------- pb/friend_msg.pb.go | 168 +++++++++++++++++++++++++----- pb/hero_db.pb.go | 171 +++++++++++++++++++++---------- 7 files changed, 387 insertions(+), 161 deletions(-) create mode 100644 modules/friend/api_assistlist.go diff --git a/modules/friend/api.go b/modules/friend/api.go index e6aab76c1..2c72c0116 100644 --- a/modules/friend/api.go +++ b/modules/friend/api.go @@ -22,6 +22,7 @@ const ( FriendSubTypeRandList = "randlist" FriendSubTypeAssistHero = "assisthero" FriendSubTypeDel = "del" + FriendSbuTypeAssistlist = "assistlist" ) type apiComp struct { diff --git a/modules/friend/api_assistlist.go b/modules/friend/api_assistlist.go new file mode 100644 index 000000000..ac605699a --- /dev/null +++ b/modules/friend/api_assistlist.go @@ -0,0 +1,43 @@ +package friend + +import ( + "go_dreamfactory/comm" + "go_dreamfactory/pb" + + "google.golang.org/protobuf/proto" +) + +func (this *apiComp) AssistlistCheck(session comm.IUserSession, req *pb.FriendAssistlistReq) (code pb.ErrorCode) { + return +} + +func (this *apiComp) Assistlist(session comm.IUserSession, req *pb.FriendAssistlistReq) (code pb.ErrorCode, data proto.Message) { + var list []*pb.FriendBase + //获取玩家自己好友数据 + self := this.moduleFriend.modelFriend.GetFriend(session.GetUserId()) + if self == nil { + code = pb.ErrorCode_FriendSelfNoData + return + } + + for _, uid := range self.FriendIds { + base := this.setDefaultFriendUserBaseInfo(uid) + if base != nil { + // 获取好友信息 + target := this.moduleFriend.modelFriend.GetFriend(uid) + if target == nil { + continue + } + base.HeroObjId = target.AssistHeroId + list = append(list, base) + } + } + + rsp := &pb.FriendAssistlistResp{ + List: list, + } + if err := session.SendMsg(string(this.moduleFriend.GetType()), FriendSbuTypeAssistlist, rsp); err != nil { + code = pb.ErrorCode_SystemError + } + return +} diff --git a/modules/friend/api_list.go b/modules/friend/api_list.go index e144627d6..d0bc1915a 100644 --- a/modules/friend/api_list.go +++ b/modules/friend/api_list.go @@ -18,13 +18,11 @@ func (this *apiComp) List(session comm.IUserSession, req *pb.FriendListReq) (cod self *pb.DBFriend Resp *pb.FriendListResp list []*pb.FriendBase - heroObjId string ) defer func() { Resp = &pb.FriendListResp{ List: list, - HeroObjId: heroObjId, } err := session.SendMsg(string(this.moduleFriend.GetType()), FriendSubTypeList, Resp) if err != nil { @@ -38,8 +36,6 @@ func (this *apiComp) List(session comm.IUserSession, req *pb.FriendListReq) (cod code = pb.ErrorCode_FriendSelfNoData return } - // 助战英雄ID - heroObjId = self.AssistHeroId // 我的好友 for _, userId := range self.FriendIds { diff --git a/pb/chat_db.pb.go b/pb/chat_db.pb.go index 615edd8c2..bbcb6d05e 100644 --- a/pb/chat_db.pb.go +++ b/pb/chat_db.pb.go @@ -80,7 +80,7 @@ type DBChat struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //主键id Channel ChatChannel `protobuf:"varint,2,opt,name=channel,proto3,enum=ChatChannel" json:"channel"` //频道 Suid string `protobuf:"bytes,3,opt,name=suid,proto3" json:"suid"` //发送用户id Slv int32 `protobuf:"varint,4,opt,name=slv,proto3" json:"slv"` //发送者等级 diff --git a/pb/errorcode.pb.go b/pb/errorcode.pb.go index 1c67f8477..d826f7260 100644 --- a/pb/errorcode.pb.go +++ b/pb/errorcode.pb.go @@ -84,30 +84,31 @@ const ( ErrorCode_ItemsGirdAmountUpper ErrorCode = 1203 //背包格子容量已达上限 ErrorCode_ItemsUseNotSupported ErrorCode = 1204 //暂不支持使用 // hero - ErrorCode_HeroNoExist ErrorCode = 1300 //英雄不存在 - ErrorCode_HeroNoEnough ErrorCode = 1301 //英雄数量不足 - ErrorCode_HeroMaxLv ErrorCode = 1302 //英雄达到最大等级 - ErrorCode_HeroInitCreat ErrorCode = 1303 //初始化英雄 - ErrorCode_HeroColorErr ErrorCode = 1304 // 品质不匹配 - ErrorCode_HeroSkillUpErr ErrorCode = 1305 // 技能升级失败 - ErrorCode_HeroMaxResonate ErrorCode = 1306 // 达到最大共鸣次数 - ErrorCode_HeroNoResonate ErrorCode = 1307 // 没有共鸣 - ErrorCode_HeroNotNeedResonate ErrorCode = 1308 // 不需要重置共鸣 - ErrorCode_HeroNoEnergy ErrorCode = 1309 // 没有能量点数 - ErrorCode_HeroCreate ErrorCode = 1310 // 创建卡失败 - ErrorCode_HeroEquipUpdate ErrorCode = 1311 // 更新装备失败 - ErrorCode_HeroMaxAwaken ErrorCode = 1312 // 达到最大觉醒等级 - ErrorCode_HeroIsLock ErrorCode = 1313 // 英雄被锁定不能被消耗 - ErrorCode_HeroMaxCount ErrorCode = 1314 // 英雄达到最大数量 - ErrorCode_HeroCostTypeErr ErrorCode = 1315 // 消耗英雄参数不匹配 - ErrorCode_HeroStarErr ErrorCode = 1316 // 不满足升星条件 - ErrorCode_HeroTypeErr ErrorCode = 1317 // 升级英雄类型不对 - ErrorCode_HeroExpTypeErr ErrorCode = 1318 // 技能升级卡类型不对 - ErrorCode_HeroAddMaxExp ErrorCode = 1319 // 升级经验卡溢出 检查传入的数量 - ErrorCode_HeroStarLvErr ErrorCode = 1320 // 升星等级不够 - ErrorCode_HeroMaxStarLv ErrorCode = 1321 // 达到最大升星等级 - ErrorCode_DrawCardTypeNotFound ErrorCode = 1322 // 抽卡类型不匹配 - ErrorCode_HeroMaxSkillLv ErrorCode = 1323 // 达到最大技能等级 + ErrorCode_HeroNoExist ErrorCode = 1300 //英雄不存在 + ErrorCode_HeroNoEnough ErrorCode = 1301 //英雄数量不足 + ErrorCode_HeroMaxLv ErrorCode = 1302 //英雄达到最大等级 + ErrorCode_HeroInitCreat ErrorCode = 1303 //初始化英雄 + ErrorCode_HeroColorErr ErrorCode = 1304 // 品质不匹配 + ErrorCode_HeroSkillUpErr ErrorCode = 1305 // 技能升级失败 + ErrorCode_HeroMaxResonate ErrorCode = 1306 // 达到最大共鸣次数 + ErrorCode_HeroNoResonate ErrorCode = 1307 // 没有共鸣 + ErrorCode_HeroNotNeedResonate ErrorCode = 1308 // 不需要重置共鸣 + ErrorCode_HeroNoEnergy ErrorCode = 1309 // 没有能量点数 + ErrorCode_HeroCreate ErrorCode = 1310 // 创建卡失败 + ErrorCode_HeroEquipUpdate ErrorCode = 1311 // 更新装备失败 + ErrorCode_HeroMaxAwaken ErrorCode = 1312 // 达到最大觉醒等级 + ErrorCode_HeroIsLock ErrorCode = 1313 // 英雄被锁定不能被消耗 + ErrorCode_HeroMaxCount ErrorCode = 1314 // 英雄达到最大数量 + ErrorCode_HeroCostTypeErr ErrorCode = 1315 // 消耗英雄参数不匹配 + ErrorCode_HeroStarErr ErrorCode = 1316 // 不满足升星条件 + ErrorCode_HeroTypeErr ErrorCode = 1317 // 升级英雄类型不对 + ErrorCode_HeroExpTypeErr ErrorCode = 1318 // 技能升级卡类型不对 + ErrorCode_HeroAddMaxExp ErrorCode = 1319 // 升级经验卡溢出 检查传入的数量 + ErrorCode_HeroStarLvErr ErrorCode = 1320 // 升星等级不够 + ErrorCode_HeroMaxStarLv ErrorCode = 1321 // 达到最大升星等级 + ErrorCode_DrawCardTypeNotFound ErrorCode = 1322 // 抽卡类型不匹配 + ErrorCode_HeroMaxSkillLv ErrorCode = 1323 // 达到最大技能等级 + ErrorCode_HeroAlreadyKongFuStatus ErrorCode = 1324 // 已经是练功状态 // equipment ErrorCode_EquipmentOnFoundEquipment ErrorCode = 1400 // 未找到武器 ErrorCode_EquipmentLvlimitReached ErrorCode = 1401 // 武器等级已达上限 @@ -238,6 +239,7 @@ var ( 1321: "HeroMaxStarLv", 1322: "DrawCardTypeNotFound", 1323: "HeroMaxSkillLv", + 1324: "HeroAlreadyKongFuStatus", 1400: "EquipmentOnFoundEquipment", 1401: "EquipmentLvlimitReached", 1402: "EquipmentIsWorn", @@ -356,6 +358,7 @@ var ( "HeroMaxStarLv": 1321, "DrawCardTypeNotFound": 1322, "HeroMaxSkillLv": 1323, + "HeroAlreadyKongFuStatus": 1324, "EquipmentOnFoundEquipment": 1400, "EquipmentLvlimitReached": 1401, "EquipmentIsWorn": 1402, @@ -425,7 +428,7 @@ var File_errorcode_proto protoreflect.FileDescriptor var file_errorcode_proto_rawDesc = []byte{ 0x0a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2a, 0xb6, 0x13, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, + 0x6f, 0x2a, 0xd4, 0x13, 0x0a, 0x09, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x10, 0x0a, 0x12, 0x1b, 0x0a, 0x17, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, @@ -530,58 +533,60 @@ var file_errorcode_proto_rawDesc = []byte{ 0x4c, 0x76, 0x10, 0xa9, 0x0a, 0x12, 0x19, 0x0a, 0x14, 0x44, 0x72, 0x61, 0x77, 0x43, 0x61, 0x72, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xaa, 0x0a, 0x12, 0x13, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x4d, 0x61, 0x78, 0x53, 0x6b, 0x69, 0x6c, 0x6c, - 0x4c, 0x76, 0x10, 0xab, 0x0a, 0x12, 0x1e, 0x0a, 0x19, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, - 0x6e, 0x74, 0x4f, 0x6e, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, - 0x6e, 0x74, 0x10, 0xf8, 0x0a, 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, - 0x6e, 0x74, 0x4c, 0x76, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x61, 0x63, 0x68, 0x65, 0x64, - 0x10, 0xf9, 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, - 0x49, 0x73, 0x57, 0x6f, 0x72, 0x6e, 0x10, 0xfa, 0x0a, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, - 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x70, - 0x74, 0x65, 0x72, 0x10, 0xdc, 0x0b, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, - 0x6e, 0x65, 0x49, 0x44, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0xdd, 0x0b, 0x12, 0x15, 0x0a, - 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, - 0x64, 0x10, 0xde, 0x0b, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, - 0x50, 0x72, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xdf, 0x0b, 0x12, 0x19, - 0x0a, 0x14, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, - 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x10, 0xe0, 0x0b, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, - 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x77, - 0x61, 0x72, 0x64, 0x10, 0xe1, 0x0b, 0x12, 0x0d, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, - 0x69, 0x74, 0x10, 0xc0, 0x0c, 0x12, 0x0e, 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, - 0x65, 0x74, 0x10, 0xc1, 0x0c, 0x12, 0x0f, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x61, 0x6e, - 0x64, 0x6c, 0x65, 0x10, 0xc2, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, - 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x10, 0xc3, 0x0c, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, - 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x10, 0xc4, 0x0c, 0x12, 0x16, - 0x0a, 0x11, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x66, 0x6f, - 0x75, 0x6e, 0x64, 0x10, 0xc5, 0x0c, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, - 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x65, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0xc6, 0x0c, 0x12, - 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, - 0x64, 0x10, 0xc7, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, - 0x73, 0x68, 0x65, 0x64, 0x10, 0xc8, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x54, - 0x61, 0x67, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xc9, 0x0c, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x61, - 0x73, 0x6b, 0x49, 0x64, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xca, 0x0c, 0x12, 0x11, 0x0a, 0x0c, - 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xcb, 0x0c, 0x12, - 0x17, 0x0a, 0x12, 0x53, 0x68, 0x6f, 0x70, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x73, 0x53, 0x6f, - 0x6c, 0x64, 0x4f, 0x75, 0x74, 0x10, 0xa4, 0x0d, 0x12, 0x1c, 0x0a, 0x17, 0x53, 0x68, 0x6f, 0x70, - 0x4e, 0x6f, 0x53, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, - 0x4e, 0x75, 0x6d, 0x10, 0xa5, 0x0d, 0x12, 0x0c, 0x0a, 0x07, 0x4d, 0x61, 0x69, 0x6c, 0x45, 0x72, - 0x72, 0x10, 0x88, 0x0e, 0x12, 0x13, 0x0a, 0x0e, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x4e, 0x6f, - 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xec, 0x0e, 0x12, 0x12, 0x0a, 0x0d, 0x50, 0x61, 0x67, - 0x6f, 0x64, 0x61, 0x4c, 0x65, 0x76, 0x6c, 0x45, 0x72, 0x72, 0x10, 0xed, 0x0e, 0x12, 0x17, 0x0a, - 0x12, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, - 0x45, 0x72, 0x72, 0x10, 0xee, 0x0e, 0x12, 0x17, 0x0a, 0x12, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, - 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x10, 0xef, 0x0e, 0x12, - 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, - 0x74, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xd0, 0x0f, 0x12, 0x15, 0x0a, 0x10, - 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x55, 0x73, 0x65, - 0x10, 0xd1, 0x0f, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, - 0x6c, 0x6c, 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xd2, 0x0f, 0x12, 0x19, 0x0a, - 0x14, 0x47, 0x6f, 0x75, 0x72, 0x6d, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x65, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x54, 0x69, 0x6d, 0x65, 0x10, 0xb5, 0x10, 0x12, 0x16, 0x0a, 0x11, 0x47, 0x6f, 0x75, 0x72, - 0x6d, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x4d, 0x61, 0x78, 0x4c, 0x76, 0x10, 0xb6, 0x10, - 0x12, 0x12, 0x0a, 0x0d, 0x52, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, - 0x64, 0x10, 0x99, 0x11, 0x12, 0x14, 0x0a, 0x0f, 0x52, 0x74, 0x61, 0x73, 0x6b, 0x55, 0x6e, 0x46, - 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, 0x9a, 0x11, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, - 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x4c, 0x76, 0x10, 0xab, 0x0a, 0x12, 0x1c, 0x0a, 0x17, 0x48, 0x65, 0x72, 0x6f, 0x41, 0x6c, 0x72, + 0x65, 0x61, 0x64, 0x79, 0x4b, 0x6f, 0x6e, 0x67, 0x46, 0x75, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x10, 0xac, 0x0a, 0x12, 0x1e, 0x0a, 0x19, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, + 0x4f, 0x6e, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, + 0x10, 0xf8, 0x0a, 0x12, 0x1c, 0x0a, 0x17, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, + 0x4c, 0x76, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x52, 0x65, 0x61, 0x63, 0x68, 0x65, 0x64, 0x10, 0xf9, + 0x0a, 0x12, 0x14, 0x0a, 0x0f, 0x45, 0x71, 0x75, 0x69, 0x70, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x73, + 0x57, 0x6f, 0x72, 0x6e, 0x10, 0xfa, 0x0a, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, 0x6e, 0x6c, + 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x69, 0x6e, 0x64, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, + 0x72, 0x10, 0xdc, 0x0b, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, + 0x49, 0x44, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0xdd, 0x0b, 0x12, 0x15, 0x0a, 0x10, 0x4d, + 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, + 0xde, 0x0b, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x50, 0x72, + 0x65, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xdf, 0x0b, 0x12, 0x19, 0x0a, 0x14, + 0x4d, 0x61, 0x69, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x70, 0x65, 0x61, 0x74, 0x52, 0x65, + 0x77, 0x61, 0x72, 0x64, 0x10, 0xe0, 0x0b, 0x12, 0x1b, 0x0a, 0x16, 0x4d, 0x61, 0x69, 0x6e, 0x6c, + 0x69, 0x6e, 0x65, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x77, 0x61, 0x72, + 0x64, 0x10, 0xe1, 0x0b, 0x12, 0x0d, 0x0a, 0x08, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x6e, 0x69, 0x74, + 0x10, 0xc0, 0x0c, 0x12, 0x0e, 0x0a, 0x09, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x65, 0x74, + 0x10, 0xc1, 0x0c, 0x12, 0x0f, 0x0a, 0x0a, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x61, 0x6e, 0x64, 0x6c, + 0x65, 0x10, 0xc2, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x63, 0x65, + 0x69, 0x76, 0x65, 0x64, 0x10, 0xc3, 0x0c, 0x12, 0x13, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x41, + 0x63, 0x74, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x69, 0x74, 0x10, 0xc4, 0x0c, 0x12, 0x16, 0x0a, 0x11, + 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x4e, 0x6f, 0x66, 0x6f, 0x75, 0x6e, + 0x64, 0x10, 0xc5, 0x0c, 0x12, 0x17, 0x0a, 0x12, 0x54, 0x61, 0x73, 0x6b, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x4e, 0x6f, 0x65, 0x6e, 0x6f, 0x75, 0x67, 0x68, 0x10, 0xc6, 0x0c, 0x12, 0x13, 0x0a, + 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x4e, 0x6f, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, + 0xc7, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, + 0x65, 0x64, 0x10, 0xc8, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x61, 0x67, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xc9, 0x0c, 0x12, 0x10, 0x0a, 0x0b, 0x54, 0x61, 0x73, 0x6b, + 0x49, 0x64, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x10, 0xca, 0x0c, 0x12, 0x11, 0x0a, 0x0c, 0x54, 0x61, + 0x73, 0x6b, 0x4e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xcb, 0x0c, 0x12, 0x17, 0x0a, + 0x12, 0x53, 0x68, 0x6f, 0x70, 0x47, 0x6f, 0x6f, 0x64, 0x73, 0x49, 0x73, 0x53, 0x6f, 0x6c, 0x64, + 0x4f, 0x75, 0x74, 0x10, 0xa4, 0x0d, 0x12, 0x1c, 0x0a, 0x17, 0x53, 0x68, 0x6f, 0x70, 0x4e, 0x6f, + 0x53, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x52, 0x65, 0x66, 0x72, 0x65, 0x73, 0x68, 0x4e, 0x75, + 0x6d, 0x10, 0xa5, 0x0d, 0x12, 0x0c, 0x0a, 0x07, 0x4d, 0x61, 0x69, 0x6c, 0x45, 0x72, 0x72, 0x10, + 0x88, 0x0e, 0x12, 0x13, 0x0a, 0x0e, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x4e, 0x6f, 0x74, 0x46, + 0x6f, 0x75, 0x6e, 0x64, 0x10, 0xec, 0x0e, 0x12, 0x12, 0x0a, 0x0d, 0x50, 0x61, 0x67, 0x6f, 0x64, + 0x61, 0x4c, 0x65, 0x76, 0x6c, 0x45, 0x72, 0x72, 0x10, 0xed, 0x0e, 0x12, 0x17, 0x0a, 0x12, 0x50, + 0x61, 0x67, 0x6f, 0x64, 0x61, 0x47, 0x65, 0x74, 0x52, 0x65, 0x77, 0x61, 0x72, 0x64, 0x45, 0x72, + 0x72, 0x10, 0xee, 0x0e, 0x12, 0x17, 0x0a, 0x12, 0x50, 0x61, 0x67, 0x6f, 0x64, 0x61, 0x43, 0x6f, + 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x72, 0x72, 0x10, 0xef, 0x0e, 0x12, 0x1b, 0x0a, + 0x16, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x4e, 0x6f, 0x74, 0x55, + 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xd0, 0x0f, 0x12, 0x15, 0x0a, 0x10, 0x4d, 0x61, + 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, 0x49, 0x6e, 0x55, 0x73, 0x65, 0x10, 0xd1, + 0x0f, 0x12, 0x18, 0x0a, 0x13, 0x4d, 0x61, 0x72, 0x74, 0x69, 0x61, 0x6c, 0x68, 0x61, 0x6c, 0x6c, + 0x55, 0x6e, 0x6c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x10, 0xd2, 0x0f, 0x12, 0x19, 0x0a, 0x14, 0x47, + 0x6f, 0x75, 0x72, 0x6d, 0x65, 0x74, 0x4d, 0x6f, 0x72, 0x65, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x54, + 0x69, 0x6d, 0x65, 0x10, 0xb5, 0x10, 0x12, 0x16, 0x0a, 0x11, 0x47, 0x6f, 0x75, 0x72, 0x6d, 0x65, + 0x74, 0x53, 0x6b, 0x69, 0x6c, 0x6c, 0x4d, 0x61, 0x78, 0x4c, 0x76, 0x10, 0xb6, 0x10, 0x12, 0x12, + 0x0a, 0x0d, 0x52, 0x74, 0x61, 0x73, 0x6b, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, + 0x99, 0x11, 0x12, 0x14, 0x0a, 0x0f, 0x52, 0x74, 0x61, 0x73, 0x6b, 0x55, 0x6e, 0x46, 0x69, 0x6e, + 0x69, 0x73, 0x68, 0x65, 0x64, 0x10, 0x9a, 0x11, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pb/friend_msg.pb.go b/pb/friend_msg.pb.go index 13f626649..157533f80 100644 --- a/pb/friend_msg.pb.go +++ b/pb/friend_msg.pb.go @@ -35,6 +35,7 @@ type FriendBase struct { IsApplied bool `protobuf:"varint,8,opt,name=isApplied,proto3" json:"isApplied"` //是否已申请加好友 IsZaned bool `protobuf:"varint,9,opt,name=isZaned,proto3" json:"isZaned"` //是否已点赞 IsGetZaned bool `protobuf:"varint,10,opt,name=isGetZaned,proto3" json:"isGetZaned"` //是否已获赞 + HeroObjId string `protobuf:"bytes,11,opt,name=heroObjId,proto3" json:"heroObjId"` //助战英雄ID } func (x *FriendBase) Reset() { @@ -139,6 +140,13 @@ func (x *FriendBase) GetIsGetZaned() bool { return false } +func (x *FriendBase) GetHeroObjId() string { + if x != nil { + return x.HeroObjId + } + return "" +} + //好友列表 type FriendListReq struct { state protoimpl.MessageState @@ -183,8 +191,7 @@ type FriendListResp struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - List []*FriendBase `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` - HeroObjId string `protobuf:"bytes,2,opt,name=heroObjId,proto3" json:"heroObjId"` + List []*FriendBase `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` } func (x *FriendListResp) Reset() { @@ -226,13 +233,6 @@ func (x *FriendListResp) GetList() []*FriendBase { return nil } -func (x *FriendListResp) GetHeroObjId() string { - if x != nil { - return x.HeroObjId - } - return "" -} - // 随机的在线玩家 type FriendRandlistReq struct { state protoimpl.MessageState @@ -1662,11 +1662,97 @@ func (x *FriendAssistheroResp) GetHeroObjId() string { return "" } +//助战列表 +type FriendAssistlistReq struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *FriendAssistlistReq) Reset() { + *x = FriendAssistlistReq{} + if protoimpl.UnsafeEnabled { + mi := &file_friend_friend_msg_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FriendAssistlistReq) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FriendAssistlistReq) ProtoMessage() {} + +func (x *FriendAssistlistReq) ProtoReflect() protoreflect.Message { + mi := &file_friend_friend_msg_proto_msgTypes[33] + 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 FriendAssistlistReq.ProtoReflect.Descriptor instead. +func (*FriendAssistlistReq) Descriptor() ([]byte, []int) { + return file_friend_friend_msg_proto_rawDescGZIP(), []int{33} +} + +type FriendAssistlistResp struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + List []*FriendBase `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` +} + +func (x *FriendAssistlistResp) Reset() { + *x = FriendAssistlistResp{} + if protoimpl.UnsafeEnabled { + mi := &file_friend_friend_msg_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FriendAssistlistResp) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FriendAssistlistResp) ProtoMessage() {} + +func (x *FriendAssistlistResp) ProtoReflect() protoreflect.Message { + mi := &file_friend_friend_msg_proto_msgTypes[34] + 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 FriendAssistlistResp.ProtoReflect.Descriptor instead. +func (*FriendAssistlistResp) Descriptor() ([]byte, []int) { + return file_friend_friend_msg_proto_rawDescGZIP(), []int{34} +} + +func (x *FriendAssistlistResp) GetList() []*FriendBase { + if x != nil { + return x.List + } + return nil +} + var File_friend_friend_msg_proto protoreflect.FileDescriptor var file_friend_friend_msg_proto_rawDesc = []byte{ 0x0a, 0x17, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x2f, 0x66, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x5f, - 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa0, 0x02, 0x0a, 0x0a, 0x46, 0x72, + 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xbe, 0x02, 0x0a, 0x0a, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, @@ -1684,13 +1770,13 @@ var file_friend_friend_msg_proto_rawDesc = []byte{ 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x69, 0x73, 0x5a, 0x61, 0x6e, 0x65, 0x64, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x69, 0x73, 0x5a, 0x61, 0x6e, 0x65, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x69, 0x73, 0x47, 0x65, 0x74, 0x5a, 0x61, 0x6e, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0a, 0x69, 0x73, 0x47, 0x65, 0x74, 0x5a, 0x61, 0x6e, 0x65, 0x64, 0x22, 0x0f, 0x0a, 0x0d, - 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x4f, 0x0a, - 0x0e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, - 0x1f, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, - 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, - 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x22, 0x13, + 0x52, 0x0a, 0x69, 0x73, 0x47, 0x65, 0x74, 0x5a, 0x61, 0x6e, 0x65, 0x64, 0x12, 0x1c, 0x0a, 0x09, + 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x22, 0x0f, 0x0a, 0x0d, 0x46, 0x72, + 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x31, 0x0a, 0x0e, 0x46, + 0x72, 0x69, 0x65, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, + 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x46, 0x72, + 0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, 0x73, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x6e, 0x64, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x35, 0x0a, 0x12, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x52, 0x61, 0x6e, 0x64, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x6c, 0x69, 0x73, @@ -1782,7 +1868,12 @@ var file_friend_friend_msg_proto_rawDesc = []byte{ 0x49, 0x64, 0x22, 0x34, 0x0a, 0x14, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x68, 0x65, 0x72, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, - 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, + 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x46, 0x72, 0x69, 0x65, + 0x6e, 0x64, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, + 0x37, 0x0a, 0x14, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x6c, + 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, + 0x73, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } @@ -1798,7 +1889,7 @@ func file_friend_friend_msg_proto_rawDescGZIP() []byte { return file_friend_friend_msg_proto_rawDescData } -var file_friend_friend_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 33) +var file_friend_friend_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 35) var file_friend_friend_msg_proto_goTypes = []interface{}{ (*FriendBase)(nil), // 0: FriendBase (*FriendListReq)(nil), // 1: FriendListReq @@ -1833,6 +1924,8 @@ var file_friend_friend_msg_proto_goTypes = []interface{}{ (*FriendZanreceiveResp)(nil), // 30: FriendZanreceiveResp (*FriendAssistheroReq)(nil), // 31: FriendAssistheroReq (*FriendAssistheroResp)(nil), // 32: FriendAssistheroResp + (*FriendAssistlistReq)(nil), // 33: FriendAssistlistReq + (*FriendAssistlistResp)(nil), // 34: FriendAssistlistResp } var file_friend_friend_msg_proto_depIdxs = []int32{ 0, // 0: FriendListResp.list:type_name -> FriendBase @@ -1841,11 +1934,12 @@ var file_friend_friend_msg_proto_depIdxs = []int32{ 0, // 3: FriendSearchResp.friend:type_name -> FriendBase 0, // 4: FriendBlackListResp.friends:type_name -> FriendBase 0, // 5: FriendZanlistResp.list:type_name -> FriendBase - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 0, // 6: FriendAssistlistResp.list:type_name -> FriendBase + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_friend_friend_msg_proto_init() } @@ -2250,6 +2344,30 @@ func file_friend_friend_msg_proto_init() { return nil } } + file_friend_friend_msg_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FriendAssistlistReq); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_friend_friend_msg_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*FriendAssistlistResp); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } type x struct{} out := protoimpl.TypeBuilder{ @@ -2257,7 +2375,7 @@ func file_friend_friend_msg_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_friend_friend_msg_proto_rawDesc, NumEnums: 0, - NumMessages: 33, + NumMessages: 35, NumExtensions: 0, NumServices: 0, }, diff --git a/pb/hero_db.pb.go b/pb/hero_db.pb.go index 412337e60..372b05636 100644 --- a/pb/hero_db.pb.go +++ b/pb/hero_db.pb.go @@ -20,6 +20,52 @@ const ( _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) +type HeroType int32 + +const ( + HeroType_HeroTypeNil HeroType = 0 + HeroType_HeroTypeKongFu HeroType = 1 +) + +// Enum value maps for HeroType. +var ( + HeroType_name = map[int32]string{ + 0: "HeroTypeNil", + 1: "HeroTypeKongFu", + } + HeroType_value = map[string]int32{ + "HeroTypeNil": 0, + "HeroTypeKongFu": 1, + } +) + +func (x HeroType) Enum() *HeroType { + p := new(HeroType) + *p = x + return p +} + +func (x HeroType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (HeroType) Descriptor() protoreflect.EnumDescriptor { + return file_hero_hero_db_proto_enumTypes[0].Descriptor() +} + +func (HeroType) Type() protoreflect.EnumType { + return &file_hero_hero_db_proto_enumTypes[0] +} + +func (x HeroType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use HeroType.Descriptor instead. +func (HeroType) EnumDescriptor() ([]byte, []int) { + return file_hero_hero_db_proto_rawDescGZIP(), []int{0} +} + type SkillData struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -105,6 +151,7 @@ type DBHero struct { IsOverlying bool `protobuf:"varint,23,opt,name=isOverlying,proto3" json:"isOverlying"` // go_tags(`bson:"isOverlying"`) 是否允许叠加 默认true EnergyProperty map[string]int32 `protobuf:"bytes,24,rep,name=energyProperty,proto3" json:"energyProperty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"energyProperty"` // JuexProperty map[string]int32 `protobuf:"bytes,25,rep,name=juexProperty,proto3" json:"juexProperty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"juexProperty"` ////hp + Status HeroType `protobuf:"varint,26,opt,name=status,proto3,enum=HeroType" json:"status"` // 状态 (1 练功) } func (x *DBHero) Reset() { @@ -314,6 +361,13 @@ func (x *DBHero) GetJuexProperty() map[string]int32 { return nil } +func (x *DBHero) GetStatus() HeroType { + if x != nil { + return x.Status + } + return HeroType_HeroTypeNil +} + type Floor struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -465,7 +519,7 @@ var file_hero_hero_db_proto_rawDesc = []byte{ 0x61, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x6b, 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x6b, - 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x22, 0x90, 0x09, 0x0a, 0x06, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, + 0x69, 0x6c, 0x6c, 0x4c, 0x76, 0x22, 0xb3, 0x09, 0x0a, 0x06, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x49, 0x44, 0x18, 0x03, 0x20, 0x01, @@ -518,40 +572,45 @@ var file_hero_hero_db_proto_rawDesc = []byte{ 0x0c, 0x6a, 0x75, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x19, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x2e, 0x4a, 0x75, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, - 0x6a, 0x75, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x1a, 0x3b, 0x0a, 0x0d, - 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x64, 0x64, - 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, 0x45, 0x6e, 0x65, - 0x72, 0x67, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x50, 0x72, - 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, + 0x6a, 0x75, 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x21, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x48, + 0x65, 0x72, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x1a, + 0x3b, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, + 0x41, 0x64, 0x64, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x39, 0x0a, 0x0b, + 0x45, 0x6e, 0x65, 0x72, 0x67, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x4a, 0x75, 0x65, 0x78, 0x50, - 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x27, 0x0a, 0x05, 0x46, 0x6c, 0x6f, 0x6f, - 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x34, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x68, - 0x34, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x35, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x68, - 0x35, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x65, 0x63, 0x6f, - 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, - 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x34, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x34, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, - 0x61, 0x72, 0x35, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x35, - 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, - 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x72, 0x61, 0x77, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x72, 0x61, 0x77, 0x63, - 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x41, 0x0a, 0x13, 0x45, 0x6e, 0x65, 0x72, 0x67, + 0x79, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x4a, 0x75, + 0x65, 0x78, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x27, 0x0a, 0x05, 0x46, + 0x6c, 0x6f, 0x6f, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x34, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x02, 0x68, 0x34, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x35, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x02, 0x68, 0x35, 0x22, 0x90, 0x01, 0x0a, 0x0c, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, + 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x34, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x34, 0x12, 0x14, 0x0a, + 0x05, 0x73, 0x74, 0x61, 0x72, 0x35, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, + 0x61, 0x72, 0x35, 0x12, 0x14, 0x0a, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x03, 0x52, 0x05, 0x6d, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x64, 0x72, 0x61, + 0x77, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x64, 0x72, + 0x61, 0x77, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2a, 0x2f, 0x0a, 0x08, 0x48, 0x65, 0x72, 0x6f, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x0f, 0x0a, 0x0b, 0x48, 0x65, 0x72, 0x6f, 0x54, 0x79, 0x70, 0x65, 0x4e, + 0x69, 0x6c, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x48, 0x65, 0x72, 0x6f, 0x54, 0x79, 0x70, 0x65, + 0x4b, 0x6f, 0x6e, 0x67, 0x46, 0x75, 0x10, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -566,30 +625,33 @@ func file_hero_hero_db_proto_rawDescGZIP() []byte { return file_hero_hero_db_proto_rawDescData } +var file_hero_hero_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_hero_hero_db_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_hero_hero_db_proto_goTypes = []interface{}{ - (*SkillData)(nil), // 0: SkillData - (*DBHero)(nil), // 1: DBHero - (*Floor)(nil), // 2: Floor - (*DBHeroRecord)(nil), // 3: DBHeroRecord - nil, // 4: DBHero.PropertyEntry - nil, // 5: DBHero.AddPropertyEntry - nil, // 6: DBHero.EnergyEntry - nil, // 7: DBHero.EnergyPropertyEntry - nil, // 8: DBHero.JuexPropertyEntry + (HeroType)(0), // 0: HeroType + (*SkillData)(nil), // 1: SkillData + (*DBHero)(nil), // 2: DBHero + (*Floor)(nil), // 3: Floor + (*DBHeroRecord)(nil), // 4: DBHeroRecord + nil, // 5: DBHero.PropertyEntry + nil, // 6: DBHero.AddPropertyEntry + nil, // 7: DBHero.EnergyEntry + nil, // 8: DBHero.EnergyPropertyEntry + nil, // 9: DBHero.JuexPropertyEntry } var file_hero_hero_db_proto_depIdxs = []int32{ - 0, // 0: DBHero.normalSkill:type_name -> SkillData - 4, // 1: DBHero.property:type_name -> DBHero.PropertyEntry - 5, // 2: DBHero.addProperty:type_name -> DBHero.AddPropertyEntry - 6, // 3: DBHero.energy:type_name -> DBHero.EnergyEntry - 7, // 4: DBHero.energyProperty:type_name -> DBHero.EnergyPropertyEntry - 8, // 5: DBHero.juexProperty:type_name -> DBHero.JuexPropertyEntry - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 1, // 0: DBHero.normalSkill:type_name -> SkillData + 5, // 1: DBHero.property:type_name -> DBHero.PropertyEntry + 6, // 2: DBHero.addProperty:type_name -> DBHero.AddPropertyEntry + 7, // 3: DBHero.energy:type_name -> DBHero.EnergyEntry + 8, // 4: DBHero.energyProperty:type_name -> DBHero.EnergyPropertyEntry + 9, // 5: DBHero.juexProperty:type_name -> DBHero.JuexPropertyEntry + 0, // 6: DBHero.status:type_name -> HeroType + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_hero_hero_db_proto_init() } @@ -652,13 +714,14 @@ func file_hero_hero_db_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_hero_hero_db_proto_rawDesc, - NumEnums: 0, + NumEnums: 1, NumMessages: 9, NumExtensions: 0, NumServices: 0, }, GoTypes: file_hero_hero_db_proto_goTypes, DependencyIndexes: file_hero_hero_db_proto_depIdxs, + EnumInfos: file_hero_hero_db_proto_enumTypes, MessageInfos: file_hero_hero_db_proto_msgTypes, }.Build() File_hero_hero_db_proto = out.File From 781466ba5794eb5a65cf93b98842502afd3eea69 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 19 Aug 2022 15:31:13 +0800 Subject: [PATCH 4/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8A=A9=E6=88=98?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/friend/api_assistlist.go | 3 ++- pb/friend_msg.pb.go | 18 ++++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/modules/friend/api_assistlist.go b/modules/friend/api_assistlist.go index ac605699a..53bf2743f 100644 --- a/modules/friend/api_assistlist.go +++ b/modules/friend/api_assistlist.go @@ -34,7 +34,8 @@ func (this *apiComp) Assistlist(session comm.IUserSession, req *pb.FriendAssistl } rsp := &pb.FriendAssistlistResp{ - List: list, + List: list, + HeroObjId: self.AssistHeroId, } if err := session.SendMsg(string(this.moduleFriend.GetType()), FriendSbuTypeAssistlist, rsp); err != nil { code = pb.ErrorCode_SystemError diff --git a/pb/friend_msg.pb.go b/pb/friend_msg.pb.go index 157533f80..c591f2deb 100644 --- a/pb/friend_msg.pb.go +++ b/pb/friend_msg.pb.go @@ -1706,7 +1706,8 @@ type FriendAssistlistResp struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - List []*FriendBase `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` + List []*FriendBase `protobuf:"bytes,1,rep,name=list,proto3" json:"list"` + HeroObjId string `protobuf:"bytes,2,opt,name=heroObjId,proto3" json:"heroObjId"` } func (x *FriendAssistlistResp) Reset() { @@ -1748,6 +1749,13 @@ func (x *FriendAssistlistResp) GetList() []*FriendBase { return nil } +func (x *FriendAssistlistResp) GetHeroObjId() string { + if x != nil { + return x.HeroObjId + } + return "" +} + var File_friend_friend_msg_proto protoreflect.FileDescriptor var file_friend_friend_msg_proto_rawDesc = []byte{ @@ -1870,11 +1878,13 @@ var file_friend_friend_msg_proto_rawDesc = []byte{ 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, - 0x37, 0x0a, 0x14, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x6c, + 0x55, 0x0a, 0x14, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x41, 0x73, 0x73, 0x69, 0x73, 0x74, 0x6c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x42, 0x61, - 0x73, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x65, 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x68, 0x65, 0x72, 0x6f, + 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x65, 0x72, + 0x6f, 0x4f, 0x62, 0x6a, 0x49, 0x64, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( From 10ab7cc7b2cabb51cbd152c0574d5e0b542058ee Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 19 Aug 2022 17:13:08 +0800 Subject: [PATCH 5/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0gui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + cmd/v2/main.go | 24 +++++++++++++++++++++--- cmd/v2/package.bat | 4 ---- cmd/v2/ui/app_gen.go | 10 +++++----- cmd/v2/ui/ui.go | 10 ++++++++-- 5 files changed, 35 insertions(+), 14 deletions(-) delete mode 100644 cmd/v2/package.bat diff --git a/.gitignore b/.gitignore index 9b0924393..782a02199 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ pb/proto cmd/luban/ pb.bat cmd/v2/.cache.meta +cmd/v2/my.db diff --git a/cmd/v2/main.go b/cmd/v2/main.go index 59a0cb173..c079523a1 100644 --- a/cmd/v2/main.go +++ b/cmd/v2/main.go @@ -8,6 +8,7 @@ import ( "go_dreamfactory/cmd/v2/theme" "go_dreamfactory/cmd/v2/ui" "io" + "log" "os" "fyne.io/fyne/v2" @@ -28,6 +29,7 @@ var ( // func init() { + _ = os.Setenv("FYNE_SCALE", "0.9") var err error if err = setupConfig(); err != nil { @@ -62,9 +64,10 @@ func main() { app := app.NewWithID("protocol-test-tool") app.SetIcon(theme.ResourceIconPng) appUI := ui.NewUI(app, configService, connService, pttService, obs) + // logLifecycle(app) //创建enter - w := fyne.CurrentApp().NewWindow("") + w := fyne.CurrentApp().NewWindow("传送门") w.SetContent(container.NewGridWithColumns(2, widget.NewButton("工具", func() { toolWindow := ui.NewToolWindow(appUI) @@ -78,12 +81,27 @@ func main() { }))) w.SetFixedSize(true) w.Resize(fyne.NewSize(300, 100)) - w.Show() w.CenterOnScreen() logrus.WithField("version", app.Metadata().Version).Info("app starting") + w.Show() appUI.Run() } +func logLifecycle(a fyne.App) { + a.Lifecycle().SetOnStarted(func() { + log.Println("Lifecycle: Started") + }) + a.Lifecycle().SetOnStopped(func() { + log.Println("Lifecycle: Stopped") + }) + a.Lifecycle().SetOnEnteredForeground(func() { + log.Println("Lifecycle: Entered Foreground") + }) + a.Lifecycle().SetOnExitedForeground(func() { + log.Println("Lifecycle: Exited Foreground") + }) +} + func setupPtt() (err error) { pttService = service.NewPttService(connService) return @@ -121,7 +139,7 @@ func setupLogger() (err error) { logrus.SetOutput(os.Stdout) //设置output,默认为stderr,可以为任何io.Writer,比如文件*os.File - file, err := os.OpenFile("robot_v2.log", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666) + file, err := os.OpenFile("robot.log", os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666) writers := []io.Writer{ file, os.Stdout} diff --git a/cmd/v2/package.bat b/cmd/v2/package.bat deleted file mode 100644 index 880676c07..000000000 --- a/cmd/v2/package.bat +++ /dev/null @@ -1,4 +0,0 @@ -SET GOOS=windows -SET GOARCH=amd64 - -go build -o robot.exe \ No newline at end of file diff --git a/cmd/v2/ui/app_gen.go b/cmd/v2/ui/app_gen.go index f0b3a06ef..1658251b2 100644 --- a/cmd/v2/ui/app_gen.go +++ b/cmd/v2/ui/app_gen.go @@ -37,17 +37,17 @@ func (this *appGen) LazyInit(obs observer.Observer) error { content.Objects = []fyne.CanvasObject{} serverAddr := widget.NewEntry() - serverAddr.PlaceHolder = "服务器地址" + serverAddr.PlaceHolder = "服务器地址 例如: 10.0.1.11" projectDir := widget.NewEntry() - projectDir.PlaceHolder = "项目目录" + projectDir.PlaceHolder = "项目目录 例如: E:\\projects\\workspace\\go_dreamfactory" workDir := widget.NewEntry() - workDir.PlaceHolder = "LuBan目录" + workDir.PlaceHolder = "LuBan目录 例如: E:\\svn\\dreamworks\\client\\dreamworks\\ExcelFile" // client client := widget.NewEntry() - client.PlaceHolder = "配置Luban Client.exe路径" + client.PlaceHolder = "配置Luban Client.exe路径 例如: \\Luban.Client\\Luban.Client.exe" //define define := widget.NewEntry() @@ -72,7 +72,7 @@ func (this *appGen) LazyInit(obs observer.Observer) error { genType.PlaceHolder = "生成类型" if gt != nil { - serverAddr.Text = gt.ServerAddr //10.0.1.11 + serverAddr.Text = gt.ServerAddr projectDir.Text = gt.ProjectDir //"E:\\projects\\workspace\\go_dreamfactory" workDir.Text = gt.WorkDir // "E:\\svn\\dreamworks\\client\\dreamworks\\ExcelFile" client.Text = gt.Client //"\\Luban.Client\\Luban.Client.exe" diff --git a/cmd/v2/ui/ui.go b/cmd/v2/ui/ui.go index 52180f278..5580b2af4 100644 --- a/cmd/v2/ui/ui.go +++ b/cmd/v2/ui/ui.go @@ -3,11 +3,12 @@ package ui import ( "go_dreamfactory/cmd/v2/service" "go_dreamfactory/cmd/v2/service/observer" + "go_dreamfactory/cmd/v2/theme" + "os" "sync" - "go_dreamfactory/cmd/v2/theme" - "fyne.io/fyne/v2" + "github.com/BabySid/gobase" ) type UI interface { @@ -52,6 +53,11 @@ func (ui *UIImpl) AddWindow(name string, w fyne.Window) { } func (ui *UIImpl) Run() { + defer func() { + _ = os.Unsetenv("FYNE_SCALE") + + gobase.Exit() + }() ui.app.Run() } From 42673f6bbe760070fc2c337f44295d56ce759ad8 Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 19 Aug 2022 18:13:13 +0800 Subject: [PATCH 6/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/json/game_com.json | 146 - bin/json/game_hero.json | 2860 ++++++++++++++++- bin/json/game_msgdistrib.json | 5 - .../{game_rdtaskall.json => game_rdtask.json} | 144 +- bin/json/game_rdtaskchoose.json | 72 +- bin/json/game_rdtaskcondi.json | 58 + bin/json/game_rdtasktype.json | 74 - bin/json/game_smithy.json | 120 +- bin/json/game_smithystove.json | 120 +- cmd/v2/model/item.go | 3 - cmd/v2/ui/views/friend_agree.go | 3 + cmd/v2/ui/views/friend_list.go | 1 + modules/rtask/api_choose.go | 2 +- modules/rtask/config.go | 22 +- modules/rtask/model_rtask.go | 12 +- modules/rtask/module.go | 6 +- sys/configure/structs/Game.BuffType.go | 34 + sys/configure/structs/Game.ChatExpression.go | 42 + .../structs/Game.ChatExpressionData.go | 41 + sys/configure/structs/Game.Rdtask.go | 42 + sys/configure/structs/Game.RdtaskCondi.go | 42 + ...askTypeData.go => Game.RdtaskCondiData.go} | 26 +- ...me.rdtaskAllData.go => Game.RdtaskData.go} | 62 +- sys/configure/structs/Game.Smithy.go | 42 + sys/configure/structs/Game.SmithyData.go | 100 + sys/configure/structs/Game.SmithyStove.go | 42 + sys/configure/structs/Game.SmithyStoveData.go | 64 + sys/configure/structs/Tables.go | 40 +- sys/configure/structs/game.com.go | 42 - sys/configure/structs/game.comData.go | 235 -- sys/configure/structs/game.rdtaskAll.go | 42 - sys/configure/structs/game.rdtaskChoose.go | 2 +- .../structs/game.rdtaskChooseData.go | 16 +- sys/configure/structs/game.rdtaskType.go | 42 - 34 files changed, 3643 insertions(+), 961 deletions(-) delete mode 100644 bin/json/game_com.json rename bin/json/{game_rdtaskall.json => game_rdtask.json} (59%) create mode 100644 bin/json/game_rdtaskcondi.json delete mode 100644 bin/json/game_rdtasktype.json create mode 100644 sys/configure/structs/Game.BuffType.go create mode 100644 sys/configure/structs/Game.ChatExpression.go create mode 100644 sys/configure/structs/Game.ChatExpressionData.go create mode 100644 sys/configure/structs/Game.Rdtask.go create mode 100644 sys/configure/structs/Game.RdtaskCondi.go rename sys/configure/structs/{game.rdtaskTypeData.go => Game.RdtaskCondiData.go} (54%) rename sys/configure/structs/{game.rdtaskAllData.go => Game.RdtaskData.go} (56%) create mode 100644 sys/configure/structs/Game.Smithy.go create mode 100644 sys/configure/structs/Game.SmithyData.go create mode 100644 sys/configure/structs/Game.SmithyStove.go create mode 100644 sys/configure/structs/Game.SmithyStoveData.go delete mode 100644 sys/configure/structs/game.com.go delete mode 100644 sys/configure/structs/game.comData.go delete mode 100644 sys/configure/structs/game.rdtaskAll.go delete mode 100644 sys/configure/structs/game.rdtaskType.go diff --git a/bin/json/game_com.json b/bin/json/game_com.json deleted file mode 100644 index 93dac2336..000000000 --- a/bin/json/game_com.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "max_char": 100, - "task_reset": 8, - "init_gold": 100000, - "init_hero": [ - 15001, - 25001 - ], - "cameramin": [ - 0, - 0, - 0 - ], - "max_getreward": [ - 10002, - 99 - ], - "cameramax": [ - -1.53, - 1.1, - -8 - ], - "heroshownum": 2, - "equipsuitsum": [ - 4, - 4, - 4, - 4, - 2, - 2 - ], - "friend_maxnum": 50, - "friend_minnum": 0, - "friend_maxgetnum": 20, - "friend_maxsendnum": 50, - "friend_date": 7, - "friend_recordtime": 7, - "friend_black": 50, - "channel_cd_world": 5, - "channel_cd_guild": 3, - "channel_cd_private": 3, - "channel_cd_public": 15, - "channel_lock_icon": 200, - "max_word": 200, - "max_chat": 99, - "max_object": 50, - "load_chat": 10, - "channel_allocation_max": 2000, - "channel_switching_max": 3000, - "draw_toplimit": 9999, - "draw10_star4_max": 8, - "draw10_star5_max": 2, - "draw_floor_star4": 20, - "draw_floor_star5": 100, - "duplicate_removal": 1, - "base_pool_cost": { - "a": "item", - "t": "10018", - "n": 1 - }, - "camp1_pool_cost": { - "a": "item", - "t": "10017", - "n": 1 - }, - "camp2_pool_cost": { - "a": "item", - "t": "10017", - "n": 1 - }, - "camp3_pool_cost": { - "a": "item", - "t": "10017", - "n": 1 - }, - "camp4_pool_cost": { - "a": "item", - "t": "10017", - "n": 1 - }, - "base_pool_10cost": { - "a": "item", - "t": "10018", - "n": 10 - }, - "camp1_pool_10cost": { - "a": "item", - "t": "10017", - "n": 10 - }, - "camp2_pool_10cost": { - "a": "item", - "t": "10017", - "n": 10 - }, - "camp3_pool_10cost": { - "a": "item", - "t": "10017", - "n": 10 - }, - "camp4_pool_10cost": { - "a": "item", - "t": "10017", - "n": 10 - }, - "camp1_pool1": "camp1_pool", - "camp2_pool1": "camp2_pool", - "camp3_pool1": "camp3_pool", - "camp4_pool1": "camp4_pool", - "base_pool1": { - "s": 1, - "e": 60, - "p": "base_pool1" - }, - "base_pool2": { - "s": 61, - "e": 200, - "p": "base_pool2" - }, - "base_pool3": { - "s": 201, - "e": 1000, - "p": "base_pool3" - }, - "base_pool4": { - "s": 1000, - "e": 99999999, - "p": "base_pool4" - }, - "base_pool_star3": 9000, - "base_pool_star4": 900, - "base_pool_star5": 100, - "camp_pool_star3": 9000, - "camp_pool_star4": 900, - "camp_pool_star5": 100, - "gourmet": 3600, - "smithy_maxplayer": 20, - "smithy_maxtime": 36000, - "chat_expression_small": [ - "lt_bq_icon001,lt_bq_icon002,lt_bq_icon003,lt_bq_icon004,lt_bq_icon005,lt_bq_icon006,lt_bq_icon007,lt_bq_icon008,lt_bq_icon009,lt_bq_icon010,lt_bq_icon011,lt_bq_icon012" - ], - "viking_num": 10, - "kungfu_time": 30 - } -] \ No newline at end of file diff --git a/bin/json/game_hero.json b/bin/json/game_hero.json index 483952857..5f0c7a0b6 100644 --- a/bin/json/game_hero.json +++ b/bin/json/game_hero.json @@ -3153,7 +3153,7 @@ "hid": "51001", "name": { "key": "hero_51001", - "text": "啵啵星人(新增)" + "text": "啵啵星人 " }, "star": 2, "color": 1, @@ -3195,7 +3195,7 @@ "hid": "51002", "name": { "key": "hero_51002", - "text": "埃雷特手下1号(新增)" + "text": "埃雷特手下1号 " }, "star": 2, "color": 1, @@ -3237,7 +3237,7 @@ "hid": "51003", "name": { "key": "hero_51003", - "text": "埃雷特手下2号(新增)" + "text": "埃雷特手下2号 " }, "star": 2, "color": 1, @@ -3279,7 +3279,7 @@ "hid": "51004", "name": { "key": "hero_51004", - "text": "豺狼小怪(新增)" + "text": "豺狼小怪 " }, "star": 2, "color": 1, @@ -3321,7 +3321,7 @@ "hid": "51005", "name": { "key": "hero_51005", - "text": "犀牛守卫(新增)" + "text": "犀牛守卫 " }, "star": 2, "color": 1, @@ -3363,7 +3363,7 @@ "hid": "51006", "name": { "key": "hero_51006", - "text": "香塔尔 杜布瓦队长手下1号(新增)" + "text": "香塔尔 杜布瓦队长手下1号 " }, "star": 2, "color": 1, @@ -3405,7 +3405,7 @@ "hid": "51007", "name": { "key": "hero_51007", - "text": "香塔尔 杜布瓦队长手下2号(新增)" + "text": "香塔尔 杜布瓦队长手下2号 " }, "star": 2, "color": 1, @@ -3447,7 +3447,7 @@ "hid": "51008", "name": { "key": "hero_51008", - "text": "香塔尔 杜布瓦队长手下3号(新增)" + "text": "香塔尔 杜布瓦队长手下3号 " }, "star": 2, "color": 1, @@ -3489,7 +3489,7 @@ "hid": "51009", "name": { "key": "hero_51009", - "text": "香塔尔 杜布瓦队长手下4号(新增)" + "text": "香塔尔 杜布瓦队长手下4号 " }, "star": 2, "color": 1, @@ -3531,7 +3531,7 @@ "hid": "51010", "name": { "key": "hero_51010", - "text": "警卫1号(新增)" + "text": "警卫1号 " }, "star": 2, "color": 1, @@ -3573,7 +3573,7 @@ "hid": "51011", "name": { "key": "hero_51011", - "text": "警卫2号(新增)" + "text": "警卫2号 " }, "star": 2, "color": 1, @@ -3615,7 +3615,7 @@ "hid": "51012", "name": { "key": "hero_51012", - "text": "小猴子(新增)" + "text": "小猴子 " }, "star": 2, "color": 1, @@ -3657,7 +3657,7 @@ "hid": "51013", "name": { "key": "hero_51013", - "text": "巨怪啰啰(新增)" + "text": "巨怪啰啰 " }, "star": 2, "color": 1, @@ -3699,7 +3699,7 @@ "hid": "51014", "name": { "key": "hero_51014", - "text": "博啃族宫廷守卫(新增)" + "text": "博啃族宫廷守卫 " }, "star": 2, "color": 1, @@ -3737,11 +3737,53 @@ "enteranivalue": 0, "camerainterval": 0 }, + { + "hid": "54001", + "name": { + "key": "hero_52001", + "text": "致命纳得" + }, + "star": 4, + "color": 1, + "race": 4, + "job": 1, + "type": 5, + "handbook": 0, + "prefab": 54001, + "rotation": "0|0|0", + "icon": 54001, + "vocal": "54001", + "tujing": [ + 1 + ], + "intr": { + "key": "", + "text": "" + }, + "events": "hero_54001", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "hero_55100", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, { "hid": "53001", "name": { "key": "hero_53001", - "text": "埃雷特(新增)" + "text": "埃雷特 " }, "star": 3, "color": 2, @@ -3783,7 +3825,7 @@ "hid": "53002", "name": { "key": "hero_53002", - "text": "豺狼头领(新增)" + "text": "豺狼头领 " }, "star": 3, "color": 2, @@ -3825,7 +3867,7 @@ "hid": "53003", "name": { "key": "hero_53003", - "text": "豪猪大师(翡翠僵尸)(新增)" + "text": "豪猪大师(翡翠僵尸) " }, "star": 3, "color": 2, @@ -3867,7 +3909,7 @@ "hid": "53004", "name": { "key": "hero_53004", - "text": "双獾大师(翡翠僵尸)(新增)" + "text": "双獾大师(翡翠僵尸) " }, "star": 3, "color": 2, @@ -3909,7 +3951,7 @@ "hid": "53005", "name": { "key": "hero_53005", - "text": "小猴子首领(新增)" + "text": "小猴子首领 " }, "star": 3, "color": 2, @@ -3951,7 +3993,7 @@ "hid": "53006", "name": { "key": "hero_53006", - "text": "巨怪首领(新增)" + "text": "巨怪首领 " }, "star": 3, "color": 2, @@ -3993,7 +4035,7 @@ "hid": "55001", "name": { "key": "hero_55001", - "text": "香塔尔 杜布瓦队长" + "text": "火龙" }, "star": 5, "color": 4, @@ -4035,7 +4077,7 @@ "hid": "55002", "name": { "key": "hero_55002", - "text": "亨得利克斯(新增)" + "text": "巨型猩猩怪兽" }, "star": 5, "color": 4, @@ -4077,7 +4119,7 @@ "hid": "55003", "name": { "key": "hero_55003", - "text": "巨型猩猩怪兽(新增)" + "text": "黑龙王" }, "star": 5, "color": 4, @@ -4119,7 +4161,7 @@ "hid": "55004", "name": { "key": "hero_55004", - "text": "白龙王" + "text": "大厨" }, "star": 5, "color": 4, @@ -4161,7 +4203,7 @@ "hid": "55005", "name": { "key": "hero_55005", - "text": "大厨(新增)" + "text": "火焰泰坦" }, "star": 5, "color": 4, @@ -4203,7 +4245,7 @@ "hid": "55006", "name": { "key": "hero_55006", - "text": "德雷格(新增)" + "text": "森林泰坦" }, "star": 5, "color": 4, @@ -4245,7 +4287,7 @@ "hid": "55007", "name": { "key": "hero_55007", - "text": "莫甘娜巨怪" + "text": "冰霜泰坦" }, "star": 5, "color": 4, @@ -4283,48 +4325,6 @@ "enteranivalue": 0, "camerainterval": 0 }, - { - "hid": "55008", - "name": { - "key": "hero_55008", - "text": "莫甘娜二阶" - }, - "star": 5, - "color": 4, - "race": 4, - "job": 2, - "type": 5, - "handbook": -1, - "prefab": 55008, - "rotation": "0|0|0", - "icon": 55008, - "vocal": "55008", - "tujing": [ - 1 - ], - "intr": { - "key": "", - "text": "" - }, - "events": "hero_55008", - "cite": "", - "effectstay": [], - "hpspace": { - "x": 0, - "y": 0, - "z": 0 - }, - "skill": 190011000, - "skill1": 190012000, - "skill2": 190013000, - "skill3": 190014000, - "txt": { - "key": "hero_55114", - "text": "" - }, - "enteranivalue": 0, - "camerainterval": 0 - }, { "hid": "11001", "name": { @@ -5092,7 +5092,7 @@ "hid": "12003", "name": { "key": "hero_24003", - "text": "睡神沙人" + "text": "黑化波比" }, "star": 5, "color": 4, @@ -5385,5 +5385,2725 @@ }, "enteranivalue": 0, "camerainterval": 0.6 + }, + { + "hid": "63001", + "name": { + "key": "hero_63001", + "text": "黑化闪闪" + }, + "star": 3, + "color": 2, + "race": 1, + "job": 2, + "type": 1, + "handbook": 0, + "prefab": 63001, + "rotation": "", + "icon": 63001, + "vocal": "63001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "63002", + "name": { + "key": "hero_63002", + "text": "黑化食人鱼先生" + }, + "star": 3, + "color": 2, + "race": 1, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 63002, + "rotation": "", + "icon": 63002, + "vocal": "63002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "63003", + "name": { + "key": "hero_63003", + "text": "黑化啊啊" + }, + "star": 3, + "color": 2, + "race": 1, + "job": 2, + "type": 1, + "handbook": 0, + "prefab": 63003, + "rotation": "", + "icon": 63003, + "vocal": "63003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "63004", + "name": { + "key": "hero_63004", + "text": "黑化法夸德勋爵" + }, + "star": 3, + "color": 2, + "race": 1, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 63004, + "rotation": "", + "icon": 63004, + "vocal": "63004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "63005", + "name": { + "key": "hero_63005", + "text": "黑化大大" + }, + "star": 3, + "color": 2, + "race": 1, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 63005, + "rotation": "", + "icon": 63005, + "vocal": "63005", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "64001", + "name": { + "key": "hero_64001", + "text": "黑化史图依克" + }, + "star": 4, + "color": 3, + "race": 1, + "job": 2, + "type": 1, + "handbook": 0, + "prefab": 64001, + "rotation": "", + "icon": 64001, + "vocal": "64001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "64002", + "name": { + "key": "hero_64002", + "text": "黑化大龙" + }, + "star": 4, + "color": 3, + "race": 1, + "job": 2, + "type": 1, + "handbook": 0, + "prefab": 64002, + "rotation": "", + "icon": 64002, + "vocal": "64002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "64003", + "name": { + "key": "hero_64003", + "text": "黑化亚丝翠" + }, + "star": 4, + "color": 3, + "race": 1, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 64003, + "rotation": "", + "icon": 64003, + "vocal": "64003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "64004", + "name": { + "key": "hero_64004", + "text": "黑化克莱尔·努涅斯" + }, + "star": 4, + "color": 3, + "race": 1, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 64004, + "rotation": "", + "icon": 64004, + "vocal": "64004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "64005", + "name": { + "key": "hero_64005", + "text": "黑化鹤大师" + }, + "star": 4, + "color": 3, + "race": 1, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 64005, + "rotation": "", + "icon": 64005, + "vocal": "64005", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "64006", + "name": { + "key": "hero_64006", + "text": "黑化布兰奇" + }, + "star": 4, + "color": 3, + "race": 1, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 64006, + "rotation": "", + "icon": 64006, + "vocal": "64006", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "64007", + "name": { + "key": "hero_64007", + "text": "黑化格里斯特王子" + }, + "star": 4, + "color": 3, + "race": 1, + "job": 2, + "type": 1, + "handbook": 0, + "prefab": 64007, + "rotation": "", + "icon": 64007, + "vocal": "64007", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "65001", + "name": { + "key": "hero_65001", + "text": "黑化吉姆·莱克" + }, + "star": 5, + "color": 4, + "race": 1, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 65001, + "rotation": "", + "icon": 65001, + "vocal": "65001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "65002", + "name": { + "key": "hero_65002", + "text": "黑化船长" + }, + "star": 5, + "color": 4, + "race": 1, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 65002, + "rotation": "", + "icon": 65002, + "vocal": "65002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "65003", + "name": { + "key": "hero_65003", + "text": "黑化希沙窦斯" + }, + "star": 5, + "color": 4, + "race": 1, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 65003, + "rotation": "", + "icon": 65003, + "vocal": "65003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "65004", + "name": { + "key": "hero_65004", + "text": "黑化小欧" + }, + "star": 5, + "color": 4, + "race": 1, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 65004, + "rotation": "", + "icon": 65004, + "vocal": "65004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "73001", + "name": { + "key": "hero_73001", + "text": "黑化斯梅克船长" + }, + "star": 3, + "color": 2, + "race": 2, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 73001, + "rotation": "", + "icon": 73001, + "vocal": "73001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "73002", + "name": { + "key": "hero_73002", + "text": "黑化警卫队长" + }, + "star": 3, + "color": 2, + "race": 2, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 73002, + "rotation": "", + "icon": 73002, + "vocal": "73002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "73003", + "name": { + "key": "hero_73003", + "text": "黑化泰德·邓普顿" + }, + "star": 3, + "color": 2, + "race": 2, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 73003, + "rotation": "", + "icon": 73003, + "vocal": "73003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "73004", + "name": { + "key": "hero_73004", + "text": "黑化吉姆·普雷斯科特" + }, + "star": 3, + "color": 2, + "race": 2, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 73004, + "rotation": "", + "icon": 73004, + "vocal": "73004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74001", + "name": { + "key": "hero_74001", + "text": "黑化警长" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 74001, + "rotation": "", + "icon": 74001, + "vocal": "74001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74002", + "name": { + "key": "hero_74002", + "text": "黑化牙仙" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 74002, + "rotation": "", + "icon": 74002, + "vocal": "74002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74003", + "name": { + "key": "hero_74003", + "text": "黑化睡神沙人" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 74003, + "rotation": "", + "icon": 74003, + "vocal": "74003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74004", + "name": { + "key": "hero_74004", + "text": "黑化邦尼兔" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 74004, + "rotation": "", + "icon": 74004, + "vocal": "74004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74005", + "name": { + "key": "hero_74005", + "text": "黑化金猴" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 74005, + "rotation": "", + "icon": 74005, + "vocal": "74005", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74006", + "name": { + "key": "hero_74006", + "text": "黑化凯尔" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 74006, + "rotation": "", + "icon": 74006, + "vocal": "74006", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74007", + "name": { + "key": "hero_74007", + "text": "黑化小钱" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 74007, + "rotation": "", + "icon": 74007, + "vocal": "74007", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74008", + "name": { + "key": "hero_74008", + "text": "黑化暴芙那特" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 74008, + "rotation": "", + "icon": 74008, + "vocal": "74008", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "74009", + "name": { + "key": "hero_74009", + "text": "黑化云朵先生" + }, + "star": 4, + "color": 3, + "race": 2, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 74009, + "rotation": "", + "icon": 74009, + "vocal": "74009", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "75001", + "name": { + "key": "hero_75001", + "text": "黑化阿宝" + }, + "star": 5, + "color": 4, + "race": 2, + "job": 2, + "type": 1, + "handbook": 0, + "prefab": 75001, + "rotation": "", + "icon": 75001, + "vocal": "75001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "75002", + "name": { + "key": "hero_75002", + "text": "黑化沃尔夫先生" + }, + "star": 5, + "color": 4, + "race": 2, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 75002, + "rotation": "", + "icon": 75002, + "vocal": "75002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "75003", + "name": { + "key": "hero_75003", + "text": "黑化无牙仔" + }, + "star": 5, + "color": 4, + "race": 2, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 75003, + "rotation": "", + "icon": 75003, + "vocal": "75003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "75004", + "name": { + "key": "hero_75004", + "text": "黑化波比" + }, + "star": 5, + "color": 4, + "race": 2, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 75004, + "rotation": "", + "icon": 75004, + "vocal": "75004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "83001", + "name": { + "key": "hero_83001", + "text": "黑化巫嘎" + }, + "star": 3, + "color": 2, + "race": 3, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 83001, + "rotation": "", + "icon": 83001, + "vocal": "83001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "83002", + "name": { + "key": "hero_83002", + "text": "黑化坦克" + }, + "star": 3, + "color": 2, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 83002, + "rotation": "", + "icon": 83002, + "vocal": "83002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "83003", + "name": { + "key": "hero_83003", + "text": "黑化胡德先生" + }, + "star": 3, + "color": 2, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 83003, + "rotation": "", + "icon": 83003, + "vocal": "83003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "83004", + "name": { + "key": "hero_83004", + "text": "黑化普鲁格兰杰" + }, + "star": 3, + "color": 2, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 83004, + "rotation": "", + "icon": 83004, + "vocal": "83004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "83005", + "name": { + "key": "hero_83005", + "text": "黑化鼻涕粗" + }, + "star": 3, + "color": 2, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 83005, + "rotation": "", + "icon": 83005, + "vocal": "83005", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "83006", + "name": { + "key": "hero_83006", + "text": "黑化珍妮丝·邓普顿" + }, + "star": 3, + "color": 2, + "race": 3, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 83006, + "rotation": "", + "icon": 83006, + "vocal": "83006", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "84001", + "name": { + "key": "hero_84001", + "text": "黑化贫嘴驴" + }, + "star": 4, + "color": 3, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 84001, + "rotation": "", + "icon": 84001, + "vocal": "84001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "84002", + "name": { + "key": "hero_84002", + "text": "黑化蒂姆·邓普顿" + }, + "star": 4, + "color": 3, + "race": 3, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 84002, + "rotation": "", + "icon": 84002, + "vocal": "84002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "84003", + "name": { + "key": "hero_84003", + "text": "黑化圣诞老人" + }, + "star": 4, + "color": 3, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 84003, + "rotation": "", + "icon": 84003, + "vocal": "84003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "84004", + "name": { + "key": "hero_84004", + "text": "黑化瓜哥" + }, + "star": 4, + "color": 3, + "race": 3, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 84004, + "rotation": "", + "icon": 84004, + "vocal": "84004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "84005", + "name": { + "key": "hero_84005", + "text": "黑化沃尔特·史翠克勒" + }, + "star": 4, + "color": 3, + "race": 3, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 84005, + "rotation": "", + "icon": 84005, + "vocal": "84005", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "84006", + "name": { + "key": "hero_84006", + "text": "黑化冰霜杰克" + }, + "star": 4, + "color": 3, + "race": 3, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 84006, + "rotation": "", + "icon": 84006, + "vocal": "84006", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "84007", + "name": { + "key": "hero_84007", + "text": "黑化菲奥娜" + }, + "star": 4, + "color": 3, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 84007, + "rotation": "", + "icon": 84007, + "vocal": "84007", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "84008", + "name": { + "key": "hero_84008", + "text": "黑化悍夫那特" + }, + "star": 4, + "color": 3, + "race": 3, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 84008, + "rotation": "", + "icon": 84008, + "vocal": "84008", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "85002", + "name": { + "key": "hero_85002", + "text": "黑化希卡普" + }, + "star": 5, + "color": 4, + "race": 3, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 85002, + "rotation": "", + "icon": 85002, + "vocal": "85002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "85003", + "name": { + "key": "hero_85003", + "text": "黑化漆黑" + }, + "star": 5, + "color": 4, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 85003, + "rotation": "", + "icon": 85003, + "vocal": "85003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "85004", + "name": { + "key": "hero_85004", + "text": "黑化黛安·福克斯顿" + }, + "star": 5, + "color": 4, + "race": 3, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 85004, + "rotation": "", + "icon": 85004, + "vocal": "85004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "85005", + "name": { + "key": "hero_85005", + "text": "黑化幸运·普雷斯科特" + }, + "star": 5, + "color": 4, + "race": 3, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 85005, + "rotation": "", + "icon": 85005, + "vocal": "85005", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "85006", + "name": { + "key": "hero_85006", + "text": "黑化平先生" + }, + "star": 5, + "color": 4, + "race": 3, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 85006, + "rotation": "", + "icon": 85006, + "vocal": "85006", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "93001", + "name": { + "key": "hero_93001", + "text": "黑化阿比盖尔·斯通" + }, + "star": 3, + "color": 2, + "race": 4, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 93001, + "rotation": "", + "icon": 93001, + "vocal": "93001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "93002", + "name": { + "key": "hero_93002", + "text": "黑化果酱教授" + }, + "star": 3, + "color": 2, + "race": 4, + "job": 4, + "type": 1, + "handbook": 0, + "prefab": 93002, + "rotation": "", + "icon": 93002, + "vocal": "93002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "93003", + "name": { + "key": "hero_93003", + "text": "黑化史蒂夫·帕丘克" + }, + "star": 3, + "color": 2, + "race": 4, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 93003, + "rotation": "", + "icon": 93003, + "vocal": "93003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "93004", + "name": { + "key": "hero_93004", + "text": "黑化姜饼人" + }, + "star": 3, + "color": 2, + "race": 4, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 93004, + "rotation": "", + "icon": 93004, + "vocal": "93004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "93005", + "name": { + "key": "hero_93005", + "text": "黑化瓦希尔指挥官" + }, + "star": 3, + "color": 2, + "race": 4, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 93005, + "rotation": "", + "icon": 93005, + "vocal": "93005", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "93006", + "name": { + "key": "hero_93006", + "text": "黑化布里奇特" + }, + "star": 3, + "color": 2, + "race": 4, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 93006, + "rotation": "", + "icon": 93006, + "vocal": "93006", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "93007", + "name": { + "key": "hero_93007", + "text": "黑化戈伯" + }, + "star": 3, + "color": 2, + "race": 4, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 93007, + "rotation": "", + "icon": 93007, + "vocal": "93007", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "94001", + "name": { + "key": "hero_94001", + "text": "黑化美肚鲨" + }, + "star": 4, + "color": 3, + "race": 4, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 94001, + "rotation": "", + "icon": 94001, + "vocal": "94001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "94002", + "name": { + "key": "hero_94002", + "text": "黑化蛇先生" + }, + "star": 4, + "color": 3, + "race": 4, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 94002, + "rotation": "", + "icon": 94002, + "vocal": "94002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "94003", + "name": { + "key": "hero_94003", + "text": "黑化匹诺曹" + }, + "star": 4, + "color": 3, + "race": 4, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 94003, + "rotation": "", + "icon": 94003, + "vocal": "94003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "94004", + "name": { + "key": "hero_94004", + "text": "黑化艾札塔伦" + }, + "star": 4, + "color": 3, + "race": 4, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 94004, + "rotation": "", + "icon": 94004, + "vocal": "94004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "94006", + "name": { + "key": "hero_94006", + "text": "黑化悍娇虎" + }, + "star": 4, + "color": 3, + "race": 4, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 94006, + "rotation": "", + "icon": 94006, + "vocal": "94006", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "95001", + "name": { + "key": "hero_95001", + "text": "黑化乌龟大师" + }, + "star": 5, + "color": 4, + "race": 4, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 95001, + "rotation": "", + "icon": 95001, + "vocal": "95001", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "95002", + "name": { + "key": "hero_95002", + "text": "黑化梅林" + }, + "star": 5, + "color": 4, + "race": 4, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 95002, + "rotation": "", + "icon": 95002, + "vocal": "95002", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "95003", + "name": { + "key": "hero_95003", + "text": "黑化盖" + }, + "star": 5, + "color": 4, + "race": 4, + "job": 3, + "type": 1, + "handbook": 0, + "prefab": 95003, + "rotation": "", + "icon": 95003, + "vocal": "95003", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 + }, + { + "hid": "95004", + "name": { + "key": "hero_95004", + "text": "黑化穿靴子的猫" + }, + "star": 5, + "color": 4, + "race": 4, + "job": 1, + "type": 1, + "handbook": 0, + "prefab": 95004, + "rotation": "", + "icon": 95004, + "vocal": "95004", + "tujing": [], + "intr": { + "key": "", + "text": "" + }, + "events": "", + "cite": "", + "effectstay": [], + "hpspace": { + "x": 0, + "y": 0, + "z": 0 + }, + "skill": 0, + "skill1": 0, + "skill2": 0, + "skill3": 0, + "txt": { + "key": "", + "text": "" + }, + "enteranivalue": 0, + "camerainterval": 0 } ] \ No newline at end of file diff --git a/bin/json/game_msgdistrib.json b/bin/json/game_msgdistrib.json index 12cc107fa..b8f2453ec 100644 --- a/bin/json/game_msgdistrib.json +++ b/bin/json/game_msgdistrib.json @@ -38,10 +38,5 @@ "msgid": "chat.send", "routrules": "~/worker", "describe": "聊天消息发送" - }, - { - "msgid": "forum.like", - "routrules": "~/worker", - "describe": "论坛点赞入口" } ] \ No newline at end of file diff --git a/bin/json/game_rdtaskall.json b/bin/json/game_rdtask.json similarity index 59% rename from bin/json/game_rdtaskall.json rename to bin/json/game_rdtask.json index d5ce93913..a434e09ea 100644 --- a/bin/json/game_rdtaskall.json +++ b/bin/json/game_rdtask.json @@ -2,21 +2,21 @@ { "id": 1001, "type": 2, - "lasttask": 0, - "rdtasknum": [ + "preTid": 0, + "condition": [ 101 ], - "aftertask": 1002, - "taskcd": 0, - "tag": 1, - "story": 3, - "completetask": 0, - "chooseid": [ + "nextTid": 1002, + "CD": 0, + "objType": 1, + "storyBegin": 3, + "storyEnd": 0, + "chooseId": [ 10001, 1002, 1003 ], - "reword": [ + "reward": [ { "a": "attr", "t": "diamond", @@ -32,22 +32,22 @@ { "id": 1002, "type": 2, - "lasttask": 1001, - "rdtasknum": [ + "preTid": 1001, + "condition": [ 101, 102 ], - "aftertask": 1003, - "taskcd": 0, - "tag": 2, - "story": 3, - "completetask": 0, - "chooseid": [ + "nextTid": 1003, + "CD": 0, + "objType": 2, + "storyBegin": 3, + "storyEnd": 0, + "chooseId": [ 10011, 10012, 10013 ], - "reword": [ + "reward": [ { "a": "attr", "t": "diamond", @@ -63,18 +63,18 @@ { "id": 1003, "type": 2, - "lasttask": 1002, - "rdtasknum": [ + "preTid": 1002, + "condition": [ 101, 103 ], - "aftertask": 1004, - "taskcd": 0, - "tag": 1, - "story": 3, - "completetask": 0, - "chooseid": [], - "reword": [ + "nextTid": 1004, + "CD": 0, + "objType": 1, + "storyBegin": 3, + "storyEnd": 0, + "chooseId": [], + "reward": [ { "a": "attr", "t": "diamond", @@ -90,18 +90,18 @@ { "id": 1004, "type": 2, - "lasttask": 1003, - "rdtasknum": [ + "preTid": 1003, + "condition": [ 101, 103 ], - "aftertask": 1005, - "taskcd": 0, - "tag": 1, - "story": 3, - "completetask": 0, - "chooseid": [], - "reword": [ + "nextTid": 1005, + "CD": 0, + "objType": 1, + "storyBegin": 3, + "storyEnd": 0, + "chooseId": [], + "reward": [ { "a": "attr", "t": "diamond", @@ -117,18 +117,18 @@ { "id": 1005, "type": 2, - "lasttask": 1004, - "rdtasknum": [ + "preTid": 1004, + "condition": [ 104, 105 ], - "aftertask": 1006, - "taskcd": 0, - "tag": 1, - "story": 3, - "completetask": 0, - "chooseid": [], - "reword": [ + "nextTid": 1006, + "CD": 0, + "objType": 1, + "storyBegin": 3, + "storyEnd": 0, + "chooseId": [], + "reward": [ { "a": "attr", "t": "diamond", @@ -144,20 +144,20 @@ { "id": 1006, "type": 2, - "lasttask": 1005, - "rdtasknum": [ + "preTid": 1005, + "condition": [ 106 ], - "aftertask": 0, - "taskcd": 0, - "tag": 1, - "story": 3, - "completetask": 0, - "chooseid": [ + "nextTid": 0, + "CD": 0, + "objType": 1, + "storyBegin": 3, + "storyEnd": 0, + "chooseId": [ 10021, 10022 ], - "reword": [ + "reward": [ { "a": "attr", "t": "diamond", @@ -173,17 +173,17 @@ { "id": 1007, "type": 1, - "lasttask": 0, - "rdtasknum": [ + "preTid": 0, + "condition": [ 107 ], - "aftertask": 1002, - "taskcd": 1, - "tag": 1, - "story": 3, - "completetask": 0, - "chooseid": [], - "reword": [ + "nextTid": 1002, + "CD": 1, + "objType": 1, + "storyBegin": 3, + "storyEnd": 0, + "chooseId": [], + "reward": [ { "a": "attr", "t": "diamond", @@ -199,20 +199,20 @@ { "id": 1008, "type": 1, - "lasttask": 0, - "rdtasknum": [ + "preTid": 0, + "condition": [ 108 ], - "aftertask": 1002, - "taskcd": -1, - "tag": 1, - "story": 3, - "completetask": 0, - "chooseid": [ + "nextTid": 1002, + "CD": -1, + "objType": 1, + "storyBegin": 3, + "storyEnd": 0, + "chooseId": [ 10041, 10042 ], - "reword": [ + "reward": [ { "a": "attr", "t": "diamond", diff --git a/bin/json/game_rdtaskchoose.json b/bin/json/game_rdtaskchoose.json index 19887bb52..821b47d46 100644 --- a/bin/json/game_rdtaskchoose.json +++ b/bin/json/game_rdtaskchoose.json @@ -1,97 +1,97 @@ [ { - "chooseid": 10001, + "id": 10001, "num": 1, - "rdtaksnum": 101, - "need": [ + "preTid": 101, + "needItem": [ 0 ] }, { - "chooseid": 10002, + "id": 10002, "num": 2, - "rdtaksnum": 107, - "need": [ + "preTid": 107, + "needItem": [ 0 ] }, { - "chooseid": 10003, + "id": 10003, "num": 3, - "rdtaksnum": 101, - "need": [ + "preTid": 101, + "needItem": [ 0 ] }, { - "chooseid": 10011, + "id": 10011, "num": 1, - "rdtaksnum": 101, - "need": [ + "preTid": 101, + "needItem": [ 0 ] }, { - "chooseid": 10012, + "id": 10012, "num": 2, - "rdtaksnum": 101, - "need": [ + "preTid": 101, + "needItem": [ 0 ] }, { - "chooseid": 10013, + "id": 10013, "num": 3, - "rdtaksnum": 101, - "need": [ + "preTid": 101, + "needItem": [ 0 ] }, { - "chooseid": 10021, + "id": 10021, "num": 1, - "rdtaksnum": 101, - "need": [ + "preTid": 101, + "needItem": [ 0 ] }, { - "chooseid": 10022, + "id": 10022, "num": 2, - "rdtaksnum": 101, - "need": [ + "preTid": 101, + "needItem": [ 0 ] }, { - "chooseid": 10031, + "id": 10031, "num": 1, - "rdtaksnum": 0, - "need": [ + "preTid": 0, + "needItem": [ 10012 ] }, { - "chooseid": 10032, + "id": 10032, "num": 2, - "rdtaksnum": 0, - "need": [ + "preTid": 0, + "needItem": [ 0 ] }, { - "chooseid": 10041, + "id": 10041, "num": 1, - "rdtaksnum": 0, - "need": [ + "preTid": 0, + "needItem": [ 10010 ] }, { - "chooseid": 10042, + "id": 10042, "num": 2, - "rdtaksnum": 0, - "need": [ + "preTid": 0, + "needItem": [ 0 ] } diff --git a/bin/json/game_rdtaskcondi.json b/bin/json/game_rdtaskcondi.json new file mode 100644 index 000000000..68c73802f --- /dev/null +++ b/bin/json/game_rdtaskcondi.json @@ -0,0 +1,58 @@ +[ + { + "id": 101, + "type": 1, + "data1": 90001, + "data2": 0, + "data3": 0 + }, + { + "id": 102, + "type": 2, + "data1": 3, + "data2": 0, + "data3": 0 + }, + { + "id": 103, + "type": 3, + "data1": 2, + "data2": 0, + "data3": 0 + }, + { + "id": 104, + "type": 4, + "data1": 90001, + "data2": 15, + "data3": 0 + }, + { + "id": 105, + "type": 4, + "data1": 25001, + "data2": 10, + "data3": 0 + }, + { + "id": 106, + "type": 5, + "data1": 90001, + "data2": 2, + "data3": 0 + }, + { + "id": 107, + "type": 4, + "data1": 25001, + "data2": 20, + "data3": 0 + }, + { + "id": 108, + "type": 6, + "data1": 90001, + "data2": 5, + "data3": 0 + } +] \ No newline at end of file diff --git a/bin/json/game_rdtasktype.json b/bin/json/game_rdtasktype.json deleted file mode 100644 index ba552fccf..000000000 --- a/bin/json/game_rdtasktype.json +++ /dev/null @@ -1,74 +0,0 @@ -[ - { - "rdtaksnum": 101, - "typdes": 2, - "datatime": 1, - "typtaskid": 1, - "data1": 90001, - "data2": 0, - "data3": 0 - }, - { - "rdtaksnum": 102, - "typdes": 2, - "datatime": 1, - "typtaskid": 2, - "data1": 3, - "data2": 0, - "data3": 0 - }, - { - "rdtaksnum": 103, - "typdes": 2, - "datatime": 1, - "typtaskid": 3, - "data1": 2, - "data2": 0, - "data3": 0 - }, - { - "rdtaksnum": 104, - "typdes": 2, - "datatime": 1, - "typtaskid": 4, - "data1": 90001, - "data2": 15, - "data3": 0 - }, - { - "rdtaksnum": 105, - "typdes": 2, - "datatime": 1, - "typtaskid": 4, - "data1": 25001, - "data2": 10, - "data3": 0 - }, - { - "rdtaksnum": 106, - "typdes": 2, - "datatime": 1, - "typtaskid": 5, - "data1": 90001, - "data2": 2, - "data3": 0 - }, - { - "rdtaksnum": 107, - "typdes": 2, - "datatime": 1, - "typtaskid": 4, - "data1": 25001, - "data2": 20, - "data3": 0 - }, - { - "rdtaksnum": 108, - "typdes": 2, - "datatime": 1, - "typtaskid": 6, - "data1": 90001, - "data2": 5, - "data3": 0 - } -] \ No newline at end of file diff --git a/bin/json/game_smithy.json b/bin/json/game_smithy.json index 0a070eda6..df730af29 100644 --- a/bin/json/game_smithy.json +++ b/bin/json/game_smithy.json @@ -20,7 +20,7 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "dropshow": [ { @@ -44,6 +44,7 @@ "n": 1 } ], + "using": 1, "drop": 1001, "orderneed": [ { @@ -81,7 +82,7 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "dropshow": [ { @@ -105,6 +106,7 @@ "n": 1 } ], + "using": 1, "drop": 1002, "orderneed": [ { @@ -142,7 +144,7 @@ "n": 1 } ], - "sucess": "1", + "probability": 80, "floors": 1, "dropshow": [ { @@ -166,6 +168,7 @@ "n": 1 } ], + "using": 1, "drop": 1003, "orderneed": [ { @@ -203,7 +206,7 @@ "n": 1 } ], - "sucess": "0.8", + "probability": 80, "floors": 2, "dropshow": [ { @@ -227,6 +230,7 @@ "n": 1 } ], + "using": 1, "drop": 1004, "orderneed": [ { @@ -264,7 +268,7 @@ "n": 1 } ], - "sucess": "0.7", + "probability": 80, "floors": 3, "dropshow": [ { @@ -288,6 +292,7 @@ "n": 1 } ], + "using": 1, "drop": 1005, "orderneed": [ { @@ -325,7 +330,7 @@ "n": 1 } ], - "sucess": "0.6", + "probability": 80, "floors": 4, "dropshow": [ { @@ -349,6 +354,7 @@ "n": 1 } ], + "using": 1, "drop": 1006, "orderneed": [ { @@ -386,7 +392,7 @@ "n": 1 } ], - "sucess": "0.5", + "probability": 80, "floors": 5, "dropshow": [ { @@ -410,6 +416,7 @@ "n": 1 } ], + "using": 1, "drop": 1007, "orderneed": [ { @@ -447,7 +454,7 @@ "n": 1 } ], - "sucess": "0.4", + "probability": 80, "floors": 5, "dropshow": [ { @@ -471,6 +478,7 @@ "n": 1 } ], + "using": 1, "drop": 1008, "orderneed": [ { @@ -508,7 +516,7 @@ "n": 1 } ], - "sucess": "0.3", + "probability": 80, "floors": 5, "dropshow": [ { @@ -532,6 +540,7 @@ "n": 1 } ], + "using": 1, "drop": 1009, "orderneed": [ { @@ -558,8 +567,8 @@ }, "before": 9, "starupneed": [], - "sucess": "-1", - "floors": -1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -582,6 +591,7 @@ "n": 1 } ], + "using": 1, "drop": 1010, "orderneed": [ { @@ -619,8 +629,8 @@ "n": 1 } ], - "sucess": "1", - "floors": 1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -643,6 +653,7 @@ "n": 1 } ], + "using": 1, "drop": 1011, "orderneed": [ { @@ -680,8 +691,8 @@ "n": 1 } ], - "sucess": "1", - "floors": 1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -704,6 +715,7 @@ "n": 1 } ], + "using": 1, "drop": 1012, "orderneed": [ { @@ -741,8 +753,8 @@ "n": 1 } ], - "sucess": "1", - "floors": 1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -765,6 +777,7 @@ "n": 1 } ], + "using": 1, "drop": 1013, "orderneed": [ { @@ -802,8 +815,8 @@ "n": 1 } ], - "sucess": "0.8", - "floors": 2, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -826,6 +839,7 @@ "n": 1 } ], + "using": 1, "drop": 1014, "orderneed": [ { @@ -863,8 +877,8 @@ "n": 1 } ], - "sucess": "0.7", - "floors": 3, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -887,6 +901,7 @@ "n": 1 } ], + "using": 1, "drop": 1015, "orderneed": [ { @@ -924,8 +939,8 @@ "n": 1 } ], - "sucess": "0.6", - "floors": 4, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -948,6 +963,7 @@ "n": 1 } ], + "using": 1, "drop": 1016, "orderneed": [ { @@ -985,7 +1001,7 @@ "n": 1 } ], - "sucess": "0.5", + "probability": 80, "floors": 5, "dropshow": [ { @@ -1009,6 +1025,7 @@ "n": 1 } ], + "using": 1, "drop": 1017, "orderneed": [ { @@ -1046,7 +1063,7 @@ "n": 1 } ], - "sucess": "0.4", + "probability": 80, "floors": 5, "dropshow": [ { @@ -1070,6 +1087,7 @@ "n": 1 } ], + "using": 1, "drop": 1018, "orderneed": [ { @@ -1107,7 +1125,7 @@ "n": 1 } ], - "sucess": "0.3", + "probability": 80, "floors": 5, "dropshow": [ { @@ -1131,6 +1149,7 @@ "n": 1 } ], + "using": 1, "drop": 1019, "orderneed": [ { @@ -1157,8 +1176,8 @@ }, "before": 9, "starupneed": [], - "sucess": "-1", - "floors": -1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -1181,6 +1200,7 @@ "n": 1 } ], + "using": 1, "drop": 1020, "orderneed": [ { @@ -1218,8 +1238,8 @@ "n": 1 } ], - "sucess": "1", - "floors": 1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -1242,6 +1262,7 @@ "n": 1 } ], + "using": 1, "drop": 1021, "orderneed": [ { @@ -1279,8 +1300,8 @@ "n": 1 } ], - "sucess": "1", - "floors": 1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -1303,6 +1324,7 @@ "n": 1 } ], + "using": 1, "drop": 1022, "orderneed": [ { @@ -1340,8 +1362,8 @@ "n": 1 } ], - "sucess": "1", - "floors": 1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -1364,6 +1386,7 @@ "n": 1 } ], + "using": 1, "drop": 1023, "orderneed": [ { @@ -1401,8 +1424,8 @@ "n": 1 } ], - "sucess": "0.8", - "floors": 2, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -1425,6 +1448,7 @@ "n": 1 } ], + "using": 1, "drop": 1024, "orderneed": [ { @@ -1462,8 +1486,8 @@ "n": 1 } ], - "sucess": "0.7", - "floors": 3, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -1486,6 +1510,7 @@ "n": 1 } ], + "using": 1, "drop": 1025, "orderneed": [ { @@ -1523,8 +1548,8 @@ "n": 1 } ], - "sucess": "0.6", - "floors": 4, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -1547,6 +1572,7 @@ "n": 1 } ], + "using": 1, "drop": 1026, "orderneed": [ { @@ -1584,7 +1610,7 @@ "n": 1 } ], - "sucess": "0.5", + "probability": 80, "floors": 5, "dropshow": [ { @@ -1608,6 +1634,7 @@ "n": 1 } ], + "using": 1, "drop": 1027, "orderneed": [ { @@ -1645,7 +1672,7 @@ "n": 1 } ], - "sucess": "0.4", + "probability": 80, "floors": 5, "dropshow": [ { @@ -1669,6 +1696,7 @@ "n": 1 } ], + "using": 1, "drop": 1028, "orderneed": [ { @@ -1706,7 +1734,7 @@ "n": 1 } ], - "sucess": "0.3", + "probability": 80, "floors": 5, "dropshow": [ { @@ -1730,6 +1758,7 @@ "n": 1 } ], + "using": 1, "drop": 1029, "orderneed": [ { @@ -1756,8 +1785,8 @@ }, "before": 9, "starupneed": [], - "sucess": "-1", - "floors": -1, + "probability": 80, + "floors": 5, "dropshow": [ { "a": "item", @@ -1780,6 +1809,7 @@ "n": 1 } ], + "using": 1, "drop": 1030, "orderneed": [ { diff --git a/bin/json/game_smithystove.json b/bin/json/game_smithystove.json index adbf9a946..dfb91fd95 100644 --- a/bin/json/game_smithystove.json +++ b/bin/json/game_smithystove.json @@ -1,6 +1,6 @@ [ { - "id": 1001, + "id": 1, "star": 1, "starshow": { "key": "smithy_name_1001", @@ -19,13 +19,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 300, "desk": "" }, { - "id": 1002, + "id": 2, "star": 2, "starshow": { "key": "smithy_name_1002", @@ -44,13 +44,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 300, "desk": "" }, { - "id": 1003, + "id": 3, "star": 3, "starshow": { "key": "smithy_name_1003", @@ -69,13 +69,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 300, "desk": "" }, { - "id": 1004, + "id": 4, "star": 4, "starshow": { "key": "smithy_name_1004", @@ -94,13 +94,13 @@ "n": 1 } ], - "sucess": "0.8", + "probability": 100, "floors": 2, "time": 300, "desk": "" }, { - "id": 1005, + "id": 5, "star": 5, "starshow": { "key": "smithy_name_1005", @@ -119,13 +119,13 @@ "n": 1 } ], - "sucess": "0.7", + "probability": 100, "floors": 3, "time": 300, "desk": "" }, { - "id": 1006, + "id": 6, "star": 6, "starshow": { "key": "smithy_name_1006", @@ -144,13 +144,13 @@ "n": 1 } ], - "sucess": "0.6", + "probability": 100, "floors": 4, "time": 300, "desk": "" }, { - "id": 1007, + "id": 7, "star": 7, "starshow": { "key": "smithy_name_1007", @@ -169,13 +169,13 @@ "n": 1 } ], - "sucess": "0.5", + "probability": 100, "floors": 5, "time": 300, "desk": "" }, { - "id": 1008, + "id": 8, "star": 8, "starshow": { "key": "smithy_name_1008", @@ -194,13 +194,13 @@ "n": 1 } ], - "sucess": "0.4", + "probability": 100, "floors": 5, "time": 300, "desk": "" }, { - "id": 1009, + "id": 9, "star": 9, "starshow": { "key": "smithy_name_1009", @@ -219,13 +219,13 @@ "n": 1 } ], - "sucess": "0.3", + "probability": 100, "floors": 5, "time": 300, "desk": "" }, { - "id": 1010, + "id": 10, "star": 10, "starshow": { "key": "smithy_name_1010", @@ -233,13 +233,13 @@ }, "before": 9, "starupneed": [], - "sucess": "-1", + "probability": 100, "floors": -1, "time": 300, "desk": "" }, { - "id": 1011, + "id": 11, "star": 11, "starshow": { "key": "smithy_name_1001", @@ -258,13 +258,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 500, "desk": "" }, { - "id": 1012, + "id": 12, "star": 12, "starshow": { "key": "smithy_name_1002", @@ -283,13 +283,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 500, "desk": "" }, { - "id": 1013, + "id": 13, "star": 13, "starshow": { "key": "smithy_name_1003", @@ -308,13 +308,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 500, "desk": "" }, { - "id": 1014, + "id": 14, "star": 14, "starshow": { "key": "smithy_name_1004", @@ -333,13 +333,13 @@ "n": 1 } ], - "sucess": "0.8", + "probability": 100, "floors": 2, "time": 500, "desk": "" }, { - "id": 1015, + "id": 15, "star": 15, "starshow": { "key": "smithy_name_1005", @@ -358,13 +358,13 @@ "n": 1 } ], - "sucess": "0.7", + "probability": 100, "floors": 3, "time": 500, "desk": "" }, { - "id": 1016, + "id": 16, "star": 16, "starshow": { "key": "smithy_name_1006", @@ -383,13 +383,13 @@ "n": 1 } ], - "sucess": "0.6", + "probability": 100, "floors": 4, "time": 500, "desk": "" }, { - "id": 1017, + "id": 17, "star": 17, "starshow": { "key": "smithy_name_1007", @@ -408,13 +408,13 @@ "n": 1 } ], - "sucess": "0.5", + "probability": 100, "floors": 5, "time": 500, "desk": "" }, { - "id": 1018, + "id": 18, "star": 18, "starshow": { "key": "smithy_name_1008", @@ -433,13 +433,13 @@ "n": 1 } ], - "sucess": "0.4", + "probability": 100, "floors": 5, "time": 500, "desk": "" }, { - "id": 1019, + "id": 19, "star": 19, "starshow": { "key": "smithy_name_1009", @@ -458,13 +458,13 @@ "n": 1 } ], - "sucess": "0.3", + "probability": 100, "floors": 5, "time": 500, "desk": "" }, { - "id": 1020, + "id": 20, "star": 20, "starshow": { "key": "smithy_name_1010", @@ -472,13 +472,13 @@ }, "before": 19, "starupneed": [], - "sucess": "-1", + "probability": 100, "floors": -1, "time": 500, "desk": "" }, { - "id": 1021, + "id": 21, "star": 21, "starshow": { "key": "smithy_name_1001", @@ -497,13 +497,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 1000, "desk": "" }, { - "id": 1022, + "id": 22, "star": 22, "starshow": { "key": "smithy_name_1002", @@ -522,13 +522,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 1000, "desk": "" }, { - "id": 1023, + "id": 23, "star": 23, "starshow": { "key": "smithy_name_1003", @@ -547,13 +547,13 @@ "n": 1 } ], - "sucess": "1", + "probability": 100, "floors": 1, "time": 1000, "desk": "" }, { - "id": 1024, + "id": 24, "star": 24, "starshow": { "key": "smithy_name_1004", @@ -572,13 +572,13 @@ "n": 1 } ], - "sucess": "0.8", + "probability": 100, "floors": 2, "time": 1000, "desk": "" }, { - "id": 1025, + "id": 25, "star": 25, "starshow": { "key": "smithy_name_1005", @@ -597,13 +597,13 @@ "n": 1 } ], - "sucess": "0.7", + "probability": 100, "floors": 3, "time": 1000, "desk": "" }, { - "id": 1026, + "id": 26, "star": 26, "starshow": { "key": "smithy_name_1006", @@ -622,13 +622,13 @@ "n": 1 } ], - "sucess": "0.6", + "probability": 100, "floors": 4, "time": 1000, "desk": "" }, { - "id": 1027, + "id": 27, "star": 27, "starshow": { "key": "smithy_name_1007", @@ -647,13 +647,13 @@ "n": 1 } ], - "sucess": "0.5", + "probability": 100, "floors": 5, "time": 1000, "desk": "" }, { - "id": 1028, + "id": 28, "star": 28, "starshow": { "key": "smithy_name_1008", @@ -672,13 +672,13 @@ "n": 1 } ], - "sucess": "0.4", + "probability": 100, "floors": 5, "time": 1000, "desk": "" }, { - "id": 1029, + "id": 29, "star": 29, "starshow": { "key": "smithy_name_1009", @@ -697,13 +697,13 @@ "n": 1 } ], - "sucess": "0.3", + "probability": 100, "floors": 5, "time": 1000, "desk": "" }, { - "id": 1030, + "id": 30, "star": 30, "starshow": { "key": "smithy_name_1010", @@ -711,7 +711,7 @@ }, "before": 29, "starupneed": [], - "sucess": "-1", + "probability": 100, "floors": -1, "time": 1000, "desk": "" diff --git a/cmd/v2/model/item.go b/cmd/v2/model/item.go index ef535634c..7b37d229c 100644 --- a/cmd/v2/model/item.go +++ b/cmd/v2/model/item.go @@ -1,7 +1,5 @@ package model -import "github.com/sirupsen/logrus" - type ItemModel struct { Id string Label string @@ -18,7 +16,6 @@ func NewItemModelList() *ItemModelList { } func (s *ItemModelList) AsInterfaceArray() []interface{} { - logrus.Debug(len(s.DataList)) rs := make([]interface{}, len(s.DataList)) for i := range s.DataList { rs[i] = s.DataList[i] diff --git a/cmd/v2/ui/views/friend_agree.go b/cmd/v2/ui/views/friend_agree.go index 9e4ad9956..0fe607cb2 100644 --- a/cmd/v2/ui/views/friend_agree.go +++ b/cmd/v2/ui/views/friend_agree.go @@ -15,6 +15,7 @@ import ( "github.com/sirupsen/logrus" ) +// 好友审批 type FriendAgreeView struct { ListBaseView } @@ -76,8 +77,10 @@ func (this *FriendAgreeView) dataListener() { if !comm.ProtoUnmarshal(data, rsp) { logrus.Error("unmarshal err") + return } + this.itemListData = model.NewItemModelList() for _, v := range rsp.List { fm := &model.ItemModel{ Id: v.UserId, diff --git a/cmd/v2/ui/views/friend_list.go b/cmd/v2/ui/views/friend_list.go index 5a5bd824d..8e14ca55d 100644 --- a/cmd/v2/ui/views/friend_list.go +++ b/cmd/v2/ui/views/friend_list.go @@ -81,6 +81,7 @@ func (this *FriendListView) dataListener() { if !comm.ProtoUnmarshal(data, rsp) { logrus.Error("unmarshal err") + return } this.itemListData = model.NewItemModelList() diff --git a/modules/rtask/api_choose.go b/modules/rtask/api_choose.go index 3c1912e4f..c3dd29198 100644 --- a/modules/rtask/api_choose.go +++ b/modules/rtask/api_choose.go @@ -45,7 +45,7 @@ func (this *apiComp) Choose(session comm.IUserSession, req *pb.RtaskChooseReq) ( } //发奖励 - code = this.moduleRtask.DispenseRes(session, conf.Reword, true) + code = this.moduleRtask.DispenseRes(session, conf.Reward, true) rsp := &pb.RtaskChooseResp{} diff --git a/modules/rtask/config.go b/modules/rtask/config.go index c596a0ee4..9181a363f 100644 --- a/modules/rtask/config.go +++ b/modules/rtask/config.go @@ -20,14 +20,14 @@ type configureComp struct { func (this *configureComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) { err = this.MCompConfigure.Init(service, module, comp, options) err = this.LoadMultiConfigure(map[string]interface{}{ - gameRtask: cfg.NewGameRdtaskAll, + gameRtask: cfg.NewGameRdtask, gameRtaskChoose: cfg.NewGameRdtaskChoose, - gameRtaskType: cfg.NewGameRdtaskType, + gameRtaskType: cfg.NewGameRdtaskCondi, }) return } -func (this *configureComp) getRtaskCfg() (data *cfg.GameRdtaskAll, err error) { +func (this *configureComp) getRtaskCfg() (data *cfg.GameRdtask, err error) { var ( v interface{} ok bool @@ -35,7 +35,7 @@ func (this *configureComp) getRtaskCfg() (data *cfg.GameRdtaskAll, err error) { if v, err = this.GetConfigure(gameRtask); err != nil { return } else { - if data, ok = v.(*cfg.GameRdtaskAll); !ok { + if data, ok = v.(*cfg.GameRdtask); !ok { err = fmt.Errorf("%T no is *cfg.GameRdtaskAll", v) return } @@ -43,7 +43,7 @@ func (this *configureComp) getRtaskCfg() (data *cfg.GameRdtaskAll, err error) { return } -func (this *configureComp) getRtaskTypeCfg() (data *cfg.GameRdtaskType, err error) { +func (this *configureComp) getRtaskTypeCfg() (data *cfg.GameRdtaskCondi, err error) { var ( v interface{} ok bool @@ -51,7 +51,7 @@ func (this *configureComp) getRtaskTypeCfg() (data *cfg.GameRdtaskType, err erro if v, err = this.GetConfigure(gameRtask); err != nil { return } else { - if data, ok = v.(*cfg.GameRdtaskType); !ok { + if data, ok = v.(*cfg.GameRdtaskCondi); !ok { err = fmt.Errorf("%T is *cfg.GameRdtaskType", v) return } @@ -60,7 +60,7 @@ func (this *configureComp) getRtaskTypeCfg() (data *cfg.GameRdtaskType, err erro } // 获取随机任务配置 -func (this *configureComp) getRtaskList() (data []*cfg.GameRdtaskAllData, err error) { +func (this *configureComp) getRtaskList() (data []*cfg.GameRdtaskData, err error) { cfg, err := this.getRtaskCfg() if err != nil { return @@ -72,7 +72,7 @@ func (this *configureComp) getRtaskList() (data []*cfg.GameRdtaskAllData, err er } // 查询任务类型 -func (this *configureComp) getRtaskTypeById(typeId int32) (data *cfg.GameRdtaskTypeData, err error) { +func (this *configureComp) getRtaskTypeById(typeId int32) (data *cfg.GameRdtaskCondiData, err error) { cfg, err := this.getRtaskTypeCfg() if err != nil { return @@ -86,7 +86,7 @@ func (this *configureComp) getRtaskTypeById(typeId int32) (data *cfg.GameRdtaskT } // 任务 -func (this *configureComp) getRtaskById(taskId int32) (data *cfg.GameRdtaskAllData) { +func (this *configureComp) getRtaskById(taskId int32) (data *cfg.GameRdtaskData) { cfg, err := this.getRtaskCfg() if err != nil { return @@ -100,14 +100,14 @@ func (this *configureComp) getRtaskById(taskId int32) (data *cfg.GameRdtaskAllDa } // 首个任务 -func (this *configureComp) getFirstTask() *cfg.GameRdtaskAllData { +func (this *configureComp) getFirstTask() *cfg.GameRdtaskData { cfg, err := this.getRtaskCfg() if err != nil { return nil } if cfg != nil { for _, v := range cfg.GetDataList() { - if v.Aftertask == 0 { + if v.NextTid == 0 { return v } } diff --git a/modules/rtask/model_rtask.go b/modules/rtask/model_rtask.go index f93ffe911..788ac57cf 100644 --- a/modules/rtask/model_rtask.go +++ b/modules/rtask/model_rtask.go @@ -41,7 +41,7 @@ func (this *ModelRtask) doRtaskHandle(uid string, param *pb.RtaskParam) (rtaskId if len(rtask.FrtaskIds) == 0 { conf := this.moduleRtask.configure.getFirstTask() if conf != nil { - taskId = conf.Aftertask + taskId = conf.NextTid } } else { //TODO @@ -61,26 +61,26 @@ func (this *ModelRtask) doRtaskHandle(uid string, param *pb.RtaskParam) (rtaskId } // 1 英雄指定 -func (this *ModelRtask) HeroTarget(cfg *cfg.GameRdtaskTypeData, tp *pb.RtaskParam) (ok bool) { +func (this *ModelRtask) HeroTarget(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 } // 2 指定英雄的等级 -func (this *ModelRtask) HeroLvTarget(cfg *cfg.GameRdtaskTypeData, tp *pb.RtaskParam) (ok bool) { +func (this *ModelRtask) HeroLvTarget(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 && cfg.Data1 == tp.Param2 } // 3 指定英雄的指定装备的数量 -func (this *ModelRtask) EquipNum(cfg *cfg.GameRdtaskTypeData, tp *pb.RtaskParam) (ok bool) { +func (this *ModelRtask) EquipNum(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 && cfg.Data2 == tp.Param2 && cfg.Data3 == tp.Param3 } // 4 剧情ID -func (this *ModelRtask) PoltId(cfg *cfg.GameRdtaskTypeData, tp *pb.RtaskParam) (ok bool) { +func (this *ModelRtask) PoltId(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 } // 5 每日任务 -func (this *ModelRtask) TaskDay(cfg *cfg.GameRdtaskTypeData, tp *pb.RtaskParam) (ok bool) { +func (this *ModelRtask) TaskDay(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 } diff --git a/modules/rtask/module.go b/modules/rtask/module.go index f1c9e6767..b00e47178 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -18,12 +18,12 @@ type rtask struct { // 限定条件 type rtaskCondi struct { - cfg *cfg.GameRdtaskTypeData + cfg *cfg.GameRdtaskCondiData fn rtaskHandle } // 设定返回值 -type rtaskHandle func(cfg *cfg.GameRdtaskTypeData, tp *pb.RtaskParam) (ok bool) +type rtaskHandle func(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) type ModuleRtask struct { modules.ModuleBase @@ -73,7 +73,7 @@ func (this *ModuleRtask) initRtaskHandle() { } //遍历任务的限定条件 - for _, rtaskTypeId := range v.Rdtasknum { + for _, rtaskTypeId := range v.Condition { // 获取每个限定条件配置 if typeCfg, err2 := this.configure.getRtaskTypeById(rtaskTypeId); err2 == nil { if typeCfg != nil { diff --git a/sys/configure/structs/Game.BuffType.go b/sys/configure/structs/Game.BuffType.go new file mode 100644 index 000000000..2545ae43c --- /dev/null +++ b/sys/configure/structs/Game.BuffType.go @@ -0,0 +1,34 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +const ( + GameBuffType_NONE = 0 + GameBuffType_ATKUP = 1 + GameBuffType_DEFUP = 2 + GameBuffType_SPDUP = 3 + GameBuffType_CRATEUP = 4 + GameBuffType_CRITRESIST = 5 + GameBuffType_ATKDOWN = 6 + GameBuffType_DEFDOWN = 7 + GameBuffType_SPDDOWN = 8 + GameBuffType_CRATEDOWN = 9 + GameBuffType_SEAR = 10 + GameBuffType_MISSRATEUP = 11 + GameBuffType_INVINCIBILITY = 12 + GameBuffType_STANDOFF = 13 + GameBuffType_STUN = 14 + GameBuffType_FREEZE = 15 + GameBuffType_DISEASED = 16 + GameBuffType_PETRIFICATION = 17 + GameBuffType_SILENCE = 18 + GameBuffType_TAUNT = 19 + GameBuffType_IMMUNITY = 20 + GameBuffType_SHIELD = 21 +) diff --git a/sys/configure/structs/Game.ChatExpression.go b/sys/configure/structs/Game.ChatExpression.go new file mode 100644 index 000000000..c9da3905f --- /dev/null +++ b/sys/configure/structs/Game.ChatExpression.go @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +type GameChatExpression struct { + _dataMap map[int32]*GameChatExpressionData + _dataList []*GameChatExpressionData +} + +func NewGameChatExpression(_buf []map[string]interface{}) (*GameChatExpression, error) { + _dataList := make([]*GameChatExpressionData, 0, len(_buf)) + dataMap := make(map[int32]*GameChatExpressionData) + for _, _ele_ := range _buf { + if _v, err2 := DeserializeGameChatExpressionData(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Key] = _v + } + } + return &GameChatExpression{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *GameChatExpression) GetDataMap() map[int32]*GameChatExpressionData { + return table._dataMap +} + +func (table *GameChatExpression) GetDataList() []*GameChatExpressionData { + return table._dataList +} + +func (table *GameChatExpression) Get(key int32) *GameChatExpressionData { + return table._dataMap[key] +} + + diff --git a/sys/configure/structs/Game.ChatExpressionData.go b/sys/configure/structs/Game.ChatExpressionData.go new file mode 100644 index 000000000..d08fe7ec8 --- /dev/null +++ b/sys/configure/structs/Game.ChatExpressionData.go @@ -0,0 +1,41 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +import "errors" + +type GameChatExpressionData struct { + Key int32 + ExpressionCode string + ExpressionType int32 + ExpressionIcon string +} + +const TypeId_GameChatExpressionData = 495857494 + +func (*GameChatExpressionData) GetTypeId() int32 { + return 495857494 +} + +func (_v *GameChatExpressionData)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; if _v.ExpressionCode, _ok_ = _buf["expression_code"].(string); !_ok_ { err = errors.New("expression_code error"); return } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["expression_type"].(float64); !_ok_ { err = errors.New("expression_type error"); return }; _v.ExpressionType = int32(_tempNum_) } + { var _ok_ bool; if _v.ExpressionIcon, _ok_ = _buf["expression_icon"].(string); !_ok_ { err = errors.New("expression_icon error"); return } } + return +} + +func DeserializeGameChatExpressionData(_buf map[string]interface{}) (*GameChatExpressionData, error) { + v := &GameChatExpressionData{} + if err := v.Deserialize(_buf); err == nil { + return v, nil + } else { + return nil, err + } +} diff --git a/sys/configure/structs/Game.Rdtask.go b/sys/configure/structs/Game.Rdtask.go new file mode 100644 index 000000000..e93061382 --- /dev/null +++ b/sys/configure/structs/Game.Rdtask.go @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +type GameRdtask struct { + _dataMap map[int32]*GameRdtaskData + _dataList []*GameRdtaskData +} + +func NewGameRdtask(_buf []map[string]interface{}) (*GameRdtask, error) { + _dataList := make([]*GameRdtaskData, 0, len(_buf)) + dataMap := make(map[int32]*GameRdtaskData) + for _, _ele_ := range _buf { + if _v, err2 := DeserializeGameRdtaskData(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &GameRdtask{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *GameRdtask) GetDataMap() map[int32]*GameRdtaskData { + return table._dataMap +} + +func (table *GameRdtask) GetDataList() []*GameRdtaskData { + return table._dataList +} + +func (table *GameRdtask) Get(key int32) *GameRdtaskData { + return table._dataMap[key] +} + + diff --git a/sys/configure/structs/Game.RdtaskCondi.go b/sys/configure/structs/Game.RdtaskCondi.go new file mode 100644 index 000000000..dc62197f2 --- /dev/null +++ b/sys/configure/structs/Game.RdtaskCondi.go @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +type GameRdtaskCondi struct { + _dataMap map[int32]*GameRdtaskCondiData + _dataList []*GameRdtaskCondiData +} + +func NewGameRdtaskCondi(_buf []map[string]interface{}) (*GameRdtaskCondi, error) { + _dataList := make([]*GameRdtaskCondiData, 0, len(_buf)) + dataMap := make(map[int32]*GameRdtaskCondiData) + for _, _ele_ := range _buf { + if _v, err2 := DeserializeGameRdtaskCondiData(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &GameRdtaskCondi{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *GameRdtaskCondi) GetDataMap() map[int32]*GameRdtaskCondiData { + return table._dataMap +} + +func (table *GameRdtaskCondi) GetDataList() []*GameRdtaskCondiData { + return table._dataList +} + +func (table *GameRdtaskCondi) Get(key int32) *GameRdtaskCondiData { + return table._dataMap[key] +} + + diff --git a/sys/configure/structs/game.rdtaskTypeData.go b/sys/configure/structs/Game.RdtaskCondiData.go similarity index 54% rename from sys/configure/structs/game.rdtaskTypeData.go rename to sys/configure/structs/Game.RdtaskCondiData.go index 05da03257..c4ca3dc73 100644 --- a/sys/configure/structs/game.rdtaskTypeData.go +++ b/sys/configure/structs/Game.RdtaskCondiData.go @@ -10,35 +10,31 @@ package cfg import "errors" -type GameRdtaskTypeData struct { - Rdtaksnum int32 - Typdes int32 - Datatime int32 - Typtaskid int32 +type GameRdtaskCondiData struct { + Id int32 + Type int32 Data1 int32 Data2 int32 Data3 int32 } -const TypeId_GameRdtaskTypeData = -28304553 +const TypeId_GameRdtaskCondiData = 2060899038 -func (*GameRdtaskTypeData) GetTypeId() int32 { - return -28304553 +func (*GameRdtaskCondiData) GetTypeId() int32 { + return 2060899038 } -func (_v *GameRdtaskTypeData)Deserialize(_buf map[string]interface{}) (err error) { - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["rdtaksnum"].(float64); !_ok_ { err = errors.New("rdtaksnum error"); return }; _v.Rdtaksnum = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["typdes"].(float64); !_ok_ { err = errors.New("typdes error"); return }; _v.Typdes = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["datatime"].(float64); !_ok_ { err = errors.New("datatime error"); return }; _v.Datatime = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["typtaskid"].(float64); !_ok_ { err = errors.New("typtaskid error"); return }; _v.Typtaskid = int32(_tempNum_) } +func (_v *GameRdtaskCondiData)Deserialize(_buf map[string]interface{}) (err error) { + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; 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["data1"].(float64); !_ok_ { err = errors.New("data1 error"); return }; _v.Data1 = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["data2"].(float64); !_ok_ { err = errors.New("data2 error"); return }; _v.Data2 = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["data3"].(float64); !_ok_ { err = errors.New("data3 error"); return }; _v.Data3 = int32(_tempNum_) } return } -func DeserializeGameRdtaskTypeData(_buf map[string]interface{}) (*GameRdtaskTypeData, error) { - v := &GameRdtaskTypeData{} +func DeserializeGameRdtaskCondiData(_buf map[string]interface{}) (*GameRdtaskCondiData, error) { + v := &GameRdtaskCondiData{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { diff --git a/sys/configure/structs/game.rdtaskAllData.go b/sys/configure/structs/Game.RdtaskData.go similarity index 56% rename from sys/configure/structs/game.rdtaskAllData.go rename to sys/configure/structs/Game.RdtaskData.go index d8678448d..c1a53ce30 100644 --- a/sys/configure/structs/game.rdtaskAllData.go +++ b/sys/configure/structs/Game.RdtaskData.go @@ -10,82 +10,82 @@ package cfg import "errors" -type GameRdtaskAllData struct { +type GameRdtaskData struct { Id int32 Type int32 - Lasttask int32 - Rdtasknum []int32 - Aftertask int32 - Taskcd int32 - Tag int32 - Story int32 - Completetask int32 - Chooseid []int32 - Reword []*Gameatn + PreTid int32 + Condition []int32 + NextTid int32 + CD int32 + ObjType int32 + StoryBegin int32 + StoryEnd int32 + ChooseId []int32 + Reward []*Gameatn } -const TypeId_GameRdtaskAllData = -891725512 +const TypeId_GameRdtaskData = -358357379 -func (*GameRdtaskAllData) GetTypeId() int32 { - return -891725512 +func (*GameRdtaskData) GetTypeId() int32 { + return -358357379 } -func (_v *GameRdtaskAllData)Deserialize(_buf map[string]interface{}) (err error) { +func (_v *GameRdtaskData)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } { var _ok_ bool; 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["lasttask"].(float64); !_ok_ { err = errors.New("lasttask error"); return }; _v.Lasttask = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["preTid"].(float64); !_ok_ { err = errors.New("preTid error"); return }; _v.PreTid = int32(_tempNum_) } { var _arr_ []interface{} var _ok_ bool - if _arr_, _ok_ = _buf["rdtasknum"].([]interface{}); !_ok_ { err = errors.New("rdtasknum error"); return } + if _arr_, _ok_ = _buf["condition"].([]interface{}); !_ok_ { err = errors.New("condition error"); return } - _v.Rdtasknum = make([]int32, 0, len(_arr_)) + _v.Condition = make([]int32, 0, len(_arr_)) for _, _e_ := range _arr_ { var _list_v_ int32 { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.Rdtasknum = append(_v.Rdtasknum, _list_v_) + _v.Condition = append(_v.Condition, _list_v_) } } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["aftertask"].(float64); !_ok_ { err = errors.New("aftertask error"); return }; _v.Aftertask = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["taskcd"].(float64); !_ok_ { err = errors.New("taskcd error"); return }; _v.Taskcd = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["tag"].(float64); !_ok_ { err = errors.New("tag error"); return }; _v.Tag = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["story"].(float64); !_ok_ { err = errors.New("story error"); return }; _v.Story = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["completetask"].(float64); !_ok_ { err = errors.New("completetask error"); return }; _v.Completetask = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["nextTid"].(float64); !_ok_ { err = errors.New("nextTid error"); return }; _v.NextTid = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["CD"].(float64); !_ok_ { err = errors.New("CD error"); return }; _v.CD = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["objType"].(float64); !_ok_ { err = errors.New("objType error"); return }; _v.ObjType = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["storyBegin"].(float64); !_ok_ { err = errors.New("storyBegin error"); return }; _v.StoryBegin = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["storyEnd"].(float64); !_ok_ { err = errors.New("storyEnd error"); return }; _v.StoryEnd = int32(_tempNum_) } { var _arr_ []interface{} var _ok_ bool - if _arr_, _ok_ = _buf["chooseid"].([]interface{}); !_ok_ { err = errors.New("chooseid error"); return } + if _arr_, _ok_ = _buf["chooseId"].([]interface{}); !_ok_ { err = errors.New("chooseId error"); return } - _v.Chooseid = make([]int32, 0, len(_arr_)) + _v.ChooseId = make([]int32, 0, len(_arr_)) for _, _e_ := range _arr_ { var _list_v_ int32 { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.Chooseid = append(_v.Chooseid, _list_v_) + _v.ChooseId = append(_v.ChooseId, _list_v_) } } { var _arr_ []interface{} var _ok_ bool - if _arr_, _ok_ = _buf["reword"].([]interface{}); !_ok_ { err = errors.New("reword error"); return } + if _arr_, _ok_ = _buf["reward"].([]interface{}); !_ok_ { err = errors.New("reward error"); return } - _v.Reword = make([]*Gameatn, 0, len(_arr_)) + _v.Reward = make([]*Gameatn, 0, len(_arr_)) for _, _e_ := range _arr_ { var _list_v_ *Gameatn { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } } - _v.Reword = append(_v.Reword, _list_v_) + _v.Reward = append(_v.Reward, _list_v_) } } return } -func DeserializeGameRdtaskAllData(_buf map[string]interface{}) (*GameRdtaskAllData, error) { - v := &GameRdtaskAllData{} +func DeserializeGameRdtaskData(_buf map[string]interface{}) (*GameRdtaskData, error) { + v := &GameRdtaskData{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { diff --git a/sys/configure/structs/Game.Smithy.go b/sys/configure/structs/Game.Smithy.go new file mode 100644 index 000000000..17470c9fc --- /dev/null +++ b/sys/configure/structs/Game.Smithy.go @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +type GameSmithy struct { + _dataMap map[int32]*GameSmithyData + _dataList []*GameSmithyData +} + +func NewGameSmithy(_buf []map[string]interface{}) (*GameSmithy, error) { + _dataList := make([]*GameSmithyData, 0, len(_buf)) + dataMap := make(map[int32]*GameSmithyData) + for _, _ele_ := range _buf { + if _v, err2 := DeserializeGameSmithyData(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &GameSmithy{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *GameSmithy) GetDataMap() map[int32]*GameSmithyData { + return table._dataMap +} + +func (table *GameSmithy) GetDataList() []*GameSmithyData { + return table._dataList +} + +func (table *GameSmithy) Get(key int32) *GameSmithyData { + return table._dataMap[key] +} + + diff --git a/sys/configure/structs/Game.SmithyData.go b/sys/configure/structs/Game.SmithyData.go new file mode 100644 index 000000000..8e0cc0166 --- /dev/null +++ b/sys/configure/structs/Game.SmithyData.go @@ -0,0 +1,100 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +import "errors" + +type GameSmithyData struct { + Id int32 + Type int32 + Star int32 + Starshow string + Before int32 + Starupneed []*Gameatn + Probability int32 + Floors int32 + Dropshow []*Gameatn + Using int32 + Drop int32 + Orderneed []*Gameatn + Desk string + Shelves string +} + +const TypeId_GameSmithyData = 2042540316 + +func (*GameSmithyData) GetTypeId() int32 { + return 2042540316 +} + +func (_v *GameSmithyData)Deserialize(_buf map[string]interface{}) (err error) { + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; 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["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) } + {var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["starshow"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Starshow error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Starshow, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["before"].(float64); !_ok_ { err = errors.New("before error"); return }; _v.Before = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["starupneed"].([]interface{}); !_ok_ { err = errors.New("starupneed error"); return } + + _v.Starupneed = make([]*Gameatn, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *Gameatn + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } } + _v.Starupneed = append(_v.Starupneed, _list_v_) + } + } + + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["probability"].(float64); !_ok_ { err = errors.New("probability error"); return }; _v.Probability = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["floors"].(float64); !_ok_ { err = errors.New("floors error"); return }; _v.Floors = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["dropshow"].([]interface{}); !_ok_ { err = errors.New("dropshow error"); return } + + _v.Dropshow = make([]*Gameatn, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *Gameatn + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } } + _v.Dropshow = append(_v.Dropshow, _list_v_) + } + } + + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["using"].(float64); !_ok_ { err = errors.New("using error"); return }; _v.Using = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["drop"].(float64); !_ok_ { err = errors.New("drop error"); return }; _v.Drop = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["orderneed"].([]interface{}); !_ok_ { err = errors.New("orderneed error"); return } + + _v.Orderneed = make([]*Gameatn, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *Gameatn + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } } + _v.Orderneed = append(_v.Orderneed, _list_v_) + } + } + + { var _ok_ bool; if _v.Desk, _ok_ = _buf["desk"].(string); !_ok_ { err = errors.New("desk error"); return } } + { var _ok_ bool; if _v.Shelves, _ok_ = _buf["shelves"].(string); !_ok_ { err = errors.New("shelves error"); return } } + return +} + +func DeserializeGameSmithyData(_buf map[string]interface{}) (*GameSmithyData, error) { + v := &GameSmithyData{} + if err := v.Deserialize(_buf); err == nil { + return v, nil + } else { + return nil, err + } +} diff --git a/sys/configure/structs/Game.SmithyStove.go b/sys/configure/structs/Game.SmithyStove.go new file mode 100644 index 000000000..e4181602c --- /dev/null +++ b/sys/configure/structs/Game.SmithyStove.go @@ -0,0 +1,42 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +type GameSmithyStove struct { + _dataMap map[int32]*GameSmithyStoveData + _dataList []*GameSmithyStoveData +} + +func NewGameSmithyStove(_buf []map[string]interface{}) (*GameSmithyStove, error) { + _dataList := make([]*GameSmithyStoveData, 0, len(_buf)) + dataMap := make(map[int32]*GameSmithyStoveData) + for _, _ele_ := range _buf { + if _v, err2 := DeserializeGameSmithyStoveData(_ele_); err2 != nil { + return nil, err2 + } else { + _dataList = append(_dataList, _v) + dataMap[_v.Id] = _v + } + } + return &GameSmithyStove{_dataList:_dataList, _dataMap:dataMap}, nil +} + +func (table *GameSmithyStove) GetDataMap() map[int32]*GameSmithyStoveData { + return table._dataMap +} + +func (table *GameSmithyStove) GetDataList() []*GameSmithyStoveData { + return table._dataList +} + +func (table *GameSmithyStove) Get(key int32) *GameSmithyStoveData { + return table._dataMap[key] +} + + diff --git a/sys/configure/structs/Game.SmithyStoveData.go b/sys/configure/structs/Game.SmithyStoveData.go new file mode 100644 index 000000000..9cce4aecc --- /dev/null +++ b/sys/configure/structs/Game.SmithyStoveData.go @@ -0,0 +1,64 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +package cfg + +import "errors" + +type GameSmithyStoveData struct { + Id int32 + Star int32 + Starshow string + Before int32 + Starupneed []*Gameatn + Probability int32 + Floors int32 + Time int32 + Desk string +} + +const TypeId_GameSmithyStoveData = -1387348875 + +func (*GameSmithyStoveData) GetTypeId() int32 { + return -1387348875 +} + +func (_v *GameSmithyStoveData)Deserialize(_buf map[string]interface{}) (err error) { + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["star"].(float64); !_ok_ { err = errors.New("star error"); return }; _v.Star = int32(_tempNum_) } + {var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["starshow"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Starshow error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Starshow, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["before"].(float64); !_ok_ { err = errors.New("before error"); return }; _v.Before = int32(_tempNum_) } + { + var _arr_ []interface{} + var _ok_ bool + if _arr_, _ok_ = _buf["starupneed"].([]interface{}); !_ok_ { err = errors.New("starupneed error"); return } + + _v.Starupneed = make([]*Gameatn, 0, len(_arr_)) + + for _, _e_ := range _arr_ { + var _list_v_ *Gameatn + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _e_.(map[string]interface{}); !_ok_ { err = errors.New("_list_v_ error"); return }; if _list_v_, err = DeserializeGameatn(_x_); err != nil { return } } + _v.Starupneed = append(_v.Starupneed, _list_v_) + } + } + + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["probability"].(float64); !_ok_ { err = errors.New("probability error"); return }; _v.Probability = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["floors"].(float64); !_ok_ { err = errors.New("floors error"); return }; _v.Floors = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["time"].(float64); !_ok_ { err = errors.New("time error"); return }; _v.Time = int32(_tempNum_) } + { var _ok_ bool; if _v.Desk, _ok_ = _buf["desk"].(string); !_ok_ { err = errors.New("desk error"); return } } + return +} + +func DeserializeGameSmithyStoveData(_buf map[string]interface{}) (*GameSmithyStoveData, error) { + v := &GameSmithyStoveData{} + if err := v.Deserialize(_buf); err == nil { + return v, nil + } else { + return nil, err + } +} diff --git a/sys/configure/structs/Tables.go b/sys/configure/structs/Tables.go index ef29acecd..699c890a2 100644 --- a/sys/configure/structs/Tables.go +++ b/sys/configure/structs/Tables.go @@ -38,7 +38,6 @@ type Tables struct { Shop *GameShop Shopitem *GameShopitem ActiveReward *GameActiveReward - Com *GameCom Skill *GameSkill Model *GameModel MainlineChapter *GameMainlineChapter @@ -50,6 +49,7 @@ type Tables struct { ChatSystem *GameChatSystem ChatServerGroup *GameChatServerGroup ChatChannelCom *GameChatChannelCom + ChatExpression *GameChatExpression TaskRound *GameTaskRound TaskActiveReward *GameTaskActiveReward Coin *GameCoin @@ -66,14 +66,16 @@ type Tables struct { PagodaTaskReward *GamePagodaTaskReward PagodaSeasonReward *GamePagodaSeasonReward PagodaseasonLoop *GamePagodaseasonLoop - RdtaskAll *GameRdtaskAll - RdtaskType *GameRdtaskType + Rdtask *GameRdtask + RdtaskCondi *GameRdtaskCondi RdtaskChoose *GameRdtaskChoose KungfuUnlock *GameKungfuUnlock KungfuMasterworker *GameKungfuMasterworker Gourmet *GameGourmet GourmetSkill *GameGourmetSkill Drop *GameDrop + Smithy *GameSmithy + SmithyStove *GameSmithyStove } func NewTables(loader JsonLoader) (*Tables, error) { @@ -243,12 +245,6 @@ func NewTables(loader JsonLoader) (*Tables, error) { if tables.ActiveReward, err = NewGameActiveReward(buf) ; err != nil { return nil, err } - if buf, err = loader("game_com") ; err != nil { - return nil, err - } - if tables.Com, err = NewGameCom(buf) ; err != nil { - return nil, err - } if buf, err = loader("game_skill") ; err != nil { return nil, err } @@ -315,6 +311,12 @@ func NewTables(loader JsonLoader) (*Tables, error) { if tables.ChatChannelCom, err = NewGameChatChannelCom(buf) ; err != nil { return nil, err } + if buf, err = loader("game_chatexpression") ; err != nil { + return nil, err + } + if tables.ChatExpression, err = NewGameChatExpression(buf) ; err != nil { + return nil, err + } if buf, err = loader("game_taskround") ; err != nil { return nil, err } @@ -411,16 +413,16 @@ func NewTables(loader JsonLoader) (*Tables, error) { if tables.PagodaseasonLoop, err = NewGamePagodaseasonLoop(buf) ; err != nil { return nil, err } - if buf, err = loader("game_rdtaskall") ; err != nil { + if buf, err = loader("game_rdtask") ; err != nil { return nil, err } - if tables.RdtaskAll, err = NewGameRdtaskAll(buf) ; err != nil { + if tables.Rdtask, err = NewGameRdtask(buf) ; err != nil { return nil, err } - if buf, err = loader("game_rdtasktype") ; err != nil { + if buf, err = loader("game_rdtaskcondi") ; err != nil { return nil, err } - if tables.RdtaskType, err = NewGameRdtaskType(buf) ; err != nil { + if tables.RdtaskCondi, err = NewGameRdtaskCondi(buf) ; err != nil { return nil, err } if buf, err = loader("game_rdtaskchoose") ; err != nil { @@ -459,5 +461,17 @@ func NewTables(loader JsonLoader) (*Tables, error) { if tables.Drop, err = NewGameDrop(buf) ; err != nil { return nil, err } + if buf, err = loader("game_smithy") ; err != nil { + return nil, err + } + if tables.Smithy, err = NewGameSmithy(buf) ; err != nil { + return nil, err + } + if buf, err = loader("game_smithystove") ; err != nil { + return nil, err + } + if tables.SmithyStove, err = NewGameSmithyStove(buf) ; err != nil { + return nil, err + } return tables, nil } diff --git a/sys/configure/structs/game.com.go b/sys/configure/structs/game.com.go deleted file mode 100644 index 1031d36a5..000000000 --- a/sys/configure/structs/game.com.go +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -package cfg - -type GameCom struct { - _dataMap map[int32]*GameComData - _dataList []*GameComData -} - -func NewGameCom(_buf []map[string]interface{}) (*GameCom, error) { - _dataList := make([]*GameComData, 0, len(_buf)) - dataMap := make(map[int32]*GameComData) - for _, _ele_ := range _buf { - if _v, err2 := DeserializeGameComData(_ele_); err2 != nil { - return nil, err2 - } else { - _dataList = append(_dataList, _v) - dataMap[_v.MaxChar] = _v - } - } - return &GameCom{_dataList:_dataList, _dataMap:dataMap}, nil -} - -func (table *GameCom) GetDataMap() map[int32]*GameComData { - return table._dataMap -} - -func (table *GameCom) GetDataList() []*GameComData { - return table._dataList -} - -func (table *GameCom) Get(key int32) *GameComData { - return table._dataMap[key] -} - - diff --git a/sys/configure/structs/game.comData.go b/sys/configure/structs/game.comData.go deleted file mode 100644 index 4327121d0..000000000 --- a/sys/configure/structs/game.comData.go +++ /dev/null @@ -1,235 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -package cfg - -import "errors" - -type GameComData struct { - MaxChar int32 - TaskReset int32 - InitGold int32 - InitHero []int32 - Cameramin []int32 - MaxGetreward []int32 - Cameramax []float32 - Heroshownum int32 - Equipsuitsum []int32 - FriendMaxnum int32 - FriendMinnum int32 - FriendMaxgetnum int32 - FriendMaxsendnum int32 - FriendDate int32 - FriendRecordtime int32 - FriendBlack int32 - ChannelCdWorld int32 - ChannelCdGuild int32 - ChannelCdPrivate int32 - ChannelCdPublic int32 - ChannelLockIcon int32 - MaxWord int32 - MaxChat int32 - MaxObject int32 - LoadChat int32 - ChannelAllocationMax int32 - ChannelSwitchingMax int32 - DrawToplimit int32 - Draw10Star4Max int32 - Draw10Star5Max int32 - DrawFloorStar4 int32 - DrawFloorStar5 int32 - DuplicateRemoval int32 - BasePoolCost *Gameatn - Camp1PoolCost *Gameatn - Camp2PoolCost *Gameatn - Camp3PoolCost *Gameatn - Camp4PoolCost *Gameatn - BasePool10cost *Gameatn - Camp1Pool10cost *Gameatn - Camp2Pool10cost *Gameatn - Camp3Pool10cost *Gameatn - Camp4Pool10cost *Gameatn - Camp1Pool1 string - Camp2Pool1 string - Camp3Pool1 string - Camp4Pool1 string - BasePool1 *Gamebasepool - BasePool2 *Gamebasepool - BasePool3 *Gamebasepool - BasePool4 *Gamebasepool - BasePoolStar3 int32 - BasePoolStar4 int32 - BasePoolStar5 int32 - CampPoolStar3 int32 - CampPoolStar4 int32 - CampPoolStar5 int32 - Gourmet int32 - SmithyMaxplayer int32 - SmithyMaxtime int32 - ChatExpressionSmall []string - KungfuTime int32 -} - -const TypeId_GameComData = 1433629391 - -func (*GameComData) GetTypeId() int32 { - return 1433629391 -} - -func (_v *GameComData)Deserialize(_buf map[string]interface{}) (err error) { - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_char"].(float64); !_ok_ { err = errors.New("max_char error"); return }; _v.MaxChar = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["task_reset"].(float64); !_ok_ { err = errors.New("task_reset error"); return }; _v.TaskReset = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["init_gold"].(float64); !_ok_ { err = errors.New("init_gold error"); return }; _v.InitGold = int32(_tempNum_) } - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["init_hero"].([]interface{}); !_ok_ { err = errors.New("init_hero error"); return } - - _v.InitHero = make([]int32, 0, len(_arr_)) - - for _, _e_ := range _arr_ { - var _list_v_ int32 - { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.InitHero = append(_v.InitHero, _list_v_) - } - } - - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["cameramin"].([]interface{}); !_ok_ { err = errors.New("cameramin error"); return } - - _v.Cameramin = make([]int32, 0, len(_arr_)) - - for _, _e_ := range _arr_ { - var _list_v_ int32 - { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.Cameramin = append(_v.Cameramin, _list_v_) - } - } - - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["max_getreward"].([]interface{}); !_ok_ { err = errors.New("max_getreward error"); return } - - _v.MaxGetreward = make([]int32, 0, len(_arr_)) - - for _, _e_ := range _arr_ { - var _list_v_ int32 - { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.MaxGetreward = append(_v.MaxGetreward, _list_v_) - } - } - - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["cameramax"].([]interface{}); !_ok_ { err = errors.New("cameramax error"); return } - - _v.Cameramax = make([]float32, 0, len(_arr_)) - - for _, _e_ := range _arr_ { - var _list_v_ float32 - { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = float32(_x_) } - _v.Cameramax = append(_v.Cameramax, _list_v_) - } - } - - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["heroshownum"].(float64); !_ok_ { err = errors.New("heroshownum error"); return }; _v.Heroshownum = int32(_tempNum_) } - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["equipsuitsum"].([]interface{}); !_ok_ { err = errors.New("equipsuitsum error"); return } - - _v.Equipsuitsum = make([]int32, 0, len(_arr_)) - - for _, _e_ := range _arr_ { - var _list_v_ int32 - { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.Equipsuitsum = append(_v.Equipsuitsum, _list_v_) - } - } - - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["friend_maxnum"].(float64); !_ok_ { err = errors.New("friend_maxnum error"); return }; _v.FriendMaxnum = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["friend_minnum"].(float64); !_ok_ { err = errors.New("friend_minnum error"); return }; _v.FriendMinnum = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["friend_maxgetnum"].(float64); !_ok_ { err = errors.New("friend_maxgetnum error"); return }; _v.FriendMaxgetnum = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["friend_maxsendnum"].(float64); !_ok_ { err = errors.New("friend_maxsendnum error"); return }; _v.FriendMaxsendnum = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["friend_date"].(float64); !_ok_ { err = errors.New("friend_date error"); return }; _v.FriendDate = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["friend_recordtime"].(float64); !_ok_ { err = errors.New("friend_recordtime error"); return }; _v.FriendRecordtime = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["friend_black"].(float64); !_ok_ { err = errors.New("friend_black error"); return }; _v.FriendBlack = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["channel_cd_world"].(float64); !_ok_ { err = errors.New("channel_cd_world error"); return }; _v.ChannelCdWorld = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["channel_cd_guild"].(float64); !_ok_ { err = errors.New("channel_cd_guild error"); return }; _v.ChannelCdGuild = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["channel_cd_private"].(float64); !_ok_ { err = errors.New("channel_cd_private error"); return }; _v.ChannelCdPrivate = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["channel_cd_public"].(float64); !_ok_ { err = errors.New("channel_cd_public error"); return }; _v.ChannelCdPublic = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["channel_lock_icon"].(float64); !_ok_ { err = errors.New("channel_lock_icon error"); return }; _v.ChannelLockIcon = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_word"].(float64); !_ok_ { err = errors.New("max_word error"); return }; _v.MaxWord = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_chat"].(float64); !_ok_ { err = errors.New("max_chat error"); return }; _v.MaxChat = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_object"].(float64); !_ok_ { err = errors.New("max_object error"); return }; _v.MaxObject = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["load_chat"].(float64); !_ok_ { err = errors.New("load_chat error"); return }; _v.LoadChat = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["channel_allocation_max"].(float64); !_ok_ { err = errors.New("channel_allocation_max error"); return }; _v.ChannelAllocationMax = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["channel_switching_max"].(float64); !_ok_ { err = errors.New("channel_switching_max error"); return }; _v.ChannelSwitchingMax = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["draw_toplimit"].(float64); !_ok_ { err = errors.New("draw_toplimit error"); return }; _v.DrawToplimit = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["draw10_star4_max"].(float64); !_ok_ { err = errors.New("draw10_star4_max error"); return }; _v.Draw10Star4Max = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["draw10_star5_max"].(float64); !_ok_ { err = errors.New("draw10_star5_max error"); return }; _v.Draw10Star5Max = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["draw_floor_star4"].(float64); !_ok_ { err = errors.New("draw_floor_star4 error"); return }; _v.DrawFloorStar4 = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["draw_floor_star5"].(float64); !_ok_ { err = errors.New("draw_floor_star5 error"); return }; _v.DrawFloorStar5 = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["duplicate_removal"].(float64); !_ok_ { err = errors.New("duplicate_removal error"); return }; _v.DuplicateRemoval = int32(_tempNum_) } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["base_pool_cost"].(map[string]interface{}); !_ok_ { err = errors.New("base_pool_cost error"); return }; if _v.BasePoolCost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["camp1_pool_cost"].(map[string]interface{}); !_ok_ { err = errors.New("camp1_pool_cost error"); return }; if _v.Camp1PoolCost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["camp2_pool_cost"].(map[string]interface{}); !_ok_ { err = errors.New("camp2_pool_cost error"); return }; if _v.Camp2PoolCost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["camp3_pool_cost"].(map[string]interface{}); !_ok_ { err = errors.New("camp3_pool_cost error"); return }; if _v.Camp3PoolCost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["camp4_pool_cost"].(map[string]interface{}); !_ok_ { err = errors.New("camp4_pool_cost error"); return }; if _v.Camp4PoolCost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["base_pool_10cost"].(map[string]interface{}); !_ok_ { err = errors.New("base_pool_10cost error"); return }; if _v.BasePool10cost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["camp1_pool_10cost"].(map[string]interface{}); !_ok_ { err = errors.New("camp1_pool_10cost error"); return }; if _v.Camp1Pool10cost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["camp2_pool_10cost"].(map[string]interface{}); !_ok_ { err = errors.New("camp2_pool_10cost error"); return }; if _v.Camp2Pool10cost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["camp3_pool_10cost"].(map[string]interface{}); !_ok_ { err = errors.New("camp3_pool_10cost error"); return }; if _v.Camp3Pool10cost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["camp4_pool_10cost"].(map[string]interface{}); !_ok_ { err = errors.New("camp4_pool_10cost error"); return }; if _v.Camp4Pool10cost, err = DeserializeGameatn(_x_); err != nil { return } } - { var _ok_ bool; if _v.Camp1Pool1, _ok_ = _buf["camp1_pool1"].(string); !_ok_ { err = errors.New("camp1_pool1 error"); return } } - { var _ok_ bool; if _v.Camp2Pool1, _ok_ = _buf["camp2_pool1"].(string); !_ok_ { err = errors.New("camp2_pool1 error"); return } } - { var _ok_ bool; if _v.Camp3Pool1, _ok_ = _buf["camp3_pool1"].(string); !_ok_ { err = errors.New("camp3_pool1 error"); return } } - { var _ok_ bool; if _v.Camp4Pool1, _ok_ = _buf["camp4_pool1"].(string); !_ok_ { err = errors.New("camp4_pool1 error"); return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["base_pool1"].(map[string]interface{}); !_ok_ { err = errors.New("base_pool1 error"); return }; if _v.BasePool1, err = DeserializeGamebasepool(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["base_pool2"].(map[string]interface{}); !_ok_ { err = errors.New("base_pool2 error"); return }; if _v.BasePool2, err = DeserializeGamebasepool(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["base_pool3"].(map[string]interface{}); !_ok_ { err = errors.New("base_pool3 error"); return }; if _v.BasePool3, err = DeserializeGamebasepool(_x_); err != nil { return } } - { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["base_pool4"].(map[string]interface{}); !_ok_ { err = errors.New("base_pool4 error"); return }; if _v.BasePool4, err = DeserializeGamebasepool(_x_); err != nil { return } } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["base_pool_star3"].(float64); !_ok_ { err = errors.New("base_pool_star3 error"); return }; _v.BasePoolStar3 = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["base_pool_star4"].(float64); !_ok_ { err = errors.New("base_pool_star4 error"); return }; _v.BasePoolStar4 = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["base_pool_star5"].(float64); !_ok_ { err = errors.New("base_pool_star5 error"); return }; _v.BasePoolStar5 = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["camp_pool_star3"].(float64); !_ok_ { err = errors.New("camp_pool_star3 error"); return }; _v.CampPoolStar3 = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["camp_pool_star4"].(float64); !_ok_ { err = errors.New("camp_pool_star4 error"); return }; _v.CampPoolStar4 = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["camp_pool_star5"].(float64); !_ok_ { err = errors.New("camp_pool_star5 error"); return }; _v.CampPoolStar5 = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["gourmet"].(float64); !_ok_ { err = errors.New("gourmet error"); return }; _v.Gourmet = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["smithy_maxplayer"].(float64); !_ok_ { err = errors.New("smithy_maxplayer error"); return }; _v.SmithyMaxplayer = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["smithy_maxtime"].(float64); !_ok_ { err = errors.New("smithy_maxtime error"); return }; _v.SmithyMaxtime = int32(_tempNum_) } - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["chat_expression_small"].([]interface{}); !_ok_ { err = errors.New("chat_expression_small error"); return } - - _v.ChatExpressionSmall = 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.ChatExpressionSmall = append(_v.ChatExpressionSmall, _list_v_) - } - } - - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["kungfu_time"].(float64); !_ok_ { err = errors.New("kungfu_time error"); return }; _v.KungfuTime = int32(_tempNum_) } - return -} - -func DeserializeGameComData(_buf map[string]interface{}) (*GameComData, error) { - v := &GameComData{} - if err := v.Deserialize(_buf); err == nil { - return v, nil - } else { - return nil, err - } -} diff --git a/sys/configure/structs/game.rdtaskAll.go b/sys/configure/structs/game.rdtaskAll.go deleted file mode 100644 index cbd2288a3..000000000 --- a/sys/configure/structs/game.rdtaskAll.go +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -package cfg - -type GameRdtaskAll struct { - _dataMap map[int32]*GameRdtaskAllData - _dataList []*GameRdtaskAllData -} - -func NewGameRdtaskAll(_buf []map[string]interface{}) (*GameRdtaskAll, error) { - _dataList := make([]*GameRdtaskAllData, 0, len(_buf)) - dataMap := make(map[int32]*GameRdtaskAllData) - for _, _ele_ := range _buf { - if _v, err2 := DeserializeGameRdtaskAllData(_ele_); err2 != nil { - return nil, err2 - } else { - _dataList = append(_dataList, _v) - dataMap[_v.Id] = _v - } - } - return &GameRdtaskAll{_dataList:_dataList, _dataMap:dataMap}, nil -} - -func (table *GameRdtaskAll) GetDataMap() map[int32]*GameRdtaskAllData { - return table._dataMap -} - -func (table *GameRdtaskAll) GetDataList() []*GameRdtaskAllData { - return table._dataList -} - -func (table *GameRdtaskAll) Get(key int32) *GameRdtaskAllData { - return table._dataMap[key] -} - - diff --git a/sys/configure/structs/game.rdtaskChoose.go b/sys/configure/structs/game.rdtaskChoose.go index 6d34008d7..9aea482ed 100644 --- a/sys/configure/structs/game.rdtaskChoose.go +++ b/sys/configure/structs/game.rdtaskChoose.go @@ -21,7 +21,7 @@ func NewGameRdtaskChoose(_buf []map[string]interface{}) (*GameRdtaskChoose, erro return nil, err2 } else { _dataList = append(_dataList, _v) - dataMap[_v.Chooseid] = _v + dataMap[_v.Id] = _v } } return &GameRdtaskChoose{_dataList:_dataList, _dataMap:dataMap}, nil diff --git a/sys/configure/structs/game.rdtaskChooseData.go b/sys/configure/structs/game.rdtaskChooseData.go index 08819f11b..be47c9581 100644 --- a/sys/configure/structs/game.rdtaskChooseData.go +++ b/sys/configure/structs/game.rdtaskChooseData.go @@ -11,10 +11,10 @@ package cfg import "errors" type GameRdtaskChooseData struct { - Chooseid int32 + Id int32 Num int32 - Rdtaksnum int32 - Need []int32 + PreTid int32 + NeedItem []int32 } const TypeId_GameRdtaskChooseData = -1833024780 @@ -24,20 +24,20 @@ func (*GameRdtaskChooseData) GetTypeId() int32 { } func (_v *GameRdtaskChooseData)Deserialize(_buf map[string]interface{}) (err error) { - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["chooseid"].(float64); !_ok_ { err = errors.New("chooseid error"); return }; _v.Chooseid = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["num"].(float64); !_ok_ { err = errors.New("num error"); return }; _v.Num = int32(_tempNum_) } - { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["rdtaksnum"].(float64); !_ok_ { err = errors.New("rdtaksnum error"); return }; _v.Rdtaksnum = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["preTid"].(float64); !_ok_ { err = errors.New("preTid error"); return }; _v.PreTid = int32(_tempNum_) } { var _arr_ []interface{} var _ok_ bool - if _arr_, _ok_ = _buf["need"].([]interface{}); !_ok_ { err = errors.New("need error"); return } + if _arr_, _ok_ = _buf["needItem"].([]interface{}); !_ok_ { err = errors.New("needItem error"); return } - _v.Need = make([]int32, 0, len(_arr_)) + _v.NeedItem = make([]int32, 0, len(_arr_)) for _, _e_ := range _arr_ { var _list_v_ int32 { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.Need = append(_v.Need, _list_v_) + _v.NeedItem = append(_v.NeedItem, _list_v_) } } diff --git a/sys/configure/structs/game.rdtaskType.go b/sys/configure/structs/game.rdtaskType.go deleted file mode 100644 index e9eae488e..000000000 --- a/sys/configure/structs/game.rdtaskType.go +++ /dev/null @@ -1,42 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -package cfg - -type GameRdtaskType struct { - _dataMap map[int32]*GameRdtaskTypeData - _dataList []*GameRdtaskTypeData -} - -func NewGameRdtaskType(_buf []map[string]interface{}) (*GameRdtaskType, error) { - _dataList := make([]*GameRdtaskTypeData, 0, len(_buf)) - dataMap := make(map[int32]*GameRdtaskTypeData) - for _, _ele_ := range _buf { - if _v, err2 := DeserializeGameRdtaskTypeData(_ele_); err2 != nil { - return nil, err2 - } else { - _dataList = append(_dataList, _v) - dataMap[_v.Rdtaksnum] = _v - } - } - return &GameRdtaskType{_dataList:_dataList, _dataMap:dataMap}, nil -} - -func (table *GameRdtaskType) GetDataMap() map[int32]*GameRdtaskTypeData { - return table._dataMap -} - -func (table *GameRdtaskType) GetDataList() []*GameRdtaskTypeData { - return table._dataList -} - -func (table *GameRdtaskType) Get(key int32) *GameRdtaskTypeData { - return table._dataMap[key] -} - - From 21dabd2f98c076756826fb9bd3d2c956d28bc21f Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 19 Aug 2022 18:33:21 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 12 ++++++------ modules/rtask/model_rtask.go | 15 ++++++++++----- modules/rtask/module.go | 5 +++++ 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/comm/const.go b/comm/const.go index 1f793be15..d2e1f7bcc 100644 --- a/comm/const.go +++ b/comm/const.go @@ -186,12 +186,12 @@ const ( // 随机任务类型 const ( - RtaskTypeHeroTarget TaskType = 1 //英雄指定 - RtaskTypeHeroLvTarget TaskType = 2 //指定英雄的等级 - RtaskTypeEquipNum TaskType = 3 //装备数量 - RtaskTypePoltId TaskType = 4 //剧情ID - RtaskTypeTaskDay TaskType = 5 //每日任务 - + RtaskTypeHeroTarget TaskType = 1 //英雄指定 + RtaskTypeHeroLvTarget TaskType = 4 //指定英雄的等级 + RtaskTypeEquipNum TaskType = 5 //指定英雄的装备数量 + RtaskTypePoltId TaskType = 2 //剧情ID + RtaskTypeTaskDay TaskType = 3 //每日任务 + RtaskTypeHeroStarTarget TaskType = 6 //指定英雄的星级 ) const ( diff --git a/modules/rtask/model_rtask.go b/modules/rtask/model_rtask.go index 788ac57cf..502ec8dd4 100644 --- a/modules/rtask/model_rtask.go +++ b/modules/rtask/model_rtask.go @@ -60,27 +60,32 @@ func (this *ModelRtask) doRtaskHandle(uid string, param *pb.RtaskParam) (rtaskId return } -// 1 英雄指定 +// 英雄指定 func (this *ModelRtask) HeroTarget(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 } -// 2 指定英雄的等级 +// 指定英雄的等级 func (this *ModelRtask) HeroLvTarget(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 && cfg.Data1 == tp.Param2 } -// 3 指定英雄的指定装备的数量 +// 指定英雄的指定装备的数量 func (this *ModelRtask) EquipNum(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 && cfg.Data2 == tp.Param2 && cfg.Data3 == tp.Param3 } -// 4 剧情ID +// 剧情ID func (this *ModelRtask) PoltId(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 } -// 5 每日任务 +// 每日任务 func (this *ModelRtask) TaskDay(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { return cfg.Data1 == tp.Param1 } + +// 指定英雄的星级 +func (this *ModelRtask) HeroStarTarget(cfg *cfg.GameRdtaskCondiData, tp *pb.RtaskParam) (ok bool) { + return cfg.Data1 == tp.Param1 && cfg.Data2 == tp.Param2 +} diff --git a/modules/rtask/module.go b/modules/rtask/module.go index b00e47178..7a73a6dc9 100644 --- a/modules/rtask/module.go +++ b/modules/rtask/module.go @@ -88,6 +88,11 @@ func (this *ModuleRtask) initRtaskHandle() { cfg: typeCfg, fn: this.modelRtask.HeroLvTarget, }) + case comm.RtaskTypeHeroStarTarget: + handlers = append(handlers, &rtaskCondi{ + cfg: typeCfg, + fn: this.modelRtask.HeroStarTarget, + }) case comm.RtaskTypeEquipNum: handlers = append(handlers, &rtaskCondi{ cfg: typeCfg,