This commit is contained in:
liwei1dao 2023-11-24 16:29:39 +08:00
commit 988536dda7
42 changed files with 2027 additions and 406 deletions

View File

@ -26,11 +26,11 @@
}, },
"optionText1": { "optionText1": {
"key": "drawcard_asked_optionText1_2", "key": "drawcard_asked_optionText1_2",
"text": "1.是主角没错" "text": "是主角没错"
}, },
"optionText2": { "optionText2": {
"key": "drawcard_asked_optionText3", "key": "drawcard_asked_optionText3",
"text": "2.只是普通肥宅" "text": "只是普通肥宅"
} }
}, },
{ {
@ -77,11 +77,11 @@
}, },
"optionText1": { "optionText1": {
"key": "drawcard_asked_optionText1_5", "key": "drawcard_asked_optionText1_5",
"text": "1.在你眼前啊" "text": "在你眼前啊"
}, },
"optionText2": { "optionText2": {
"key": "drawcard_asked_optionText6", "key": "drawcard_asked_optionText6",
"text": "2.在家打游戏呢" "text": "在家打游戏呢"
} }
}, },
{ {
@ -128,11 +128,11 @@
}, },
"optionText1": { "optionText1": {
"key": "drawcard_asked_optionText1_8", "key": "drawcard_asked_optionText1_8",
"text": "1.只能二选一吗?" "text": "只能二选一吗?"
}, },
"optionText2": { "optionText2": {
"key": "drawcard_asked_optionText9", "key": "drawcard_asked_optionText9",
"text": "2.我来过新手教程" "text": "我来过新手教程"
} }
}, },
{ {
@ -141,7 +141,41 @@
"talkPoint": 0, "talkPoint": 0,
"storyText": { "storyText": {
"key": "drawcard_asked_storyText_9", "key": "drawcard_asked_storyText_9",
"text": "有趣!" "text": "有趣!有趣!"
},
"optionText1": {
"key": "",
"text": ""
},
"optionText2": {
"key": "",
"text": ""
}
},
{
"key": 9,
"type": 0,
"talkPoint": 0,
"storyText": {
"key": "drawcard_asked_storyText_10",
"text": "感受此时的心境,年轻人。"
},
"optionText1": {
"key": "",
"text": ""
},
"optionText2": {
"key": "",
"text": ""
}
},
{
"key": 10,
"type": 0,
"talkPoint": 0,
"storyText": {
"key": "drawcard_asked_storyText_11",
"text": "循着自己的内心,接受他的指引吧……"
}, },
"optionText1": { "optionText1": {
"key": "", "key": "",

View File

@ -1851,7 +1851,7 @@
{ {
"id": 10103005, "id": 10103005,
"PlayType": 1, "PlayType": 1,
"HeroCount": 1, "HeroCount": 5,
"readyScene": "scenesfight_role_interface_07", "readyScene": "scenesfight_role_interface_07",
"battleScenes": [ "battleScenes": [
"scenesfight_09" "scenesfight_09"
@ -2045,7 +2045,7 @@
"BGMusic": "", "BGMusic": "",
"LoadingId": 1019, "LoadingId": 1019,
"HideAlienSpace": 0, "HideAlienSpace": 0,
"HideFightUI": 0, "HideFightUI": 1,
"RuleTips": { "RuleTips": {
"key": "", "key": "",
"text": "" "text": ""
@ -2059,7 +2059,7 @@
"disableAiCamera": 0, "disableAiCamera": 0,
"ChoseCamp": [], "ChoseCamp": [],
"DisableCamp": [], "DisableCamp": [],
"DefaultHero": 0, "DefaultHero": 720013,
"ChoseHero": [], "ChoseHero": [],
"DisableHero": [], "DisableHero": [],
"LockSlots": [], "LockSlots": [],
@ -2089,9 +2089,7 @@
"key": "", "key": "",
"text": "" "text": ""
}, },
"battleEvents": [ "battleEvents": [],
109
],
"ScoreGroupID": 0, "ScoreGroupID": 0,
"disableAiCamera": 0, "disableAiCamera": 0,
"ChoseCamp": [], "ChoseCamp": [],

View File

@ -31,7 +31,7 @@
{ {
"id": 1002, "id": 1002,
"cardnum": { "cardnum": {
"k": 2, "k": 4,
"v": 4 "v": 4
}, },
"stagetime": 120, "stagetime": 120,
@ -60,7 +60,7 @@
{ {
"id": 1003, "id": 1003,
"cardnum": { "cardnum": {
"k": 2, "k": 4,
"v": 4 "v": 4
}, },
"stagetime": 120, "stagetime": 120,
@ -89,7 +89,7 @@
{ {
"id": 1004, "id": 1004,
"cardnum": { "cardnum": {
"k": 2, "k": 4,
"v": 4 "v": 4
}, },
"stagetime": 120, "stagetime": 120,
@ -122,7 +122,7 @@
{ {
"id": 1005, "id": 1005,
"cardnum": { "cardnum": {
"k": 2, "k": 4,
"v": 4 "v": 4
}, },
"stagetime": 120, "stagetime": 120,

View File

@ -596,17 +596,19 @@
"key": "", "key": "",
"text": "" "text": ""
}, },
"When": 20, "When": 1,
"FromCheck": "Side=1,HeroID=44004", "FromCheck": "",
"TargetCheck": "", "TargetCheck": "",
"MainSkillCheck": "", "MainSkillCheck": "",
"AfterSkillCheck": "", "AfterSkillCheck": "",
"BuffCheck": "", "BuffCheck": "",
"FightEndCheck": "", "FightEndCheck": "",
"AddCon": [], "AddCon": [
"Execution": 2, "WaveEqual=1"
],
"Execution": 3,
"Args": [ "Args": [
"6000010" "1"
] ]
}, },
{ {

View File

@ -757,11 +757,12 @@
}, },
"td_Hp": 100, "td_Hp": 100,
"td_division_angle": 3, "td_division_angle": 3,
"playerexname": "achieve_achieve_all_achieve_group_id_06", "playerexname": "playerexname",
"initper": { "initper": {
"a": "per", "a": "per",
"t": "16010000", "t": "16010000",
"n": 1 "n": 1
} },
"catchbugturn": 6
} }
] ]

View File

@ -2004,7 +2004,7 @@
"type": 1, "type": 1,
"ip": 4, "ip": 4,
"sd": 1, "sd": 1,
"handbook": -1, "handbook": 1,
"prefab": "24005", "prefab": "24005",
"rotation": "0|0|0", "rotation": "0|0|0",
"revolve": 0, "revolve": 0,
@ -3498,7 +3498,7 @@
"type": 1, "type": 1,
"ip": 3, "ip": 3,
"sd": 1, "sd": 1,
"handbook": -1, "handbook": 1,
"prefab": "34004", "prefab": "34004",
"rotation": "0|0|0", "rotation": "0|0|0",
"revolve": 0, "revolve": 0,
@ -4079,7 +4079,7 @@
"type": 1, "type": 1,
"ip": 10, "ip": 10,
"sd": 1, "sd": 1,
"handbook": -1, "handbook": 1,
"prefab": "35003", "prefab": "35003",
"rotation": "0|0|0", "rotation": "0|0|0",
"revolve": 0, "revolve": 0,
@ -4245,7 +4245,7 @@
"type": 1, "type": 1,
"ip": 12, "ip": 12,
"sd": 1, "sd": 1,
"handbook": -1, "handbook": 1,
"prefab": "35005", "prefab": "35005",
"rotation": "0|0|0", "rotation": "0|0|0",
"revolve": 0, "revolve": 0,
@ -4411,7 +4411,7 @@
"type": 1, "type": 1,
"ip": 12, "ip": 12,
"sd": 1, "sd": 1,
"handbook": -1, "handbook": 1,
"prefab": "43001", "prefab": "43001",
"rotation": "0|0|0", "rotation": "0|0|0",
"revolve": 0, "revolve": 0,
@ -5490,7 +5490,7 @@
"type": 1, "type": 1,
"ip": 7, "ip": 7,
"sd": 1, "sd": 1,
"handbook": -1, "handbook": 1,
"prefab": "45002", "prefab": "45002",
"rotation": "0|0|0", "rotation": "0|0|0",
"revolve": 0, "revolve": 0,
@ -7067,7 +7067,7 @@
"type": 2, "type": 2,
"ip": 1, "ip": 1,
"sd": 1, "sd": 1,
"handbook": -1, "handbook": 1,
"prefab": "53001", "prefab": "53001",
"rotation": "0|0|0", "rotation": "0|0|0",
"revolve": 0, "revolve": 0,

View File

@ -101,7 +101,7 @@
}, },
{ {
"id": 1011, "id": 1011,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -162,8 +162,8 @@
{ {
"id": 1017, "id": 1017,
"scene": "GameFightScene", "scene": "GameFightScene",
"image": "ld_mh_bg_zd", "image": "ld_mh_bg_fc",
"icon": "loading_icon_gfxm", "icon": "loading_icon_fc",
"prompt": { "prompt": {
"key": "loading_Sheet1_prompt_17", "key": "loading_Sheet1_prompt_17",
"text": "伟大守护者的第一次成就,往往是一场看似平平无奇的战斗。" "text": "伟大守护者的第一次成就,往往是一场看似平平无奇的战斗。"
@ -191,7 +191,7 @@
}, },
{ {
"id": 1020, "id": 1020,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -201,7 +201,7 @@
}, },
{ {
"id": 1021, "id": 1021,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -211,7 +211,7 @@
}, },
{ {
"id": 1022, "id": 1022,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -221,7 +221,7 @@
}, },
{ {
"id": 1023, "id": 1023,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -231,7 +231,7 @@
}, },
{ {
"id": 1024, "id": 1024,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -241,7 +241,7 @@
}, },
{ {
"id": 1025, "id": 1025,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -251,7 +251,7 @@
}, },
{ {
"id": 1026, "id": 1026,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -261,7 +261,7 @@
}, },
{ {
"id": 1027, "id": 1027,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -271,7 +271,7 @@
}, },
{ {
"id": 1028, "id": 1028,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -281,7 +281,7 @@
}, },
{ {
"id": 1029, "id": 1029,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {
@ -291,7 +291,7 @@
}, },
{ {
"id": 1030, "id": 1030,
"scene": "WorldMapScene", "scene": "MainLineScene",
"image": "ld_mh_bg_fc", "image": "ld_mh_bg_fc",
"icon": "loading_icon_fc", "icon": "loading_icon_fc",
"prompt": { "prompt": {

View File

@ -1987,8 +1987,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "", "key": "mainchapter_main_stage_mainlineName_20",
"text": "" "text": "1-20"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2070,8 +2070,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "", "key": "mainchapter_main_stage_mainlineName_21",
"text": "" "text": "1-21"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2157,8 +2157,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "", "key": "mainchapter_main_stage_mainlineName_22",
"text": "" "text": "1-22"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2198,7 +2198,7 @@
"Episodetype": 1, "Episodetype": 1,
"stage_param": 0, "stage_param": 0,
"inherit": 0, "inherit": 0,
"battle_fail": 0, "battle_fail": 1,
"venturemodelspeed": 0, "venturemodelspeed": 0,
"venturemodelscale": 0, "venturemodelscale": 0,
"move_type": 0, "move_type": 0,
@ -2234,8 +2234,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "", "key": "mainchapter_main_stage_mainlineName_23",
"text": "" "text": "1-23"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2353,8 +2353,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_20", "key": "mainchapter_main_stage_mainlineName_24",
"text": "1-20" "text": "1-24"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2432,8 +2432,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_21", "key": "mainchapter_main_stage_mainlineName_25",
"text": "1-21" "text": "1-25"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2507,8 +2507,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_22", "key": "mainchapter_main_stage_mainlineName_26",
"text": "1-22" "text": "1-26"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2582,8 +2582,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_23", "key": "mainchapter_main_stage_mainlineName_27",
"text": "1-23" "text": "1-27"
}, },
"title": { "title": {
"key": "mainchapter_main_stage_title_23", "key": "mainchapter_main_stage_title_23",
@ -2699,8 +2699,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_24", "key": "mainchapter_main_stage_mainlineName_28",
"text": "1-24" "text": "1-28"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2774,8 +2774,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_25", "key": "mainchapter_main_stage_mainlineName_29",
"text": "1-25" "text": "1-29"
}, },
"title": { "title": {
"key": "mainchapter_main_stage_title_25", "key": "mainchapter_main_stage_title_25",
@ -2887,8 +2887,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_26", "key": "mainchapter_main_stage_mainlineName_30",
"text": "1-26" "text": "1-30"
}, },
"title": { "title": {
"key": "", "key": "",
@ -2962,8 +2962,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_27", "key": "mainchapter_main_stage_mainlineName_31",
"text": "1-27" "text": "1-31"
}, },
"title": { "title": {
"key": "", "key": "",
@ -3037,8 +3037,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_28", "key": "mainchapter_main_stage_mainlineName_32",
"text": "1-28" "text": "1-32"
}, },
"title": { "title": {
"key": "mainchapter_main_stage_title_28", "key": "mainchapter_main_stage_title_28",
@ -3122,7 +3122,7 @@
"venturemodelspeed": 0, "venturemodelspeed": 0,
"venturemodelscale": 0, "venturemodelscale": 0,
"move_type": 0, "move_type": 0,
"venturemodel": "Person/mount/35003_q.prefab", "venturemodel": "Person/35003/35003_q.prefab",
"bubbletalk": { "bubbletalk": {
"key": "", "key": "",
"text": "" "text": ""
@ -3152,8 +3152,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_29", "key": "mainchapter_main_stage_mainlineName_33",
"text": "1-29" "text": "1-33"
}, },
"title": { "title": {
"key": "", "key": "",
@ -3227,8 +3227,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "", "key": "mainchapter_main_stage_mainlineName_34",
"text": "" "text": "1-34"
}, },
"title": { "title": {
"key": "", "key": "",
@ -3306,8 +3306,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "", "key": "mainchapter_main_stage_mainlineName_35",
"text": "" "text": "1-35"
}, },
"title": { "title": {
"key": "", "key": "",
@ -3374,15 +3374,15 @@
"destroy": 1, "destroy": 1,
"progress": 1, "progress": 1,
"stroyshow": 0, "stroyshow": 0,
"frontstoryid": 200391, "frontstoryid": 200390,
"afterstoryid": 0, "afterstoryid": 0,
"maingroupName": { "maingroupName": {
"key": "", "key": "",
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_30", "key": "mainchapter_main_stage_mainlineName_36",
"text": "1-30" "text": "1-36"
}, },
"title": { "title": {
"key": "", "key": "",
@ -3449,15 +3449,15 @@
"destroy": 1, "destroy": 1,
"progress": 1, "progress": 1,
"stroyshow": 0, "stroyshow": 0,
"frontstoryid": 0, "frontstoryid": 200391,
"afterstoryid": 0, "afterstoryid": 0,
"maingroupName": { "maingroupName": {
"key": "", "key": "",
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_31", "key": "mainchapter_main_stage_mainlineName_37",
"text": "1-31" "text": "1-37"
}, },
"title": { "title": {
"key": "", "key": "",
@ -3522,7 +3522,7 @@
"animation": [], "animation": [],
"hide": 0, "hide": 0,
"destroy": 1, "destroy": 1,
"progress": 1, "progress": 0,
"stroyshow": 0, "stroyshow": 0,
"frontstoryid": 200400, "frontstoryid": 200400,
"afterstoryid": 0, "afterstoryid": 0,
@ -3531,8 +3531,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_32", "key": "mainchapter_main_stage_mainlineName_38",
"text": "1-32" "text": "1-38"
}, },
"title": { "title": {
"key": "", "key": "",
@ -3604,8 +3604,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "mainchapter_main_stage_mainlineName_33", "key": "mainchapter_main_stage_mainlineName_39",
"text": "1-33" "text": "1-39"
}, },
"title": { "title": {
"key": "", "key": "",
@ -3717,8 +3717,8 @@
"text": "" "text": ""
}, },
"mainlineName": { "mainlineName": {
"key": "", "key": "mainchapter_main_stage_mainlineName_40",
"text": "" "text": "1-40"
}, },
"title": { "title": {
"key": "", "key": "",
@ -5717,7 +5717,7 @@
"chapterid": 11001, "chapterid": 11001,
"group_id": 100136, "group_id": 100136,
"previous_group_id": [ "previous_group_id": [
100130 100129
], ],
"previoustage": 0, "previoustage": 0,
"buried_type": 0, "buried_type": 0,
@ -5797,7 +5797,7 @@
"chapterid": 11001, "chapterid": 11001,
"group_id": 100137, "group_id": 100137,
"previous_group_id": [ "previous_group_id": [
100130 100129
], ],
"previoustage": 0, "previoustage": 0,
"buried_type": 0, "buried_type": 0,
@ -5877,7 +5877,7 @@
"chapterid": 11001, "chapterid": 11001,
"group_id": 100138, "group_id": 100138,
"previous_group_id": [ "previous_group_id": [
100130 100129
], ],
"previoustage": 0, "previoustage": 0,
"buried_type": 0, "buried_type": 0,
@ -5957,7 +5957,7 @@
"chapterid": 11001, "chapterid": 11001,
"group_id": 100139, "group_id": 100139,
"previous_group_id": [ "previous_group_id": [
100130 100129
], ],
"previoustage": 0, "previoustage": 0,
"buried_type": 0, "buried_type": 0,
@ -6035,7 +6035,7 @@
"chapterid": 11001, "chapterid": 11001,
"group_id": 100140, "group_id": 100140,
"previous_group_id": [ "previous_group_id": [
100130 100129
], ],
"previoustage": 0, "previoustage": 0,
"buried_type": 0, "buried_type": 0,
@ -6113,7 +6113,7 @@
"chapterid": 11001, "chapterid": 11001,
"group_id": 100141, "group_id": 100141,
"previous_group_id": [ "previous_group_id": [
100130 100129
], ],
"previoustage": 0, "previoustage": 0,
"buried_type": 0, "buried_type": 0,
@ -6191,7 +6191,7 @@
"chapterid": 11001, "chapterid": 11001,
"group_id": 100142, "group_id": 100142,
"previous_group_id": [ "previous_group_id": [
100118 100119
], ],
"previoustage": 0, "previoustage": 0,
"buried_type": 0, "buried_type": 0,
@ -7870,7 +7870,7 @@
"chapterid": 11001, "chapterid": 11001,
"group_id": 1001591, "group_id": 1001591,
"previous_group_id": [ "previous_group_id": [
100118 100119
], ],
"previoustage": 0, "previoustage": 0,
"buried_type": 0, "buried_type": 0,

View File

@ -0,0 +1,104 @@
[
{
"id": 1001,
"chapter": 1,
"stagedepict": {
"key": "punchmonkey_stage_stagedepict_1",
"text": "第一关描述"
},
"startype": [
1,
1,
2
],
"starcondition": [
60,
90
]
},
{
"id": 1002,
"chapter": 1,
"stagedepict": {
"key": "punchmonkey_stage_stagedepict_2",
"text": "第一关描述"
},
"startype": [
1,
1,
2
],
"starcondition": [
60,
90
]
},
{
"id": 1003,
"chapter": 1,
"stagedepict": {
"key": "punchmonkey_stage_stagedepict_3",
"text": "第一关描述"
},
"startype": [
1,
1,
2
],
"starcondition": [
60,
90
]
},
{
"id": 1004,
"chapter": 1,
"stagedepict": {
"key": "punchmonkey_stage_stagedepict_4",
"text": "第一关描述"
},
"startype": [
1,
1,
2
],
"starcondition": [
60,
90
]
},
{
"id": 1005,
"chapter": 1,
"stagedepict": {
"key": "punchmonkey_stage_stagedepict_5",
"text": "第一关描述"
},
"startype": [
1,
1,
2
],
"starcondition": [
60,
90
]
},
{
"id": 2001,
"chapter": 2,
"stagedepict": {
"key": "punchmonkey_stage_stagedepict_6",
"text": "第一关描述"
},
"startype": [
1,
1,
2
],
"starcondition": [
60,
90
]
}
]

View File

@ -0,0 +1,80 @@
[
{
"key": 1001,
"chapter": 1,
"type": 1,
"starnum": 3,
"reward": [
{
"a": "item",
"t": "10000001",
"n": 1
}
]
},
{
"key": 1002,
"chapter": 1,
"type": 1,
"starnum": 6,
"reward": [
{
"a": "item",
"t": "10000001",
"n": 2
}
]
},
{
"key": 1003,
"chapter": 1,
"type": 1,
"starnum": 9,
"reward": [
{
"a": "item",
"t": "10000001",
"n": 3
}
]
},
{
"key": 2001,
"chapter": 2,
"type": 1,
"starnum": 3,
"reward": [
{
"a": "item",
"t": "10000001",
"n": 1
}
]
},
{
"key": 2002,
"chapter": 2,
"type": 1,
"starnum": 6,
"reward": [
{
"a": "item",
"t": "10000001",
"n": 2
}
]
},
{
"key": 2003,
"chapter": 2,
"type": 1,
"starnum": 9,
"reward": [
{
"a": "item",
"t": "10000001",
"n": 3
}
]
}
]

View File

@ -233607,7 +233607,7 @@
"captainId": 0, "captainId": 0,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": -1, "heroid": 51052,
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
@ -233667,7 +233667,7 @@
"captainId": 1, "captainId": 1,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": -1, "heroid": 51052,
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
@ -233687,7 +233687,7 @@
"captainId": 0, "captainId": 0,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": -1, "heroid": 51052,
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
@ -233712,7 +233712,7 @@
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 1, "lv": 1,
"hppro": 1.2, "hppro": 0.6,
"atkpro": 0.5, "atkpro": 0.5,
"defpro": 0.1, "defpro": 0.1,
"skill1": 1, "skill1": 1,
@ -233732,7 +233732,7 @@
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 1, "lv": 1,
"hppro": 0.8, "hppro": 0.6,
"atkpro": 0.5, "atkpro": 0.5,
"defpro": 0.1, "defpro": 0.1,
"skill1": 1, "skill1": 1,
@ -233752,7 +233752,7 @@
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 1, "lv": 1,
"hppro": 0.8, "hppro": 0.6,
"atkpro": 0.5, "atkpro": 0.5,
"defpro": 0.1, "defpro": 0.1,
"skill1": 1, "skill1": 1,
@ -233772,7 +233772,7 @@
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 1, "lv": 1,
"hppro": 0.8, "hppro": 0.6,
"atkpro": 0.5, "atkpro": 0.5,
"defpro": 0.1, "defpro": 0.1,
"skill1": 1, "skill1": 1,
@ -233792,7 +233792,7 @@
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 1, "lv": 1,
"hppro": 0.8, "hppro": 0.6,
"atkpro": 0.5, "atkpro": 0.5,
"defpro": 0.1, "defpro": 0.1,
"skill1": 1, "skill1": 1,
@ -239247,14 +239247,14 @@
"captainId": 0, "captainId": 0,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": 51004, "heroid": 25001,
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 5, "lv": 1,
"hppro": 0.3, "hppro": 1.5,
"atkpro": 0.5, "atkpro": 1,
"defpro": 0.2, "defpro": 1,
"skill1": 1, "skill1": 1,
"skill2": 1, "skill2": 1,
"skill3": 1, "skill3": 1,
@ -239267,14 +239267,14 @@
"captainId": 0, "captainId": 0,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": 51004, "heroid": -1,
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 5, "lv": 1,
"hppro": 0.4, "hppro": 1,
"atkpro": 0.5, "atkpro": 1,
"defpro": 0.2, "defpro": 1,
"skill1": 1, "skill1": 1,
"skill2": 1, "skill2": 1,
"skill3": 1, "skill3": 1,
@ -239291,9 +239291,9 @@
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 5, "lv": 1,
"hppro": 0.6, "hppro": 1,
"atkpro": 0.5, "atkpro": 1,
"defpro": 1, "defpro": 1,
"skill1": 1, "skill1": 1,
"skill2": 1, "skill2": 1,
@ -239304,17 +239304,17 @@
{ {
"Id": 720013, "Id": 720013,
"pos": 4, "pos": 4,
"captainId": 1, "captainId": 0,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": 51005, "heroid": -1,
"star": 4, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 5, "lv": 1,
"hppro": 0.3, "hppro": 1,
"atkpro": 0.5, "atkpro": 1,
"defpro": 0.2, "defpro": 1,
"skill1": 1, "skill1": 1,
"skill2": 1, "skill2": 1,
"skill3": 1, "skill3": 1,
@ -239331,9 +239331,9 @@
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 5, "lv": 1,
"hppro": 0.3, "hppro": 1,
"atkpro": 0.5, "atkpro": 1,
"defpro": 1, "defpro": 1,
"skill1": 1, "skill1": 1,
"skill2": 1, "skill2": 1,
@ -239367,7 +239367,7 @@
"captainId": 0, "captainId": 0,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": -1, "heroid": 44006,
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
@ -239387,7 +239387,7 @@
"captainId": 0, "captainId": 0,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": -1, "heroid": 14005,
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
@ -239407,7 +239407,7 @@
"captainId": 0, "captainId": 0,
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": -1, "heroid": 24005,
"star": 3, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
@ -239710,7 +239710,7 @@
"IsBoss": 0, "IsBoss": 0,
"bossHpCnt": 0, "bossHpCnt": 0,
"heroid": 53001, "heroid": 53001,
"star": 4, "star": 3,
"equip": [], "equip": [],
"newskill": [], "newskill": [],
"lv": 5, "lv": 5,

View File

@ -475,7 +475,7 @@
], ],
"event": [ "event": [
2, 2,
10042 10031
], ],
"goto": 0 "goto": 0
}, },
@ -620,7 +620,7 @@
"Levelid": 0, "Levelid": 0,
"datas": [ "datas": [
"GameMain", "GameMain",
"功能入口-烹饪", "功能入口-烹饪_剧情专用",
"901" "901"
], ],
"event": [ "event": [
@ -635,7 +635,7 @@
"Levelid": 0, "Levelid": 0,
"datas": [ "datas": [
"GameMain", "GameMain",
"功能入口-烹饪", "功能入口-烹饪_剧情专用",
"901" "901"
], ],
"event": [ "event": [
@ -650,7 +650,7 @@
"Levelid": 0, "Levelid": 0,
"datas": [ "datas": [
"GameMain", "GameMain",
"功能入口-烹饪", "20033_邦尼兔",
"901" "901"
], ],
"event": [ "event": [

View File

@ -3895,7 +3895,7 @@
800, 800,
1, 1,
5, 5,
4000 1000
], ],
"FollowSK": [], "FollowSK": [],
"SucFollowSK": [], "SucFollowSK": [],
@ -3921,7 +3921,7 @@
800, 800,
1, 1,
5, 5,
4100 1100
], ],
"FollowSK": [], "FollowSK": [],
"SucFollowSK": [], "SucFollowSK": [],
@ -3947,7 +3947,7 @@
800, 800,
1, 1,
5, 5,
4200 1200
], ],
"FollowSK": [], "FollowSK": [],
"SucFollowSK": [], "SucFollowSK": [],
@ -3973,7 +3973,7 @@
800, 800,
1, 1,
5, 5,
4300 1400
], ],
"FollowSK": [], "FollowSK": [],
"SucFollowSK": [], "SucFollowSK": [],

View File

@ -1,67 +1,75 @@
[ [
{ {
"id": 2007, "id": 2007,
"buff_type": 2005, "trigger_pro": 1000,
"trigger_pro": 0,
"describe": { "describe": {
"key": "td_t_skill_describe_name2007", "key": "td_td_buff_describe_1",
"text": "超载:每次攻击获得一层超载。 每层攻击速度-25% 超载伤害+30% 达到三层持续10秒之后重置。弓箭超载特殊效果超载达到3层的弓箭能无视铁甲" "text": "超载:每次攻击获得一层超载。 每层攻击速度-25% 超载伤害+30% 达到三层持续10秒之后重置。弓箭超载特殊效果超载达到3层的弓箭能无视铁甲"
}, },
"overlay_type": 0, "overlay_type": 2,
"effectType": [ "effectType": [
22, 4,
2 2
], ],
"value": [ "value": [
-250, -250,
300 300
], ],
"target_buffId": 0,
"effect_Range": 0, "effect_Range": 0,
"max_layer": 1, "max_layer": 3,
"layer_effectType": [], "layer_effectType": [
"layer_value": [], 8
"duration": 0, ],
"layer_value": [
1
],
"duration": 10000,
"duration_layer": 10000, "duration_layer": 10000,
"interval": 0 "interval": 0
}, },
{ {
"id": 2008, "id": 2008,
"buff_type": 2006, "trigger_pro": 250,
"trigger_pro": 0,
"describe": { "describe": {
"key": "td_t_skill_describe_name2008", "key": "td_td_buff_describe_2",
"text": "流血有25%概率给敌方追加一层流血 每秒60%伤害 最多四层。流血特殊效果每层流血会降低敌方治疗效果10%" "text": "流血有25%概率给敌方追加一层流血 每秒40%伤害 最多四层。流血特殊效果每层流血会降低敌方治疗效果10%"
}, },
"overlay_type": 0, "overlay_type": 3,
"effectType": [], "effectType": [
"value": [], 80
"target_buffId": 0, ],
"value": [
400
],
"effect_Range": 0, "effect_Range": 0,
"max_layer": 0, "max_layer": 4,
"layer_effectType": [], "layer_effectType": [],
"layer_value": [], "layer_value": [],
"duration": 0, "duration": 5000,
"duration_layer": 0, "duration_layer": 0,
"interval": 0 "interval": 1000
}, },
{ {
"id": 2009, "id": 2009,
"buff_type": 2007, "trigger_pro": 500,
"trigger_pro": 0,
"describe": { "describe": {
"key": "td_t_skill_describe_name2009", "key": "td_td_buff_describe_3",
"text": "狂暴每次攻击50概率获得1层狂暴 每层伤害加5% 攻速加5% 爆炸范围+3% 最多10层 持续10秒 之后重置" "text": "狂暴每次攻击50概率获得1层狂暴 每层伤害加5% 攻速加5% 爆炸范围+3% 最多10层 持续10秒 之后重置"
}, },
"overlay_type": 0, "overlay_type": 3,
"effectType": [], "effectType": [
"value": [], 60
"target_buffId": 0, ],
"value": [
50,
50,
30
],
"effect_Range": 0, "effect_Range": 0,
"max_layer": 0, "max_layer": 10,
"layer_effectType": [], "layer_effectType": [],
"layer_value": [], "layer_value": [],
"duration": 0, "duration": 10000,
"duration_layer": 0, "duration_layer": 0,
"interval": 0 "interval": 0
} }

View File

@ -11,7 +11,7 @@
"multiple": 1, "multiple": 1,
"width": 2, "width": 2,
"height": 3, "height": 3,
"hp": 20, "hp": 30,
"dis": 2, "dis": 2,
"atk": 1, "atk": 1,
"atk_speed": 2000, "atk_speed": 2000,
@ -22,7 +22,7 @@
"npc_id": 1021, "npc_id": 1021,
"name": { "name": {
"key": "td_npc_name_1021", "key": "td_npc_name_1021",
"text": "豚鼠灵冲车" "text": "豚鼠灵肉盾"
}, },
"monster_skillid": 0, "monster_skillid": 0,
"monster_type": 0, "monster_type": 0,
@ -30,7 +30,7 @@
"multiple": 1, "multiple": 1,
"width": 2, "width": 2,
"height": 3, "height": 3,
"hp": 30, "hp": 50,
"dis": 3, "dis": 3,
"atk": 3, "atk": 3,
"atk_speed": 5000, "atk_speed": 5000,

View File

@ -11,7 +11,7 @@
"text": "向前方发射冲击能量打击敌人" "text": "向前方发射冲击能量打击敌人"
}, },
"sak": 20, "sak": 20,
"atk_speed": 200, "atk_speed": 100,
"weapon_type": 1, "weapon_type": 1,
"bulletPrefab": "gongjian", "bulletPrefab": "gongjian",
"fly_speed": 10, "fly_speed": 10,
@ -20,8 +20,6 @@
"num": 0, "num": 0,
"explosion_Range": 0, "explosion_Range": 0,
"catapult": 0, "catapult": 0,
"self_buff": [],
"target_buff": [],
"pro": 1000, "pro": 1000,
"explosion_effect": "" "explosion_effect": ""
}, },
@ -37,7 +35,7 @@
"text": "向前方射出一枚爆炎弹,碰到第一个敌人后会立刻爆炸造成范围伤害" "text": "向前方射出一枚爆炎弹,碰到第一个敌人后会立刻爆炸造成范围伤害"
}, },
"sak": 50, "sak": 50,
"atk_speed": 400, "atk_speed": 500,
"weapon_type": 2, "weapon_type": 2,
"bulletPrefab": "gongjian", "bulletPrefab": "gongjian",
"fly_speed": 8, "fly_speed": 8,
@ -46,8 +44,6 @@
"num": 0, "num": 0,
"explosion_Range": 3, "explosion_Range": 3,
"catapult": 0, "catapult": 0,
"self_buff": [],
"target_buff": [],
"pro": 1000, "pro": 1000,
"explosion_effect": "effect_ui_baozha" "explosion_effect": "effect_ui_baozha"
}, },
@ -62,7 +58,7 @@
"key": "td_t_weapon_describe3", "key": "td_t_weapon_describe3",
"text": "射出后可以穿透敌人的弹力球,会在敌人之间相互碰撞" "text": "射出后可以穿透敌人的弹力球,会在敌人之间相互碰撞"
}, },
"sak": 15, "sak": 30,
"atk_speed": 300, "atk_speed": 300,
"weapon_type": 3, "weapon_type": 3,
"bulletPrefab": "gongjian", "bulletPrefab": "gongjian",
@ -72,8 +68,6 @@
"num": 0, "num": 0,
"explosion_Range": 0, "explosion_Range": 0,
"catapult": 1, "catapult": 1,
"self_buff": [],
"target_buff": [],
"pro": 1000, "pro": 1000,
"explosion_effect": "" "explosion_effect": ""
} }

View File

@ -2,79 +2,66 @@
{ {
"id": 1, "id": 1,
"weapon_id": 1, "weapon_id": 1,
"skill_id": 1001, "skill_id": 1001
"subSkill_id": []
}, },
{ {
"id": 2, "id": 2,
"weapon_id": 1, "weapon_id": 1,
"skill_id": 1002, "skill_id": 1002
"subSkill_id": []
}, },
{ {
"id": 3, "id": 3,
"weapon_id": 1, "weapon_id": 1,
"skill_id": 1003, "skill_id": 1003
"subSkill_id": []
}, },
{ {
"id": 4, "id": 4,
"weapon_id": 1, "weapon_id": 1,
"skill_id": 1004, "skill_id": 1004
"subSkill_id": []
}, },
{ {
"id": 5, "id": 5,
"weapon_id": 1, "weapon_id": 1,
"skill_id": 1005, "skill_id": 1005
"subSkill_id": []
}, },
{ {
"id": 6, "id": 6,
"weapon_id": 2, "weapon_id": 2,
"skill_id": 2001, "skill_id": 2001
"subSkill_id": []
}, },
{ {
"id": 7, "id": 7,
"weapon_id": 2, "weapon_id": 2,
"skill_id": 2002, "skill_id": 2002
"subSkill_id": []
}, },
{ {
"id": 8, "id": 8,
"weapon_id": 2, "weapon_id": 2,
"skill_id": 2003, "skill_id": 2003
"subSkill_id": []
}, },
{ {
"id": 9, "id": 9,
"weapon_id": 2, "weapon_id": 2,
"skill_id": 2004, "skill_id": 2004
"subSkill_id": []
}, },
{ {
"id": 10, "id": 10,
"weapon_id": 2, "weapon_id": 2,
"skill_id": 2005, "skill_id": 2005
"subSkill_id": []
}, },
{ {
"id": 11, "id": 11,
"weapon_id": 3, "weapon_id": 3,
"skill_id": 3001, "skill_id": 3001
"subSkill_id": []
}, },
{ {
"id": 12, "id": 12,
"weapon_id": 3, "weapon_id": 3,
"skill_id": 3002, "skill_id": 3002
"subSkill_id": []
}, },
{ {
"id": 13, "id": 13,
"weapon_id": 3, "weapon_id": 3,
"skill_id": 3003, "skill_id": 3003
"subSkill_id": []
} }
] ]

View File

@ -1,14 +1,15 @@
[ [
{ {
"skill_id": 1001, "skill_id": 1001,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name1001", "key": "td_weapon_skill_data_name_1",
"text": "技能1" "text": "技能1"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des1001", "key": "td_weapon_skill_data_describe_1",
"text": "分裂+1" "text": "分裂+1"
}, },
"skilltype": [ "skilltype": [
@ -25,14 +26,15 @@
}, },
{ {
"skill_id": 1002, "skill_id": 1002,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name1002", "key": "td_weapon_skill_data_name_2",
"text": "技能2" "text": "技能2"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des1002", "key": "td_weapon_skill_data_describe_2",
"text": "击中目标后对目标造成5%减速" "text": "击中目标后对目标造成5%减速"
}, },
"skilltype": [], "skilltype": [],
@ -47,14 +49,15 @@
}, },
{ {
"skill_id": 1003, "skill_id": 1003,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name1003", "key": "td_weapon_skill_data_name_3",
"text": "技能3" "text": "技能3"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des1003", "key": "td_weapon_skill_data_describe_3",
"text": "伤害+10%" "text": "伤害+10%"
}, },
"skilltype": [ "skilltype": [
@ -71,14 +74,15 @@
}, },
{ {
"skill_id": 1004, "skill_id": 1004,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name1004", "key": "td_weapon_skill_data_name_4",
"text": "技能4" "text": "技能4"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des1004", "key": "td_weapon_skill_data_describe_4",
"text": "射击频率+10%" "text": "射击频率+10%"
}, },
"skilltype": [ "skilltype": [
@ -95,14 +99,15 @@
}, },
{ {
"skill_id": 1005, "skill_id": 1005,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name1005", "key": "td_weapon_skill_data_name_5",
"text": "技能5" "text": "技能5"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des1005", "key": "td_weapon_skill_data_describe_5",
"text": "飞行速度+10%" "text": "飞行速度+10%"
}, },
"skilltype": [ "skilltype": [
@ -118,15 +123,135 @@
"pro": 1000 "pro": 1000
}, },
{ {
"skill_id": 2001, "skill_id": 1006,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name2001", "key": "td_weapon_skill_data_name_6",
"text": "技能6" "text": "技能6"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des2001", "key": "td_weapon_skill_data_describe_6",
"text": "超载:每次攻击获得一层超载。 每层攻击速度-25% 超载伤害+30% 达到三层持续10秒之后重置。弓箭超载特殊效果超载达到3层的弓箭能无视铁甲"
},
"skilltype": [],
"value": [],
"target_buffId": 2007,
"self_buff": [],
"target_buff": [],
"maxlv": 5,
"pro": 1000
},
{
"skill_id": 1007,
"subSkill_id": 1006,
"skill_triggerType": 0,
"icon": "",
"name": {
"key": "td_weapon_skill_data_name_7",
"text": "技能7"
},
"describe": {
"key": "td_weapon_skill_data_describe_7",
"text": "每层超载效果增加:-30%攻速伤害增加60%"
},
"skilltype": [
4,
2
],
"value": [
-350,
600
],
"target_buffId": 0,
"self_buff": [],
"target_buff": [],
"maxlv": 1,
"pro": 500
},
{
"skill_id": 1008,
"subSkill_id": 1006,
"skill_triggerType": 0,
"icon": "",
"name": {
"key": "td_weapon_skill_data_name_8",
"text": "技能8"
},
"describe": {
"key": "td_weapon_skill_data_describe_8",
"text": "增加超载最大层数,并提升超载持续时间"
},
"skilltype": [],
"value": [],
"target_buffId": 0,
"self_buff": [],
"target_buff": [],
"maxlv": 1,
"pro": 100
},
{
"skill_id": 2006,
"subSkill_id": 0,
"skill_triggerType": 0,
"icon": "",
"name": {
"key": "td_weapon_skill_data_name_9",
"text": "技能9"
},
"describe": {
"key": "td_weapon_skill_data_describe_9",
"text": "流血重伤buff"
},
"skilltype": [
81
],
"value": [
1
],
"target_buffId": 0,
"self_buff": [],
"target_buff": [
2008
],
"maxlv": 0,
"pro": 1000
},
{
"skill_id": 3006,
"subSkill_id": 0,
"skill_triggerType": 0,
"icon": "",
"name": {
"key": "td_weapon_skill_data_name_10",
"text": "技能10"
},
"describe": {
"key": "td_weapon_skill_data_describe_10",
"text": "狂暴buff"
},
"skilltype": [],
"value": [],
"target_buffId": 0,
"self_buff": [
2009
],
"target_buff": [],
"maxlv": 1,
"pro": 100
},
{
"skill_id": 2001,
"subSkill_id": 0,
"skill_triggerType": 0,
"icon": "",
"name": {
"key": "td_weapon_skill_data_name_11",
"text": "技能11"
},
"describe": {
"key": "td_weapon_skill_data_describe_11",
"text": "所有武器伤害攻击力+5%" "text": "所有武器伤害攻击力+5%"
}, },
"skilltype": [ "skilltype": [
@ -143,14 +268,15 @@
}, },
{ {
"skill_id": 2002, "skill_id": 2002,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name2002", "key": "td_weapon_skill_data_name_12",
"text": "技能7" "text": "技能12"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des2002", "key": "td_weapon_skill_data_describe_12",
"text": "所有武器射击频率+5%" "text": "所有武器射击频率+5%"
}, },
"skilltype": [ "skilltype": [
@ -167,14 +293,15 @@
}, },
{ {
"skill_id": 2003, "skill_id": 2003,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name2003", "key": "td_weapon_skill_data_name_13",
"text": "技能8" "text": "技能13"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des2003", "key": "td_weapon_skill_data_describe_13",
"text": "城墙生命值上限+5并额外恢复5点生命值" "text": "城墙生命值上限+5并额外恢复5点生命值"
}, },
"skilltype": [ "skilltype": [
@ -193,14 +320,15 @@
}, },
{ {
"skill_id": 2004, "skill_id": 2004,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name2004", "key": "td_weapon_skill_data_name_14",
"text": "技能9" "text": "技能14"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des2004", "key": "td_weapon_skill_data_describe_14",
"text": "城墙生命值上限+10" "text": "城墙生命值上限+10"
}, },
"skilltype": [ "skilltype": [
@ -217,14 +345,15 @@
}, },
{ {
"skill_id": 2005, "skill_id": 2005,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name2005", "key": "td_weapon_skill_data_name_15",
"text": "技能10" "text": "技能15"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des2005", "key": "td_weapon_skill_data_describe_15",
"text": "城墙恢复10点生命值" "text": "城墙恢复10点生命值"
}, },
"skilltype": [ "skilltype": [
@ -241,14 +370,15 @@
}, },
{ {
"skill_id": 3001, "skill_id": 3001,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name3001", "key": "td_weapon_skill_data_name_16",
"text": "技能11" "text": "技能16"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des3001", "key": "td_weapon_skill_data_describe_16",
"text": "{0}能够额外穿透1个怪物" "text": "{0}能够额外穿透1个怪物"
}, },
"skilltype": [ "skilltype": [
@ -265,14 +395,15 @@
}, },
{ {
"skill_id": 3002, "skill_id": 3002,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name3002", "key": "td_weapon_skill_data_name_17",
"text": "技能12" "text": "技能17"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des3002", "key": "td_weapon_skill_data_describe_17",
"text": "{0}爆炸范围+10%" "text": "{0}爆炸范围+10%"
}, },
"skilltype": [ "skilltype": [
@ -289,22 +420,19 @@
}, },
{ {
"skill_id": 3003, "skill_id": 3003,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name3003", "key": "td_weapon_skill_data_name_18",
"text": "技能13" "text": "技能18"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des3003", "key": "td_weapon_skill_data_describe_18",
"text": "{0}弹射次数+1" "text": "{0}弹射次数+1"
}, },
"skilltype": [ "skilltype": [],
6 "value": [],
],
"value": [
1
],
"target_buffId": 0, "target_buffId": 0,
"self_buff": [], "self_buff": [],
"target_buff": [], "target_buff": [],
@ -313,14 +441,15 @@
}, },
{ {
"skill_id": 4001, "skill_id": 4001,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name4001", "key": "td_weapon_skill_data_name_19",
"text": "技能14" "text": "技能19"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des4001", "key": "td_weapon_skill_data_describe_19",
"text": "所有武器伤害攻击力+5%" "text": "所有武器伤害攻击力+5%"
}, },
"skilltype": [ "skilltype": [
@ -337,14 +466,15 @@
}, },
{ {
"skill_id": 4002, "skill_id": 4002,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name4002", "key": "td_weapon_skill_data_name_20",
"text": "技能15" "text": "技能20"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des4002", "key": "td_weapon_skill_data_describe_20",
"text": "所有武器射击频率+5%" "text": "所有武器射击频率+5%"
}, },
"skilltype": [ "skilltype": [
@ -361,14 +491,15 @@
}, },
{ {
"skill_id": 4003, "skill_id": 4003,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name4003", "key": "td_weapon_skill_data_name_21",
"text": "技能16" "text": "技能21"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des4003", "key": "td_weapon_skill_data_describe_21",
"text": "所有弹道飞行速度+5%" "text": "所有弹道飞行速度+5%"
}, },
"skilltype": [ "skilltype": [
@ -380,19 +511,20 @@
"target_buffId": 0, "target_buffId": 0,
"self_buff": [], "self_buff": [],
"target_buff": [], "target_buff": [],
"maxlv": 0, "maxlv": 5,
"pro": 1000 "pro": 1000
}, },
{ {
"skill_id": 4004, "skill_id": 4004,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name4004", "key": "td_weapon_skill_data_name_22",
"text": "技能17" "text": "技能22"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des4004", "key": "td_weapon_skill_data_describe_22",
"text": "城墙生命值上限+5并额外恢复5点生命值" "text": "城墙生命值上限+5并额外恢复5点生命值"
}, },
"skilltype": [ "skilltype": [
@ -411,14 +543,15 @@
}, },
{ {
"skill_id": 4005, "skill_id": 4005,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name4005", "key": "td_weapon_skill_data_name_23",
"text": "技能18" "text": "技能23"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des4005", "key": "td_weapon_skill_data_describe_23",
"text": "城墙生命值上限+10" "text": "城墙生命值上限+10"
}, },
"skilltype": [ "skilltype": [
@ -435,14 +568,15 @@
}, },
{ {
"skill_id": 4006, "skill_id": 4006,
"subSkill_id": 0,
"skill_triggerType": 0, "skill_triggerType": 0,
"icon": "", "icon": "",
"name": { "name": {
"key": "td_t_skill_describe_name4006", "key": "td_weapon_skill_data_name_24",
"text": "技能19" "text": "技能24"
}, },
"describe": { "describe": {
"key": "td_t_skill_describe_des4006", "key": "td_weapon_skill_data_describe_24",
"text": "城墙恢复10点生命值" "text": "城墙恢复10点生命值"
}, },
"skilltype": [ "skilltype": [

View File

@ -4,7 +4,7 @@
"FormatList": [ "FormatList": [
700011 700011
], ],
"BattleReadyID": 201, "BattleReadyID": 10300001,
"EventList": [], "EventList": [],
"playexp": { "playexp": {
"a": "attr", "a": "attr",
@ -36,7 +36,7 @@
"FormatList": [ "FormatList": [
700012 700012
], ],
"BattleReadyID": 202, "BattleReadyID": 10300002,
"EventList": [], "EventList": [],
"playexp": { "playexp": {
"a": "attr", "a": "attr",

View File

@ -156,7 +156,7 @@
"completetask": [ "completetask": [
12070030 12070030
], ],
"deliver_npc": 100109, "deliver_npc": 0,
"taskend_removeitem": [], "taskend_removeitem": [],
"auto_accept": 1, "auto_accept": 1,
"tasktips": 0, "tasktips": 0,

View File

@ -125,7 +125,7 @@ const (
ModuleCatchbugs core.M_Modules = "catchbugs" //捉虫子 ModuleCatchbugs core.M_Modules = "catchbugs" //捉虫子
ModuleMoonlv core.M_Modules = "moonlv" //护月等级 ModuleMoonlv core.M_Modules = "moonlv" //护月等级
ModuleWhackamole core.M_Modules = "whackamole" //大豚鼠 ModuleWhackamole core.M_Modules = "whackamole" //大豚鼠
ModuleMonkey core.M_Modules = "monkey" //猴拳
) )
// 数据表名定义处 // 数据表名定义处
@ -428,6 +428,8 @@ const (
TableMoonlv = "moonlv" TableMoonlv = "moonlv"
TableWhackamole = "whackamole" TableWhackamole = "whackamole"
// 猴拳
TableMonkey = "monkey"
) )
// RPC服务接口定义处 // RPC服务接口定义处

17
modules/monkey/api.go Normal file
View File

@ -0,0 +1,17 @@
package monkey
import (
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
type apiComp struct {
modules.MCompGate
module *Monkey
}
func (this *apiComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
_ = this.MCompGate.Init(service, module, comp, options)
this.module = module.(*Monkey)
return
}

View File

@ -0,0 +1,70 @@
package monkey
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
)
func (this *apiComp) AwardCheck(session comm.IUserSession, req *pb.MonkeyAwardReq) (errdata *pb.ErrorData) {
return
}
func (this *apiComp) Award(session comm.IUserSession, req *pb.MonkeyAwardReq) (errdata *pb.ErrorData) {
var (
err error
info *pb.DBMonkey
conf []*cfg.GameMonkeyRewardData
res []*cfg.Gameatn
atno []*pb.UserAtno
)
if errdata = this.AwardCheck(session, req); errdata != nil {
return
}
if info, err = this.module.model.getMonkeyData(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Title: pb.ErrorCode_DBError.ToString(),
Message: err.Error(),
}
return
}
if info.Reward[req.ChapterId] >= req.Starnum { // 重复领取
errdata = &pb.ErrorData{
Code: pb.ErrorCode_UserRepeadReward,
Title: pb.ErrorCode_UserRepeadReward.ToString(),
}
return
}
if conf, err = this.module.configure.getGameMonkeyRewardData(req.ChapterId); err != nil {
for _, v := range conf {
if v.Starnum > info.Reward[req.ChapterId] && v.Starnum <= req.Starnum {
res = append(res, v.Reward...)
}
}
}
if len(res) > 0 {
if errdata, atno = this.module.DispenseAtno(session, res, true); errdata != nil {
return
}
if err = this.module.model.changeMonkeyData(session.GetUserId(), map[string]interface{}{ // 更新
"reward": info.Reward,
}); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Title: pb.ErrorCode_DBError.ToString(),
Message: err.Error(),
}
return
}
}
session.SendMsg(string(this.module.GetType()), "award", &pb.MonkeyAwardResp{
Data: info,
Award: atno,
})
return
}

View File

@ -0,0 +1,35 @@
package monkey
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
)
func (this *apiComp) GetListCheck(session comm.IUserSession, req *pb.MonkeyGetListReq) (errdata *pb.ErrorData) {
return
}
// 获取猴拳基本信息
func (this *apiComp) GetList(session comm.IUserSession, req *pb.MonkeyGetListReq) (errdata *pb.ErrorData) {
var (
err error
info *pb.DBMonkey
)
if errdata = this.GetListCheck(session, req); errdata != nil {
return
}
if info, err = this.module.model.getMonkeyData(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Message: err.Error(),
}
return
}
session.SendMsg(string(this.module.GetType()), "getlist", &pb.MonkeyGetListResp{
Data: info,
})
return
}

View File

@ -0,0 +1,75 @@
package monkey
import (
"go_dreamfactory/comm"
"go_dreamfactory/pb"
cfg "go_dreamfactory/sys/configure/structs"
)
func (this *apiComp) UpdateStarCheck(session comm.IUserSession, req *pb.MonkeyUpdateStarReq) (errdata *pb.ErrorData) {
if req.Stage == 0 {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ReqParameterError,
Title: pb.ErrorCode_ReqParameterError.ToString(),
}
return
}
return
}
// 获取猴拳章节信息
func (this *apiComp) UpdateStar(session comm.IUserSession, req *pb.MonkeyUpdateStarReq) (errdata *pb.ErrorData) {
var (
err error
info *pb.DBMonkey
conf *cfg.GameMonkeyMainData
update map[string]interface{}
)
update = make(map[string]interface{}, 0)
if errdata = this.UpdateStarCheck(session, req); errdata != nil {
return
}
if conf, err = this.module.configure.getGameMonkeyData(req.Stage); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_ConfigNoFound,
Title: pb.ErrorCode_ConfigNoFound.ToString(),
Message: err.Error(),
}
return
}
if info, err = this.module.model.getMonkeyData(session.GetUserId()); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Title: pb.ErrorCode_DBError.ToString(),
Message: err.Error(),
}
return
}
if info.Data[conf.Chapter].Award == nil {
info.Data[conf.Chapter].Award = map[int32]int32{
req.Stage: req.Star,
}
update["data"] = info.Data
} else {
if info.Data[conf.Chapter].Award[req.Stage] < req.Star {
info.Data[conf.Chapter].Award[req.Stage] = req.Star
update["data"] = info.Data
}
}
if len(update) > 0 {
if err = this.module.model.changeMonkeyData(session.GetUserId(), update); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DBError,
Title: pb.ErrorCode_DBError.ToString(),
Message: err.Error(),
}
return
}
}
session.SendMsg(string(this.module.GetType()), "updatestar", &pb.MonkeyUpdateStarResp{
Data: info,
})
return
}

View File

@ -0,0 +1,74 @@
package monkey
import (
"fmt"
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
"go_dreamfactory/sys/configure"
cfg "go_dreamfactory/sys/configure/structs"
"sync"
)
const (
monkey_main = "game_monkeymain.json"
monkey_reward = "game_monkeyreward.json"
)
type configureComp struct {
modules.MCompConfigure
module *Monkey
hlock sync.RWMutex
reward map[int32][]*cfg.GameMonkeyRewardData
}
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.LoadConfigure(monkey_main, cfg.NewGameMonkeyMain)
configure.RegisterConfigure(monkey_reward, cfg.NewGameGameFast, func() {
if v, err := this.GetConfigure(monkey_reward); err == nil {
this.hlock.Lock()
defer this.hlock.Unlock()
this.reward = make(map[int32][]*cfg.GameMonkeyRewardData)
if _configure, ok := v.(*cfg.GameMonkeyReward); ok {
for _, v := range _configure.GetDataList() {
this.reward[v.Chapter] = append(this.reward[v.Chapter], v)
}
return
}
} else {
err = fmt.Errorf("%T no is *cfg.GameMonkeyReward", v)
}
})
return
}
// 通过章节id 获取信息
func (this *configureComp) getGameMonkeyData(id int32) (result *cfg.GameMonkeyMainData, err error) {
var (
v interface{}
ok bool
)
if v, err = this.GetConfigure(monkey_main); err == nil {
if result, ok = v.(*cfg.GameMonkeyMain).GetDataMap()[id]; ok {
return
}
}
err = comm.NewNotFoundConfErr(string(this.module.GetType()), monkey_main, id)
return
}
// 获取章节对应的奖励
func (this *configureComp) getGameMonkeyRewardData(chapterid int32) (result []*cfg.GameMonkeyRewardData, err error) {
var (
ok bool
)
this.hlock.Lock()
result, ok = this.reward[chapterid]
this.hlock.Unlock()
if !ok {
err = comm.NewNotFoundConfErr(string(this.module.GetType()), monkey_reward, chapterid)
}
return
}

51
modules/monkey/model.go Normal file
View File

@ -0,0 +1,51 @@
package monkey
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/lego/sys/mgo"
"go_dreamfactory/modules"
"go_dreamfactory/pb"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
"go.mongodb.org/mongo-driver/x/bsonx"
)
type modelComp struct {
modules.MCompModel
module *Monkey
}
func (this *modelComp) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompModel.Init(service, module, comp, options)
this.TableName = comm.TableMonkey
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},
})
return
}
// 获取猴拳基本数据
func (this *modelComp) getMonkeyData(uid string) (info *pb.DBMonkey, err error) {
info = &pb.DBMonkey{}
if err = this.Get(uid, info); err != nil && err != mgo.MongodbNil {
this.module.Errorln(err)
return
}
if err == mgo.MongodbNil {
info = &pb.DBMonkey{
Id: primitive.NewObjectID().Hex(),
Uid: uid,
Reward: map[int32]int32{},
Data: map[int32]*pb.ChapterData{},
}
err = this.Add(uid, info)
}
return
}
func (this *modelComp) changeMonkeyData(uid string, update map[string]interface{}) (err error) {
err = this.Change(uid, update)
return
}

49
modules/monkey/module.go Normal file
View File

@ -0,0 +1,49 @@
package monkey
import (
"go_dreamfactory/comm"
"go_dreamfactory/lego/core"
"go_dreamfactory/modules"
)
func NewModule() core.IModule {
m := new(Monkey)
return m
}
/*
模块名称:猜颜色
*/
type Monkey struct {
modules.ModuleBase
service comm.IService
api *apiComp
configure *configureComp
model *modelComp
}
// 模块名
func (this *Monkey) GetType() core.M_Modules {
return comm.ModuleMonkey
}
// 模块初始化接口
func (this *Monkey) Init(service core.IService, module core.IModule, options core.IModuleOptions) (err error) {
err = this.ModuleBase.Init(service, module, options)
this.service = service.(comm.IService)
return
}
func (this *Monkey) Start() (err error) {
if err = this.ModuleBase.Start(); err != nil {
return
}
return
}
func (this *Monkey) OnInstallComp() {
this.ModuleBase.OnInstallComp()
this.api = this.RegisterComp(new(apiComp)).(*apiComp)
this.configure = this.RegisterComp(new(configureComp)).(*configureComp)
this.model = this.RegisterComp(new(modelComp)).(*modelComp)
}

255
pb/monkey_db.pb.go Normal file
View File

@ -0,0 +1,255 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: monkey/monkey_db.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type ChapterData struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Award map[int32]int32 `protobuf:"bytes,2,rep,name=award,proto3" json:"award" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //key:stage value:星星的数量
}
func (x *ChapterData) Reset() {
*x = ChapterData{}
if protoimpl.UnsafeEnabled {
mi := &file_monkey_monkey_db_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ChapterData) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ChapterData) ProtoMessage() {}
func (x *ChapterData) ProtoReflect() protoreflect.Message {
mi := &file_monkey_monkey_db_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ChapterData.ProtoReflect.Descriptor instead.
func (*ChapterData) Descriptor() ([]byte, []int) {
return file_monkey_monkey_db_proto_rawDescGZIP(), []int{0}
}
func (x *ChapterData) GetAward() map[int32]int32 {
if x != nil {
return x.Award
}
return nil
}
//猴拳
type DBMonkey struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` //用户ID
Reward map[int32]int32 `protobuf:"bytes,3,rep,name=reward,proto3" json:"reward" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //猴拳奖励 key 章节id value starnum
Data map[int32]*ChapterData `protobuf:"bytes,4,rep,name=data,proto3" json:"data" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // key 章节id
}
func (x *DBMonkey) Reset() {
*x = DBMonkey{}
if protoimpl.UnsafeEnabled {
mi := &file_monkey_monkey_db_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DBMonkey) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DBMonkey) ProtoMessage() {}
func (x *DBMonkey) ProtoReflect() protoreflect.Message {
mi := &file_monkey_monkey_db_proto_msgTypes[1]
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 DBMonkey.ProtoReflect.Descriptor instead.
func (*DBMonkey) Descriptor() ([]byte, []int) {
return file_monkey_monkey_db_proto_rawDescGZIP(), []int{1}
}
func (x *DBMonkey) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *DBMonkey) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *DBMonkey) GetReward() map[int32]int32 {
if x != nil {
return x.Reward
}
return nil
}
func (x *DBMonkey) GetData() map[int32]*ChapterData {
if x != nil {
return x.Data
}
return nil
}
var File_monkey_monkey_db_proto protoreflect.FileDescriptor
var file_monkey_monkey_db_proto_rawDesc = []byte{
0x0a, 0x16, 0x6d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x2f, 0x6d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x5f,
0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x76, 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x70,
0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2d, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64,
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72,
0x44, 0x61, 0x74, 0x61, 0x2e, 0x41, 0x77, 0x61, 0x72, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x1a, 0x38, 0x0a, 0x0a, 0x41, 0x77, 0x61, 0x72, 0x64, 0x45,
0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
0x22, 0x86, 0x02, 0x0a, 0x08, 0x44, 0x42, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 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,
0x2d, 0x0a, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
0x15, 0x2e, 0x44, 0x42, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x2e, 0x52, 0x65, 0x77, 0x61, 0x72,
0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x72, 0x65, 0x77, 0x61, 0x72, 0x64, 0x12, 0x27,
0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x44,
0x42, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72,
0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x39, 0x0a, 0x0b, 0x52, 0x65, 0x77, 0x61, 0x72,
0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
0x38, 0x01, 0x1a, 0x45, 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65,
0x79, 0x12, 0x22, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x0c, 0x2e, 0x43, 0x68, 0x61, 0x70, 0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x52, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_monkey_monkey_db_proto_rawDescOnce sync.Once
file_monkey_monkey_db_proto_rawDescData = file_monkey_monkey_db_proto_rawDesc
)
func file_monkey_monkey_db_proto_rawDescGZIP() []byte {
file_monkey_monkey_db_proto_rawDescOnce.Do(func() {
file_monkey_monkey_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_monkey_monkey_db_proto_rawDescData)
})
return file_monkey_monkey_db_proto_rawDescData
}
var file_monkey_monkey_db_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_monkey_monkey_db_proto_goTypes = []interface{}{
(*ChapterData)(nil), // 0: ChapterData
(*DBMonkey)(nil), // 1: DBMonkey
nil, // 2: ChapterData.AwardEntry
nil, // 3: DBMonkey.RewardEntry
nil, // 4: DBMonkey.DataEntry
}
var file_monkey_monkey_db_proto_depIdxs = []int32{
2, // 0: ChapterData.award:type_name -> ChapterData.AwardEntry
3, // 1: DBMonkey.reward:type_name -> DBMonkey.RewardEntry
4, // 2: DBMonkey.data:type_name -> DBMonkey.DataEntry
0, // 3: DBMonkey.DataEntry.value:type_name -> ChapterData
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_monkey_monkey_db_proto_init() }
func file_monkey_monkey_db_proto_init() {
if File_monkey_monkey_db_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_monkey_monkey_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ChapterData); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_monkey_monkey_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DBMonkey); 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{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_monkey_monkey_db_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_monkey_monkey_db_proto_goTypes,
DependencyIndexes: file_monkey_monkey_db_proto_depIdxs,
MessageInfos: file_monkey_monkey_db_proto_msgTypes,
}.Build()
File_monkey_monkey_db_proto = out.File
file_monkey_monkey_db_proto_rawDesc = nil
file_monkey_monkey_db_proto_goTypes = nil
file_monkey_monkey_db_proto_depIdxs = nil
}

488
pb/monkey_msg.pb.go Normal file
View File

@ -0,0 +1,488 @@
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: monkey/monkey_msg.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type MonkeyGetListReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *MonkeyGetListReq) Reset() {
*x = MonkeyGetListReq{}
if protoimpl.UnsafeEnabled {
mi := &file_monkey_monkey_msg_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MonkeyGetListReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MonkeyGetListReq) ProtoMessage() {}
func (x *MonkeyGetListReq) ProtoReflect() protoreflect.Message {
mi := &file_monkey_monkey_msg_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MonkeyGetListReq.ProtoReflect.Descriptor instead.
func (*MonkeyGetListReq) Descriptor() ([]byte, []int) {
return file_monkey_monkey_msg_proto_rawDescGZIP(), []int{0}
}
type MonkeyGetListResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data *DBMonkey `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}
func (x *MonkeyGetListResp) Reset() {
*x = MonkeyGetListResp{}
if protoimpl.UnsafeEnabled {
mi := &file_monkey_monkey_msg_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MonkeyGetListResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MonkeyGetListResp) ProtoMessage() {}
func (x *MonkeyGetListResp) ProtoReflect() protoreflect.Message {
mi := &file_monkey_monkey_msg_proto_msgTypes[1]
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 MonkeyGetListResp.ProtoReflect.Descriptor instead.
func (*MonkeyGetListResp) Descriptor() ([]byte, []int) {
return file_monkey_monkey_msg_proto_rawDescGZIP(), []int{1}
}
func (x *MonkeyGetListResp) GetData() *DBMonkey {
if x != nil {
return x.Data
}
return nil
}
// 奖励领取
type MonkeyAwardReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ChapterId int32 `protobuf:"varint,1,opt,name=chapterId,proto3" json:"chapterId"` // 章节id
Starnum int32 `protobuf:"varint,2,opt,name=starnum,proto3" json:"starnum"` // 奖励所对应的星星数量
}
func (x *MonkeyAwardReq) Reset() {
*x = MonkeyAwardReq{}
if protoimpl.UnsafeEnabled {
mi := &file_monkey_monkey_msg_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MonkeyAwardReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MonkeyAwardReq) ProtoMessage() {}
func (x *MonkeyAwardReq) ProtoReflect() protoreflect.Message {
mi := &file_monkey_monkey_msg_proto_msgTypes[2]
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 MonkeyAwardReq.ProtoReflect.Descriptor instead.
func (*MonkeyAwardReq) Descriptor() ([]byte, []int) {
return file_monkey_monkey_msg_proto_rawDescGZIP(), []int{2}
}
func (x *MonkeyAwardReq) GetChapterId() int32 {
if x != nil {
return x.ChapterId
}
return 0
}
func (x *MonkeyAwardReq) GetStarnum() int32 {
if x != nil {
return x.Starnum
}
return 0
}
type MonkeyAwardResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data *DBMonkey `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
Award []*UserAtno `protobuf:"bytes,2,rep,name=award,proto3" json:"award"` //获取资源
}
func (x *MonkeyAwardResp) Reset() {
*x = MonkeyAwardResp{}
if protoimpl.UnsafeEnabled {
mi := &file_monkey_monkey_msg_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MonkeyAwardResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MonkeyAwardResp) ProtoMessage() {}
func (x *MonkeyAwardResp) ProtoReflect() protoreflect.Message {
mi := &file_monkey_monkey_msg_proto_msgTypes[3]
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 MonkeyAwardResp.ProtoReflect.Descriptor instead.
func (*MonkeyAwardResp) Descriptor() ([]byte, []int) {
return file_monkey_monkey_msg_proto_rawDescGZIP(), []int{3}
}
func (x *MonkeyAwardResp) GetData() *DBMonkey {
if x != nil {
return x.Data
}
return nil
}
func (x *MonkeyAwardResp) GetAward() []*UserAtno {
if x != nil {
return x.Award
}
return nil
}
// 更新关卡星级
type MonkeyUpdateStarReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Stage int32 `protobuf:"varint,1,opt,name=stage,proto3" json:"stage"` // 关卡ID
Star int32 `protobuf:"varint,2,opt,name=star,proto3" json:"star"` // 星星数
}
func (x *MonkeyUpdateStarReq) Reset() {
*x = MonkeyUpdateStarReq{}
if protoimpl.UnsafeEnabled {
mi := &file_monkey_monkey_msg_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MonkeyUpdateStarReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MonkeyUpdateStarReq) ProtoMessage() {}
func (x *MonkeyUpdateStarReq) ProtoReflect() protoreflect.Message {
mi := &file_monkey_monkey_msg_proto_msgTypes[4]
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 MonkeyUpdateStarReq.ProtoReflect.Descriptor instead.
func (*MonkeyUpdateStarReq) Descriptor() ([]byte, []int) {
return file_monkey_monkey_msg_proto_rawDescGZIP(), []int{4}
}
func (x *MonkeyUpdateStarReq) GetStage() int32 {
if x != nil {
return x.Stage
}
return 0
}
func (x *MonkeyUpdateStarReq) GetStar() int32 {
if x != nil {
return x.Star
}
return 0
}
type MonkeyUpdateStarResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data *DBMonkey `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
}
func (x *MonkeyUpdateStarResp) Reset() {
*x = MonkeyUpdateStarResp{}
if protoimpl.UnsafeEnabled {
mi := &file_monkey_monkey_msg_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *MonkeyUpdateStarResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MonkeyUpdateStarResp) ProtoMessage() {}
func (x *MonkeyUpdateStarResp) ProtoReflect() protoreflect.Message {
mi := &file_monkey_monkey_msg_proto_msgTypes[5]
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 MonkeyUpdateStarResp.ProtoReflect.Descriptor instead.
func (*MonkeyUpdateStarResp) Descriptor() ([]byte, []int) {
return file_monkey_monkey_msg_proto_rawDescGZIP(), []int{5}
}
func (x *MonkeyUpdateStarResp) GetData() *DBMonkey {
if x != nil {
return x.Data
}
return nil
}
var File_monkey_monkey_msg_proto protoreflect.FileDescriptor
var file_monkey_monkey_msg_proto_rawDesc = []byte{
0x0a, 0x17, 0x6d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x2f, 0x6d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x5f,
0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x6d, 0x6f, 0x6e, 0x6b, 0x65,
0x79, 0x2f, 0x6d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x1a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x12, 0x0a,
0x10, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
0x71, 0x22, 0x32, 0x0a, 0x11, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x47, 0x65, 0x74, 0x4c, 0x69,
0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x52,
0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x48, 0x0a, 0x0e, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x41,
0x77, 0x61, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x68, 0x61, 0x70, 0x74,
0x65, 0x72, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x63, 0x68, 0x61, 0x70,
0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x74, 0x61, 0x72, 0x6e, 0x75, 0x6d,
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x73, 0x74, 0x61, 0x72, 0x6e, 0x75, 0x6d, 0x22,
0x51, 0x0a, 0x0f, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x41, 0x77, 0x61, 0x72, 0x64, 0x52, 0x65,
0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x09, 0x2e, 0x44, 0x42, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74,
0x61, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x77, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x09, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x74, 0x6e, 0x6f, 0x52, 0x05, 0x61, 0x77, 0x61,
0x72, 0x64, 0x22, 0x3f, 0x0a, 0x13, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x53, 0x74, 0x61, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61,
0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x12,
0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x73,
0x74, 0x61, 0x72, 0x22, 0x35, 0x0a, 0x14, 0x4d, 0x6f, 0x6e, 0x6b, 0x65, 0x79, 0x55, 0x70, 0x64,
0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1d, 0x0a, 0x04, 0x64,
0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x44, 0x42, 0x4d, 0x6f,
0x6e, 0x6b, 0x65, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b,
0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_monkey_monkey_msg_proto_rawDescOnce sync.Once
file_monkey_monkey_msg_proto_rawDescData = file_monkey_monkey_msg_proto_rawDesc
)
func file_monkey_monkey_msg_proto_rawDescGZIP() []byte {
file_monkey_monkey_msg_proto_rawDescOnce.Do(func() {
file_monkey_monkey_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_monkey_monkey_msg_proto_rawDescData)
})
return file_monkey_monkey_msg_proto_rawDescData
}
var file_monkey_monkey_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_monkey_monkey_msg_proto_goTypes = []interface{}{
(*MonkeyGetListReq)(nil), // 0: MonkeyGetListReq
(*MonkeyGetListResp)(nil), // 1: MonkeyGetListResp
(*MonkeyAwardReq)(nil), // 2: MonkeyAwardReq
(*MonkeyAwardResp)(nil), // 3: MonkeyAwardResp
(*MonkeyUpdateStarReq)(nil), // 4: MonkeyUpdateStarReq
(*MonkeyUpdateStarResp)(nil), // 5: MonkeyUpdateStarResp
(*DBMonkey)(nil), // 6: DBMonkey
(*UserAtno)(nil), // 7: UserAtno
}
var file_monkey_monkey_msg_proto_depIdxs = []int32{
6, // 0: MonkeyGetListResp.data:type_name -> DBMonkey
6, // 1: MonkeyAwardResp.data:type_name -> DBMonkey
7, // 2: MonkeyAwardResp.award:type_name -> UserAtno
6, // 3: MonkeyUpdateStarResp.data:type_name -> DBMonkey
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
}
func init() { file_monkey_monkey_msg_proto_init() }
func file_monkey_monkey_msg_proto_init() {
if File_monkey_monkey_msg_proto != nil {
return
}
file_monkey_monkey_db_proto_init()
file_comm_proto_init()
if !protoimpl.UnsafeEnabled {
file_monkey_monkey_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MonkeyGetListReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_monkey_monkey_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MonkeyGetListResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_monkey_monkey_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MonkeyAwardReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_monkey_monkey_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MonkeyAwardResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_monkey_monkey_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MonkeyUpdateStarReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_monkey_monkey_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MonkeyUpdateStarResp); 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{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_monkey_monkey_msg_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_monkey_monkey_msg_proto_goTypes,
DependencyIndexes: file_monkey_monkey_msg_proto_depIdxs,
MessageInfos: file_monkey_monkey_msg_proto_msgTypes,
}.Build()
File_monkey_monkey_msg_proto = out.File
file_monkey_monkey_msg_proto_rawDesc = nil
file_monkey_monkey_msg_proto_goTypes = nil
file_monkey_monkey_msg_proto_depIdxs = nil
}

View File

@ -26,42 +26,42 @@ type DBUserExpand struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //主键id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` //主键id
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` //用户id Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"` //用户id
Lastreadnotiftime int64 `protobuf:"varint,3,opt,name=lastreadnotiftime,proto3" json:"lastreadnotiftime"` //最后阅读公告时间 Lastreadnotiftime int64 `protobuf:"varint,3,opt,name=lastreadnotiftime,proto3" json:"lastreadnotiftime"` //最后阅读公告时间
LastInitdataTime int64 `protobuf:"varint,4,opt,name=lastInitdataTime,proto3" json:"lastInitdataTime"` //上次初始数据时间 LastInitdataTime int64 `protobuf:"varint,4,opt,name=lastInitdataTime,proto3" json:"lastInitdataTime"` //上次初始数据时间
InitdataCount uint32 `protobuf:"varint,5,opt,name=initdataCount,proto3" json:"initdataCount"` //今日初始累计次数 InitdataCount uint32 `protobuf:"varint,5,opt,name=initdataCount,proto3" json:"initdataCount"` //今日初始累计次数
Chatchannel int32 `protobuf:"varint,6,opt,name=chatchannel,proto3" json:"chatchannel"` //跨服聊天频道 Chatchannel int32 `protobuf:"varint,6,opt,name=chatchannel,proto3" json:"chatchannel"` //跨服聊天频道
ModifynameCount int32 `protobuf:"varint,7,opt,name=modifynameCount,proto3" json:"modifynameCount"` //修改昵称次数 ModifynameCount int32 `protobuf:"varint,7,opt,name=modifynameCount,proto3" json:"modifynameCount"` //修改昵称次数
Expitem map[string]int32 `protobuf:"bytes,8,rep,name=expitem,proto3" json:"expitem" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //该英雄重复获取后所获得的升星道具 Expitem map[string]int32 `protobuf:"bytes,8,rep,name=expitem,proto3" json:"expitem" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //该英雄重复获取后所获得的升星道具
Activeday int32 `protobuf:"varint,11,opt,name=activeday,proto3" json:"activeday"` //日活跃度 Activeday int32 `protobuf:"varint,11,opt,name=activeday,proto3" json:"activeday"` //日活跃度
Activeweek int32 `protobuf:"varint,12,opt,name=activeweek,proto3" json:"activeweek"` //周活跃度 Activeweek int32 `protobuf:"varint,12,opt,name=activeweek,proto3" json:"activeweek"` //周活跃度
Sign string `protobuf:"bytes,13,opt,name=sign,proto3" json:"sign"` //用户签名 Sign string `protobuf:"bytes,13,opt,name=sign,proto3" json:"sign"` //用户签名
FriendPoint int32 `protobuf:"varint,14,opt,name=friendPoint,proto3" json:"friendPoint" bson:"friendPoint"` //友情点 FriendPoint int32 `protobuf:"varint,14,opt,name=friendPoint,proto3" json:"friendPoint" bson:"friendPoint"` //友情点
FriendPointID int32 `protobuf:"varint,15,opt,name=friendPointID,proto3" json:"friendPointID" bson:"friendPointID"` //每日获赠友情点 FriendPointID int32 `protobuf:"varint,15,opt,name=friendPointID,proto3" json:"friendPointID" bson:"friendPointID"` //每日获赠友情点
FriendPointOD int32 `protobuf:"varint,16,opt,name=friendPointOD,proto3" json:"friendPointOD" bson:"friendPointOD"` //每日送出友情点 FriendPointOD int32 `protobuf:"varint,16,opt,name=friendPointOD,proto3" json:"friendPointOD" bson:"friendPointOD"` //每日送出友情点
LoginAddCount int32 `protobuf:"varint,19,opt,name=loginAddCount,proto3" json:"loginAddCount"` //@go_tasgs(`bson:"loginAddCount"`) 累计登录天数 LoginAddCount int32 `protobuf:"varint,19,opt,name=loginAddCount,proto3" json:"loginAddCount"` //@go_tasgs(`bson:"loginAddCount"`) 累计登录天数
LoginContinueCount int32 `protobuf:"varint,20,opt,name=loginContinueCount,proto3" json:"loginContinueCount"` //@go_tasgs(`bson:"loginContinueCount"`) 连续登录天数 LoginContinueCount int32 `protobuf:"varint,20,opt,name=loginContinueCount,proto3" json:"loginContinueCount"` //@go_tasgs(`bson:"loginContinueCount"`) 连续登录天数
RtaskId int32 `protobuf:"varint,21,opt,name=rtaskId,proto3" json:"rtaskId" bson:"rtaskId"` // 当前完成的随机任务ID RtaskId int32 `protobuf:"varint,21,opt,name=rtaskId,proto3" json:"rtaskId" bson:"rtaskId"` // 当前完成的随机任务ID
TeamHeroIds []string `protobuf:"bytes,22,rep,name=teamHeroIds,proto3" json:"teamHeroIds" bson:"teamHeroIds"` //阵容英雄IDs TeamHeroIds []string `protobuf:"bytes,22,rep,name=teamHeroIds,proto3" json:"teamHeroIds" bson:"teamHeroIds"` //阵容英雄IDs
SociatyId string `protobuf:"bytes,23,opt,name=sociatyId,proto3" json:"sociatyId" bson:"sociatyId"` //公会ID SociatyId string `protobuf:"bytes,23,opt,name=sociatyId,proto3" json:"sociatyId" bson:"sociatyId"` //公会ID
SociatyCd int64 `protobuf:"varint,24,opt,name=sociatyCd,proto3" json:"sociatyCd" bson:"sociatyCd"` //主动退出CD SociatyCd int64 `protobuf:"varint,24,opt,name=sociatyCd,proto3" json:"sociatyCd" bson:"sociatyCd"` //主动退出CD
Guildcoin int32 `protobuf:"varint,25,opt,name=guildcoin,proto3" json:"guildcoin" bson:"guildcoin"` //公会币 Guildcoin int32 `protobuf:"varint,25,opt,name=guildcoin,proto3" json:"guildcoin" bson:"guildcoin"` //公会币
Arenacoin int32 `protobuf:"varint,26,opt,name=arenacoin,proto3" json:"arenacoin" bson:"arenacoin"` //竞技场币 Arenacoin int32 `protobuf:"varint,26,opt,name=arenacoin,proto3" json:"arenacoin" bson:"arenacoin"` //竞技场币
Physicalbuynum int32 `protobuf:"varint,27,opt,name=physicalbuynum,proto3" json:"physicalbuynum"` //@go_tags(`bson:"physicalbuynum"`)体力购买次数 Physicalbuynum int32 `protobuf:"varint,27,opt,name=physicalbuynum,proto3" json:"physicalbuynum"` //@go_tags(`bson:"physicalbuynum"`)体力购买次数
PhysicalbuyLasttime int64 `protobuf:"varint,28,opt,name=physicalbuyLasttime,proto3" json:"physicalbuyLasttime"` //@go_tags(`bson:"physicalbuyLasttime"`)最后购买体力事件 PhysicalbuyLasttime int64 `protobuf:"varint,28,opt,name=physicalbuyLasttime,proto3" json:"physicalbuyLasttime"` //@go_tags(`bson:"physicalbuyLasttime"`)最后购买体力事件
Buyunifiedticket int32 `protobuf:"varint,29,opt,name=buyunifiedticket,proto3" json:"buyunifiedticket"` //@go_tags(`bson:"buyunifiedticket"`)购买统一入场门票次数 Buyunifiedticket int32 `protobuf:"varint,29,opt,name=buyunifiedticket,proto3" json:"buyunifiedticket"` //@go_tags(`bson:"buyunifiedticket"`)购买统一入场门票次数
Lasttimeunifiedticket int64 `protobuf:"varint,30,opt,name=lasttimeunifiedticket,proto3" json:"lasttimeunifiedticket"` //@go_tags(`bson:"lasttimeunifiedticket"`)最后购买统一入场门票时间 Lasttimeunifiedticket int64 `protobuf:"varint,30,opt,name=lasttimeunifiedticket,proto3" json:"lasttimeunifiedticket"` //@go_tags(`bson:"lasttimeunifiedticket"`)最后购买统一入场门票时间
Recovertimeunifiedticket int64 `protobuf:"varint,31,opt,name=recovertimeunifiedticket,proto3" json:"recovertimeunifiedticket"` //@go_tags(`bson:"recovertimeunifiedticket"`)同意门票恢复时间 Recovertimeunifiedticket int64 `protobuf:"varint,31,opt,name=recovertimeunifiedticket,proto3" json:"recovertimeunifiedticket"` //@go_tags(`bson:"recovertimeunifiedticket"`)同意门票恢复时间
SociatyTicketBuyNum int32 `protobuf:"varint,32,opt,name=sociatyTicketBuyNum,proto3" json:"sociatyTicketBuyNum" bson:"sociatyTicketBuyNum"` //公会boss挑战券购买次数 SociatyTicketBuyNum int32 `protobuf:"varint,32,opt,name=sociatyTicketBuyNum,proto3" json:"sociatyTicketBuyNum" bson:"sociatyTicketBuyNum"` //公会boss挑战券购买次数
SociatyTicket int32 `protobuf:"varint,33,opt,name=sociatyTicket,proto3" json:"sociatyTicket" bson:"sociatyTicket"` //公会boss挑战券数量 SociatyTicket int32 `protobuf:"varint,33,opt,name=sociatyTicket,proto3" json:"sociatyTicket" bson:"sociatyTicket"` //公会boss挑战券数量
Mline map[int32]int32 `protobuf:"bytes,34,rep,name=mline,proto3" json:"mline" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3" bson:"mline"` //主线关卡最大进度 key难度val是关卡ID //map<int32,int32> mline = 34;//@go_tags(`bson:"mline"`) 主线关卡最大进度 key难度val是关卡ID
SuiteId []int32 `protobuf:"varint,35,rep,packed,name=suiteId,proto3" json:"suiteId" bson:"suiteId"` // 套装Id SuiteId []int32 `protobuf:"varint,35,rep,packed,name=suiteId,proto3" json:"suiteId" bson:"suiteId"` // 套装Id
Globalbuff int32 `protobuf:"varint,36,opt,name=globalbuff,proto3" json:"globalbuff" bson:"globalbuff"` // 全局buff Globalbuff int32 `protobuf:"varint,36,opt,name=globalbuff,proto3" json:"globalbuff" bson:"globalbuff"` // 全局buff
Race map[int32]int32 `protobuf:"bytes,37,rep,name=race,proto3" json:"race" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // key 阵营ID 1~4 value 总好感度 Race map[int32]int32 `protobuf:"bytes,37,rep,name=race,proto3" json:"race" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // key 阵营ID 1~4 value 总好感度
Herofrag map[string]int32 `protobuf:"bytes,38,rep,name=herofrag,proto3" json:"herofrag" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //当获得重复守护者时获得的守护之心次数 Herofrag map[string]int32 `protobuf:"bytes,38,rep,name=herofrag,proto3" json:"herofrag" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //当获得重复守护者时获得的守护之心次数
Passonlv int32 `protobuf:"varint,39,opt,name=passonlv,proto3" json:"passonlv"` //传功等级 Passonlv int32 `protobuf:"varint,39,opt,name=passonlv,proto3" json:"passonlv"` //传功等级
ConsumPs int32 `protobuf:"varint,40,opt,name=consumPs,proto3" json:"consumPs"` //今天消耗的体力 ConsumPs int32 `protobuf:"varint,40,opt,name=consumPs,proto3" json:"consumPs"` //今天消耗的体力
} }
func (x *DBUserExpand) Reset() { func (x *DBUserExpand) Reset() {
@ -299,13 +299,6 @@ func (x *DBUserExpand) GetSociatyTicket() int32 {
return 0 return 0
} }
func (x *DBUserExpand) GetMline() map[int32]int32 {
if x != nil {
return x.Mline
}
return nil
}
func (x *DBUserExpand) GetSuiteId() []int32 { func (x *DBUserExpand) GetSuiteId() []int32 {
if x != nil { if x != nil {
return x.SuiteId return x.SuiteId
@ -440,7 +433,7 @@ var File_userexpand_proto protoreflect.FileDescriptor
var file_userexpand_proto_rawDesc = []byte{ var file_userexpand_proto_rawDesc = []byte{
0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x0a, 0x10, 0x75, 0x73, 0x65, 0x72, 0x65, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x22, 0xc0, 0x0c, 0x0a, 0x0c, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70, 0x74, 0x6f, 0x22, 0xd6, 0x0b, 0x0a, 0x0c, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70,
0x61, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x61, 0x6e, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x72, 0x65, 0x61, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x2c, 0x0a, 0x11, 0x6c, 0x61, 0x73, 0x74, 0x72, 0x65, 0x61,
@ -509,10 +502,7 @@ var file_userexpand_proto_rawDesc = []byte{
0x69, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x73, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x42, 0x75, 0x79, 0x4e, 0x75, 0x6d, 0x12, 0x24, 0x0a, 0x0d, 0x73,
0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x21, 0x20, 0x01, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x74, 0x18, 0x21, 0x20, 0x01,
0x28, 0x05, 0x52, 0x0d, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x69, 0x63, 0x6b, 0x65, 0x28, 0x05, 0x52, 0x0d, 0x73, 0x6f, 0x63, 0x69, 0x61, 0x74, 0x79, 0x54, 0x69, 0x63, 0x6b, 0x65,
0x74, 0x12, 0x2e, 0x0a, 0x05, 0x6d, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x22, 0x20, 0x03, 0x28, 0x0b, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x23, 0x20, 0x03,
0x32, 0x18, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x6e, 0x64, 0x2e,
0x4d, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x6d, 0x6c, 0x69, 0x6e,
0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x18, 0x23, 0x20, 0x03,
0x28, 0x05, 0x52, 0x07, 0x73, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x28, 0x05, 0x52, 0x07, 0x73, 0x75, 0x69, 0x74, 0x65, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x67,
0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x62, 0x75, 0x66, 0x66, 0x18, 0x24, 0x20, 0x01, 0x28, 0x05, 0x52, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x62, 0x75, 0x66, 0x66, 0x18, 0x24, 0x20, 0x01, 0x28, 0x05, 0x52,
0x0a, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x62, 0x75, 0x66, 0x66, 0x12, 0x2b, 0x0a, 0x04, 0x72, 0x0a, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x62, 0x75, 0x66, 0x66, 0x12, 0x2b, 0x0a, 0x04, 0x72,
@ -529,28 +519,24 @@ var file_userexpand_proto_rawDesc = []byte{
0x69, 0x74, 0x65, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x69, 0x74, 0x65, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 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, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x38, 0x0a, 0x0a, 0x4d, 0x6c, 0x69, 0x6e, 0x65, 0x45, 0x6e, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x37, 0x0a, 0x09, 0x52, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x74,
0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3b,
0x37, 0x0a, 0x09, 0x52, 0x61, 0x63, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x66, 0x72, 0x61, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3b, 0x0a, 0x0d, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x01, 0x0a, 0x09,
0x66, 0x72, 0x61, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x65,
0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x89, 0x01, 0x0a, 0x09, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x78, 0x70, 0x69, 0x72, 0x65, 0x41, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x65,
0x4c, 0x6f, 0x67, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x78, 0x70, 0x69, 0x72, 0x65, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x6f, 0x67, 0x74, 0x79,
0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x74, 0x79, 0x70,
0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x41, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x41, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28,
0x74, 0x12, 0x18, 0x0a, 0x07, 0x6c, 0x6f, 0x67, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62,
0x28, 0x09, 0x52, 0x07, 0x6c, 0x6f, 0x67, 0x74, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x61, 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x12, 0x12, 0x0a,
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74,
0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
} }
var ( var (
@ -565,25 +551,23 @@ func file_userexpand_proto_rawDescGZIP() []byte {
return file_userexpand_proto_rawDescData return file_userexpand_proto_rawDescData
} }
var file_userexpand_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_userexpand_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_userexpand_proto_goTypes = []interface{}{ var file_userexpand_proto_goTypes = []interface{}{
(*DBUserExpand)(nil), // 0: DBUserExpand (*DBUserExpand)(nil), // 0: DBUserExpand
(*DBUserLog)(nil), // 1: DBUserLog (*DBUserLog)(nil), // 1: DBUserLog
nil, // 2: DBUserExpand.ExpitemEntry nil, // 2: DBUserExpand.ExpitemEntry
nil, // 3: DBUserExpand.MlineEntry nil, // 3: DBUserExpand.RaceEntry
nil, // 4: DBUserExpand.RaceEntry nil, // 4: DBUserExpand.HerofragEntry
nil, // 5: DBUserExpand.HerofragEntry
} }
var file_userexpand_proto_depIdxs = []int32{ var file_userexpand_proto_depIdxs = []int32{
2, // 0: DBUserExpand.expitem:type_name -> DBUserExpand.ExpitemEntry 2, // 0: DBUserExpand.expitem:type_name -> DBUserExpand.ExpitemEntry
3, // 1: DBUserExpand.mline:type_name -> DBUserExpand.MlineEntry 3, // 1: DBUserExpand.race:type_name -> DBUserExpand.RaceEntry
4, // 2: DBUserExpand.race:type_name -> DBUserExpand.RaceEntry 4, // 2: DBUserExpand.herofrag:type_name -> DBUserExpand.HerofragEntry
5, // 3: DBUserExpand.herofrag:type_name -> DBUserExpand.HerofragEntry 3, // [3:3] is the sub-list for method output_type
4, // [4:4] is the sub-list for method output_type 3, // [3:3] is the sub-list for method input_type
4, // [4:4] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee
4, // [4:4] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name
0, // [0:4] is the sub-list for field type_name
} }
func init() { file_userexpand_proto_init() } func init() { file_userexpand_proto_init() }
@ -623,7 +607,7 @@ func file_userexpand_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_userexpand_proto_rawDesc, RawDescriptor: file_userexpand_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 6, NumMessages: 5,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },

View File

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

View File

@ -0,0 +1,69 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type GameMonkeyMainData struct {
Id int32
Chapter int32
Stagedepict string
Startype []int32
Starcondition []int32
}
const TypeId_GameMonkeyMainData = 1592430450
func (*GameMonkeyMainData) GetTypeId() int32 {
return 1592430450
}
func (_v *GameMonkeyMainData)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["chapter"].(float64); !_ok_ { err = errors.New("chapter error"); return }; _v.Chapter = int32(_tempNum_) }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["stagedepict"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Stagedepict error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Stagedepict, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["startype"].([]interface{}); !_ok_ { err = errors.New("startype error"); return }
_v.Startype = 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.Startype = append(_v.Startype, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["starcondition"].([]interface{}); !_ok_ { err = errors.New("starcondition error"); return }
_v.Starcondition = 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.Starcondition = append(_v.Starcondition, _list_v_)
}
}
return
}
func DeserializeGameMonkeyMainData(_buf map[string]interface{}) (*GameMonkeyMainData, error) {
v := &GameMonkeyMainData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

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

View File

@ -0,0 +1,56 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
import "errors"
type GameMonkeyRewardData struct {
Key int32
Chapter int32
Type int32
Starnum int32
Reward []*Gameatn
}
const TypeId_GameMonkeyRewardData = -1304932824
func (*GameMonkeyRewardData) GetTypeId() int32 {
return -1304932824
}
func (_v *GameMonkeyRewardData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["key"].(float64); !_ok_ { err = errors.New("key error"); return }; _v.Key = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["chapter"].(float64); !_ok_ { err = errors.New("chapter error"); return }; _v.Chapter = 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["starnum"].(float64); !_ok_ { err = errors.New("starnum error"); return }; _v.Starnum = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["reward"].([]interface{}); !_ok_ { err = errors.New("reward error"); return }
_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.Reward = append(_v.Reward, _list_v_)
}
}
return
}
func DeserializeGameMonkeyRewardData(_buf map[string]interface{}) (*GameMonkeyRewardData, error) {
v := &GameMonkeyRewardData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -14,4 +14,5 @@ const (
GameOpencondType_Maxmapid = 2 GameOpencondType_Maxmapid = 2
GameOpencondType_Worldtaskid = 3 GameOpencondType_Worldtaskid = 3
GameOpencondType_Friend = 4 GameOpencondType_Friend = 4
GameOpencondType_MoonLevel = 5
) )

View File

@ -12,13 +12,11 @@ import "errors"
type GameTDBuffData struct { type GameTDBuffData struct {
Id int32 Id int32
BuffType int32
TriggerPro int32 TriggerPro int32
Describe string Describe string
OverlayType int32 OverlayType int32
EffectType []int32 EffectType []int32
Value []int32 Value []int32
TargetBuffId int32
EffectRange float32 EffectRange float32
MaxLayer int32 MaxLayer int32
LayerEffectType []int32 LayerEffectType []int32
@ -36,7 +34,6 @@ func (*GameTDBuffData) GetTypeId() int32 {
func (_v *GameTDBuffData)Deserialize(_buf map[string]interface{}) (err error) { func (_v *GameTDBuffData)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["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["buff_type"].(float64); !_ok_ { err = errors.New("buff_type error"); return }; _v.BuffType = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["trigger_pro"].(float64); !_ok_ { err = errors.New("trigger_pro error"); return }; _v.TriggerPro = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["trigger_pro"].(float64); !_ok_ { err = errors.New("trigger_pro error"); return }; _v.TriggerPro = int32(_tempNum_) }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["describe"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Describe error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Describe, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } } {var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["describe"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Describe error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Describe, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["overlay_type"].(float64); !_ok_ { err = errors.New("overlay_type error"); return }; _v.OverlayType = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["overlay_type"].(float64); !_ok_ { err = errors.New("overlay_type error"); return }; _v.OverlayType = int32(_tempNum_) }
@ -68,7 +65,6 @@ func (_v *GameTDBuffData)Deserialize(_buf map[string]interface{}) (err error) {
} }
} }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["target_buffId"].(float64); !_ok_ { err = errors.New("target_buffId error"); return }; _v.TargetBuffId = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["effect_Range"].(float64); !_ok_ { err = errors.New("effect_Range error"); return }; _v.EffectRange = float32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["effect_Range"].(float64); !_ok_ { err = errors.New("effect_Range error"); return }; _v.EffectRange = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_layer"].(float64); !_ok_ { err = errors.New("max_layer error"); return }; _v.MaxLayer = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["max_layer"].(float64); !_ok_ { err = errors.New("max_layer error"); return }; _v.MaxLayer = int32(_tempNum_) }
{ {

View File

@ -25,8 +25,6 @@ type GameTDWeaponData struct {
Num int32 Num int32
ExplosionRange float32 ExplosionRange float32
Catapult int32 Catapult int32
SelfBuff []int32
TargetBuff []int32
Pro int32 Pro int32
ExplosionEffect string ExplosionEffect string
} }
@ -52,34 +50,6 @@ func (_v *GameTDWeaponData)Deserialize(_buf map[string]interface{}) (err error)
{ 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["num"].(float64); !_ok_ { err = errors.New("num error"); return }; _v.Num = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["explosion_Range"].(float64); !_ok_ { err = errors.New("explosion_Range error"); return }; _v.ExplosionRange = float32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["explosion_Range"].(float64); !_ok_ { err = errors.New("explosion_Range error"); return }; _v.ExplosionRange = float32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["catapult"].(float64); !_ok_ { err = errors.New("catapult error"); return }; _v.Catapult = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["catapult"].(float64); !_ok_ { err = errors.New("catapult error"); return }; _v.Catapult = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["self_buff"].([]interface{}); !_ok_ { err = errors.New("self_buff error"); return }
_v.SelfBuff = 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.SelfBuff = append(_v.SelfBuff, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["target_buff"].([]interface{}); !_ok_ { err = errors.New("target_buff error"); return }
_v.TargetBuff = 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.TargetBuff = append(_v.TargetBuff, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pro"].(float64); !_ok_ { err = errors.New("pro error"); return }; _v.Pro = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["pro"].(float64); !_ok_ { err = errors.New("pro error"); return }; _v.Pro = int32(_tempNum_) }
{ var _ok_ bool; if _v.ExplosionEffect, _ok_ = _buf["explosion_effect"].(string); !_ok_ { err = errors.New("explosion_effect error"); return } } { var _ok_ bool; if _v.ExplosionEffect, _ok_ = _buf["explosion_effect"].(string); !_ok_ { err = errors.New("explosion_effect error"); return } }
return return

View File

@ -14,7 +14,6 @@ type GameTDWeaponRandomData struct {
Id int32 Id int32
WeaponId int32 WeaponId int32
SkillId int32 SkillId int32
SubSkillId []int32
} }
const TypeId_GameTDWeaponRandomData = 108801077 const TypeId_GameTDWeaponRandomData = 108801077
@ -27,20 +26,6 @@ func (_v *GameTDWeaponRandomData)Deserialize(_buf map[string]interface{}) (err e
{ 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["id"].(float64); !_ok_ { err = errors.New("id error"); return }; _v.Id = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["weapon_id"].(float64); !_ok_ { err = errors.New("weapon_id error"); return }; _v.WeaponId = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["weapon_id"].(float64); !_ok_ { err = errors.New("weapon_id error"); return }; _v.WeaponId = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["skill_id"].(float64); !_ok_ { err = errors.New("skill_id error"); return }; _v.SkillId = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["skill_id"].(float64); !_ok_ { err = errors.New("skill_id error"); return }; _v.SkillId = int32(_tempNum_) }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["subSkill_id"].([]interface{}); !_ok_ { err = errors.New("subSkill_id error"); return }
_v.SubSkillId = 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.SubSkillId = append(_v.SubSkillId, _list_v_)
}
}
return return
} }

View File

@ -12,6 +12,7 @@ import "errors"
type GameTDWeaponSkillData struct { type GameTDWeaponSkillData struct {
SkillId int32 SkillId int32
SubSkillId int32
SkillTriggerType int32 SkillTriggerType int32
Icon string Icon string
Name string Name string
@ -33,6 +34,7 @@ func (*GameTDWeaponSkillData) GetTypeId() int32 {
func (_v *GameTDWeaponSkillData)Deserialize(_buf map[string]interface{}) (err error) { func (_v *GameTDWeaponSkillData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["skill_id"].(float64); !_ok_ { err = errors.New("skill_id error"); return }; _v.SkillId = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["skill_id"].(float64); !_ok_ { err = errors.New("skill_id error"); return }; _v.SkillId = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["subSkill_id"].(float64); !_ok_ { err = errors.New("subSkill_id error"); return }; _v.SubSkillId = int32(_tempNum_) }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["skill_triggerType"].(float64); !_ok_ { err = errors.New("skill_triggerType error"); return }; _v.SkillTriggerType = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["skill_triggerType"].(float64); !_ok_ { err = errors.New("skill_triggerType error"); return }; _v.SkillTriggerType = int32(_tempNum_) }
{ var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } } { var _ok_ bool; if _v.Icon, _ok_ = _buf["icon"].(string); !_ok_ { err = errors.New("icon error"); return } }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } } {var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["name"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.Name error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.Name, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }

View File

@ -311,6 +311,8 @@ type Tables struct {
PuggsyStar *GamePuggsyStar PuggsyStar *GamePuggsyStar
PuggsyMake *GamePuggsyMake PuggsyMake *GamePuggsyMake
PuggsyRecruit *GamePuggsyRecruit PuggsyRecruit *GamePuggsyRecruit
MonkeyMain *GameMonkeyMain
MonkeyReward *GameMonkeyReward
} }
func NewTables(loader JsonLoader) (*Tables, error) { func NewTables(loader JsonLoader) (*Tables, error) {
@ -2118,5 +2120,17 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.PuggsyRecruit, err = NewGamePuggsyRecruit(buf) ; err != nil { if tables.PuggsyRecruit, err = NewGamePuggsyRecruit(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_monkeymain") ; err != nil {
return nil, err
}
if tables.MonkeyMain, err = NewGameMonkeyMain(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_monkeyreward") ; err != nil {
return nil, err
}
if tables.MonkeyReward, err = NewGameMonkeyReward(buf) ; err != nil {
return nil, err
}
return tables, nil return tables, nil
} }

View File

@ -264,6 +264,7 @@ type GameGlobalData struct {
TdDivisionAngle int32 TdDivisionAngle int32
Playerexname string Playerexname string
Initper *Gameatn Initper *Gameatn
Catchbugturn int32
} }
const TypeId_GameGlobalData = 477542761 const TypeId_GameGlobalData = 477542761
@ -1059,6 +1060,7 @@ func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["td_division_angle"].(float64); !_ok_ { err = errors.New("td_division_angle error"); return }; _v.TdDivisionAngle = int32(_tempNum_) } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["td_division_angle"].(float64); !_ok_ { err = errors.New("td_division_angle error"); return }; _v.TdDivisionAngle = int32(_tempNum_) }
{ var _ok_ bool; if _v.Playerexname, _ok_ = _buf["playerexname"].(string); !_ok_ { err = errors.New("playerexname error"); return } } { var _ok_ bool; if _v.Playerexname, _ok_ = _buf["playerexname"].(string); !_ok_ { err = errors.New("playerexname error"); return } }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["initper"].(map[string]interface{}); !_ok_ { err = errors.New("initper error"); return }; if _v.Initper, err = DeserializeGameatn(_x_); err != nil { return } } { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["initper"].(map[string]interface{}); !_ok_ { err = errors.New("initper error"); return }; if _v.Initper, err = DeserializeGameatn(_x_); err != nil { return } }
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["catchbugturn"].(float64); !_ok_ { err = errors.New("catchbugturn error"); return }; _v.Catchbugturn = int32(_tempNum_) }
return return
} }