This commit is contained in:
liwei1dao 2023-03-24 17:21:34 +08:00
commit 977ce1e40a
22 changed files with 2551 additions and 2258 deletions

View File

@ -1,18 +1,18 @@
[
{
"id": 1,
"model": "34006",
"model": "14005",
"weight": 1000,
"startstory": 3007,
"rejectstory": 3001,
"endstory": 3002,
"startstory": 4001,
"rejectstory": 4002,
"endstory": 0,
"battlename": {
"key": "story_80",
"text": "踢馆1号"
"text": "闹事之人"
},
"battletxt": {
"key": "story_80",
"text": "踢馆1号的文本"
"text": "有人前来闹事,快去解决掉他"
},
"BattleReadyID": 100,
"EventList": [],
@ -55,18 +55,18 @@
},
{
"id": 2,
"model": "35002",
"model": "44006",
"weight": 1000,
"startstory": 3007,
"rejectstory": 3001,
"endstory": 3002,
"startstory": 4001,
"rejectstory": 4002,
"endstory": 0,
"battlename": {
"key": "story_81",
"text": "踢馆2号"
"text": "闹事之人"
},
"battletxt": {
"key": "story_81",
"text": "踢馆2号的文本"
"text": "有人前来闹事,快去解决掉他"
},
"BattleReadyID": 100,
"EventList": [],

File diff suppressed because it is too large Load Diff

View File

@ -571,7 +571,7 @@
"dispatch_numoftimes": 60,
"dispatch_numtools": {
"a": "item",
"t": "10012",
"t": "100001",
"n": 1
},
"dispatch_npctimes": 2,

View File

@ -244,9 +244,9 @@
"type": 2,
"text": {
"key": "GM_12",
"text": "跳到主线关卡XX关填关卡"
"text": "跳到主线关卡XX关填关卡Id"
},
"data": "1,101",
"data": "1100101",
"prefix": "bingo:mainline,{0}"
},
{

View File

@ -338,5 +338,15 @@
"n": 300
}
]
},
{
"index": "200",
"var": [
{
"a": "item",
"t": "10012",
"n": 60
}
]
}
]

View File

@ -6,8 +6,8 @@
"IsBoss": 0,
"monster": 510023,
"lv": 10,
"hppro": 100,
"atkpro": 0.1,
"hppro": 0.5,
"atkpro": 10,
"defpro": 0.1,
"modelsize": 1
},
@ -18,8 +18,8 @@
"IsBoss": 0,
"monster": 510053,
"lv": 10,
"hppro": 100,
"atkpro": 0.1,
"hppro": 0.5,
"atkpro": 10,
"defpro": 0.1,
"modelsize": 1
},
@ -30,8 +30,8 @@
"IsBoss": 0,
"monster": 510043,
"lv": 10,
"hppro": 100,
"atkpro": 0.1,
"hppro": 0.5,
"atkpro": 10,
"defpro": 0.1,
"modelsize": 1
},
@ -42,8 +42,8 @@
"IsBoss": 0,
"monster": 530013,
"lv": 12,
"hppro": 100,
"atkpro": 0.1,
"hppro": 0.5,
"atkpro": 10,
"defpro": 0.1,
"modelsize": 1
},
@ -54,8 +54,8 @@
"IsBoss": 0,
"monster": 510033,
"lv": 10,
"hppro": 100,
"atkpro": 0.1,
"hppro": 0.5,
"atkpro": 10,
"defpro": 0.1,
"modelsize": 1
},
@ -66,8 +66,8 @@
"IsBoss": 0,
"monster": 510023,
"lv": 12,
"hppro": 0.5,
"atkpro": 1,
"hppro": 100,
"atkpro": 0.1,
"defpro": 0.4,
"modelsize": 1
},
@ -78,8 +78,8 @@
"IsBoss": 0,
"monster": 510023,
"lv": 12,
"hppro": 0.5,
"atkpro": 1,
"hppro": 100,
"atkpro": 0.1,
"defpro": 0.4,
"modelsize": 1
},
@ -90,8 +90,8 @@
"IsBoss": 0,
"monster": 510033,
"lv": 12,
"hppro": 0.5,
"atkpro": 1,
"hppro": 100,
"atkpro": 0.1,
"defpro": 0.4,
"modelsize": 1
},
@ -102,8 +102,8 @@
"IsBoss": 0,
"monster": 510033,
"lv": 12,
"hppro": 0.5,
"atkpro": 1,
"hppro": 100,
"atkpro": 0.1,
"defpro": 0.4,
"modelsize": 1
},
@ -114,8 +114,8 @@
"IsBoss": 0,
"monster": 510033,
"lv": 12,
"hppro": 0.5,
"atkpro": 1,
"hppro": 100,
"atkpro": 0.1,
"defpro": 0.4,
"modelsize": 1
},

View File

@ -1406,5 +1406,44 @@
"text": "请先完成主线剧情"
},
"uiid": 0
},
{
"id": "Master_challenges_the_tower",
"name": {
"key": "panda_1001",
"text": "功夫大师挑战塔"
},
"main": [
{
"key": 1,
"param": 1
}
],
"optional": "",
"wkqbx": 1,
"kqbx": 0,
"img": "",
"prompt": {
"key": "opencond_prompt_Master_challenges_the_tower",
"text": "功能暂未开启"
},
"uiid": 0
},
{
"id": " ",
"name": {
"key": "",
"text": ""
},
"main": [],
"optional": "",
"wkqbx": 0,
"kqbx": 0,
"img": "",
"prompt": {
"key": "",
"text": ""
},
"uiid": 0
}
]

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,26 @@
[
{
"id": 1,
"unlock_condition": 20010
"unlock_condition": 20010,
"unlock_conditiondes": {
"key": "完成任务“这是哪里”",
"text": "完成任务“这是哪里”"
}
},
{
"id": 2,
"unlock_condition": 20011
"unlock_condition": 20011,
"unlock_conditiondes": {
"key": "通关主线1-2后解锁",
"text": "通关主线1-2后解锁"
}
},
{
"id": 3,
"unlock_condition": 20012
"unlock_condition": 20012,
"unlock_conditiondes": {
"key": "通关主线1-3后解锁",
"text": "通关主线1-3后解锁"
}
}
]

View File

@ -339,7 +339,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_ss",
"ico": "",
"intr": "石锁",
"description": {
@ -373,7 +373,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_kz",
"ico": "",
"intr": "双头空竹",
"description": {
@ -396,7 +396,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_pj",
"ico": "",
"intr": "木爬架",
"description": {
@ -419,7 +419,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_bdw",
"ico": "",
"intr": "不倒翁",
"description": {
@ -442,7 +442,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_pc",
"ico": "",
"intr": "棒槌",
"description": {
@ -465,7 +465,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_tl",
"ico": "",
"intr": "铜铃",
"description": {
@ -488,7 +488,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_tj",
"ico": "",
"intr": "尖刺吊环",
"description": {
@ -511,7 +511,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_tj01",
"ico": "",
"intr": "陀螺",
"description": {
@ -534,7 +534,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_zl",
"ico": "",
"intr": "大转轮",
"description": {
@ -568,7 +568,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_mp",
"ico": "",
"intr": "木头牌",
"description": {
@ -602,7 +602,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_sjg",
"ico": "",
"intr": "双节棍",
"description": {
@ -636,7 +636,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_yd",
"ico": "",
"intr": "练功带",
"description": {
@ -670,7 +670,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_tj",
"ico": "",
"intr": "七彩花棍",
"description": {
@ -704,7 +704,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_fb",
"ico": "",
"intr": "流星飞镖",
"description": {
@ -727,7 +727,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_mxl",
"ico": "",
"intr": "冥想锣",
"description": {
@ -750,7 +750,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_ct",
"ico": "",
"intr": "彩条龙",
"description": {
@ -773,7 +773,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_kqms",
"ico": "",
"intr": "孔雀毛扇",
"description": {
@ -805,7 +805,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_ph",
"ico": "",
"intr": "平衡木",
"description": {
@ -837,7 +837,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_th",
"ico": "",
"intr": "铁环",
"description": {
@ -869,7 +869,7 @@
"effects": "",
"access": 0,
"heroid": "",
"img": "",
"img": "wg_icon_tj",
"ico": "",
"intr": "太极球",
"description": {

View File

@ -20,7 +20,13 @@
"min_exp": 10,
"placement_duration": 2,
"prop_position": 0,
"photo_guide_unlocking": []
"photo_guide_unlocking": [
{
"a": "panda",
"t": "100001",
"n": 1
}
]
},
{
"lv": 2,
@ -43,7 +49,13 @@
"min_exp": 15,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
"photo_guide_unlocking": [
{
"a": "panda",
"t": "100002",
"n": 1
}
]
},
{
"lv": 3,
@ -66,7 +78,13 @@
"min_exp": 20,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
"photo_guide_unlocking": [
{
"a": "panda",
"t": "100003",
"n": 1
}
]
},
{
"lv": 4,
@ -89,7 +107,13 @@
"min_exp": 25,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
"photo_guide_unlocking": [
{
"a": "panda",
"t": "100004",
"n": 1
}
]
},
{
"lv": 5,
@ -106,6 +130,12 @@
"min_exp": 30,
"placement_duration": 2,
"prop_position": 1,
"photo_guide_unlocking": []
"photo_guide_unlocking": [
{
"a": "panda",
"t": "100005",
"n": 1
}
]
}
]

View File

@ -104,7 +104,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_13002",
"icon": "ytx_js_13002",
"atlas_score": 105
},
{
@ -122,7 +122,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_13001",
"icon": "ytx_js_13001",
"atlas_score": 120
},
{
@ -140,7 +140,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_44002",
"icon": "ytx_js_44002",
"atlas_score": 135
},
{
@ -158,7 +158,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_24005",
"icon": "ytx_js_24005",
"atlas_score": 150
},
{
@ -176,7 +176,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_14005",
"icon": "ytx_js_14005",
"atlas_score": 165
},
{
@ -194,7 +194,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_44006",
"icon": "ytx_js_44006",
"atlas_score": 180
},
{
@ -212,7 +212,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_43001",
"icon": "ytx_js_43001",
"atlas_score": 195
},
{
@ -230,7 +230,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_35002",
"icon": "ytx_js_35002",
"atlas_score": 210
},
{
@ -248,7 +248,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_45004",
"icon": "ytx_js_45004",
"atlas_score": 225
},
{
@ -266,7 +266,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_35001",
"icon": "ytx_js_35001",
"atlas_score": 240
},
{
@ -284,7 +284,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_25001",
"icon": "ytx_js_25001",
"atlas_score": 255
},
{
@ -302,7 +302,7 @@
"key": "wuguan_2",
"text": "图鉴信息描述"
},
"icon": "sbkp_js_45001",
"icon": "ytx_js_45001",
"atlas_score": 270
},
{
@ -320,7 +320,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_ss",
"atlas_score": 285
},
{
@ -338,7 +338,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_kz",
"atlas_score": 300
},
{
@ -356,7 +356,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_pj",
"atlas_score": 315
},
{
@ -374,7 +374,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_bdw",
"atlas_score": 330
},
{
@ -392,7 +392,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_pc",
"atlas_score": 345
},
{
@ -410,7 +410,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_tl",
"atlas_score": 360
},
{
@ -428,7 +428,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_dh",
"atlas_score": 375
},
{
@ -446,7 +446,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_tj01",
"atlas_score": 390
},
{
@ -464,7 +464,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_zl",
"atlas_score": 405
},
{
@ -482,7 +482,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_mp",
"atlas_score": 420
},
{
@ -500,7 +500,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_sjg",
"atlas_score": 435
},
{
@ -518,7 +518,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_yd",
"atlas_score": 450
},
{
@ -536,7 +536,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_hl",
"atlas_score": 465
},
{
@ -554,7 +554,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_fb",
"atlas_score": 480
},
{
@ -572,7 +572,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_mxl",
"atlas_score": 495
},
{
@ -590,7 +590,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_ct",
"atlas_score": 510
},
{
@ -608,7 +608,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_kqms",
"atlas_score": 525
},
{
@ -626,7 +626,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_ph",
"atlas_score": 540
},
{
@ -644,7 +644,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_th",
"atlas_score": 555
},
{
@ -662,7 +662,7 @@
"key": "wuguan_3",
"text": "图鉴信息描述"
},
"icon": "",
"icon": "wg_icon_tj",
"atlas_score": 570
}
]

View File

@ -7,8 +7,8 @@
},
"camp": 1,
"occupation": 0,
"register": 2,
"exp_bonus": 5
"register": 1,
"exp_bonus": 1
},
{
"id": 2,
@ -18,8 +18,8 @@
},
"camp": 2,
"occupation": 0,
"register": 2,
"exp_bonus": 5
"register": 1,
"exp_bonus": 1
},
{
"id": 3,
@ -29,8 +29,8 @@
},
"camp": 3,
"occupation": 0,
"register": 2,
"exp_bonus": 5
"register": 1,
"exp_bonus": 1
},
{
"id": 4,
@ -40,8 +40,8 @@
},
"camp": 4,
"occupation": 0,
"register": 2,
"exp_bonus": 5
"register": 1,
"exp_bonus": 1
},
{
"id": 5,
@ -51,8 +51,8 @@
},
"camp": 0,
"occupation": 1,
"register": 2,
"exp_bonus": 5
"register": 1,
"exp_bonus": 1
},
{
"id": 6,
@ -62,8 +62,8 @@
},
"camp": 0,
"occupation": 2,
"register": 2,
"exp_bonus": 5
"register": 1,
"exp_bonus": 1
},
{
"id": 7,
@ -73,8 +73,8 @@
},
"camp": 0,
"occupation": 3,
"register": 2,
"exp_bonus": 5
"register": 1,
"exp_bonus": 1
},
{
"id": 8,
@ -84,7 +84,7 @@
},
"camp": 0,
"occupation": 4,
"register": 2,
"exp_bonus": 5
"register": 1,
"exp_bonus": 1
}
]

View File

@ -8,8 +8,8 @@
"access": 0,
"position": "",
"sex": 1,
"resources": "Tag/dialogue.prefab",
"vague": "Tag/dialogue.prefab"
"resources": "Person/10000/10000M.prefab",
"vague": "Person/10000/10000M.prefab"
},
{
"id": 100002,
@ -20,8 +20,8 @@
"access": 0,
"position": "",
"sex": 1,
"resources": "Tag/dialogue.prefab",
"vague": "Tag/dialogue.prefab"
"resources": "Person/10000/10000M.prefab",
"vague": "Person/10000/10000M.prefab"
},
{
"id": 100003,
@ -32,8 +32,8 @@
"access": 0,
"position": "",
"sex": 1,
"resources": "Tag/dialogue.prefab",
"vague": "Tag/dialogue.prefab"
"resources": "Person/10000/10000M.prefab",
"vague": "Person/10000/10000M.prefab"
},
{
"id": 200001,
@ -44,8 +44,8 @@
"access": 0,
"position": "",
"sex": 2,
"resources": "Tag/dialogue.prefab",
"vague": "Tag/dialogue.prefab"
"resources": "Person/10000/10000M.prefab",
"vague": "Person/10000/10000M.prefab"
},
{
"id": 200002,
@ -56,8 +56,8 @@
"access": 0,
"position": "",
"sex": 2,
"resources": "Tag/dialogue.prefab",
"vague": "Tag/dialogue.prefab"
"resources": "Person/10000/10000M.prefab",
"vague": "Person/10000/10000M.prefab"
},
{
"id": 200003,
@ -68,7 +68,7 @@
"access": 0,
"position": "",
"sex": 2,
"resources": "Tag/dialogue.prefab",
"vague": "Tag/dialogue.prefab"
"resources": "Person/10000/10000M.prefab",
"vague": "Person/10000/10000M.prefab"
}
]

View File

@ -753,7 +753,7 @@
"key": 30001,
"lock": 1,
"ontxe": 20010,
"id_after": 30002,
"id_after": 0,
"group": 3,
"des": 2,
"icon": "",
@ -769,11 +769,11 @@
"key": "story_80",
"text": "新手引导"
},
"npc": 27,
"npc": 29,
"completetask": [
301
],
"deliver_npc": 28,
"deliver_npc": 1,
"auto_accept": 0,
"reword": [],
"module": []

View File

@ -44,7 +44,7 @@ func (this *apiComp) Rise(session comm.IUserSession, req *pb.SmithyRiseReq) (cod
N: raise.N * req.Count,
})
if stove.Temperature+req.Count*raise_temperatureNum < (conf.MaxTemperature - raise_temperatureNum) {
if stove.Temperature+req.Count*raise_temperatureNum >= (conf.MaxTemperature - raise_temperatureNum) {
code = pb.ErrorCode_SmithyMaxTemperature
return
}

View File

@ -0,0 +1,42 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
package cfg
type GameBreakingbad struct {
_dataMap map[string]*GameBreakingbadData
_dataList []*GameBreakingbadData
}
func NewGameBreakingbad(_buf []map[string]interface{}) (*GameBreakingbad, error) {
_dataList := make([]*GameBreakingbadData, 0, len(_buf))
dataMap := make(map[string]*GameBreakingbadData)
for _, _ele_ := range _buf {
if _v, err2 := DeserializeGameBreakingbadData(_ele_); err2 != nil {
return nil, err2
} else {
_dataList = append(_dataList, _v)
dataMap[_v.Delicacies] = _v
}
}
return &GameBreakingbad{_dataList:_dataList, _dataMap:dataMap}, nil
}
func (table *GameBreakingbad) GetDataMap() map[string]*GameBreakingbadData {
return table._dataMap
}
func (table *GameBreakingbad) GetDataList() []*GameBreakingbadData {
return table._dataList
}
func (table *GameBreakingbad) Get(key string) *GameBreakingbadData {
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 GameBreakingbadData struct {
Delicacies string
Recipe []*Gameatr
Type int32
Flame int32
Unlockreward *Gameatn
}
const TypeId_GameBreakingbadData = -702491792
func (*GameBreakingbadData) GetTypeId() int32 {
return -702491792
}
func (_v *GameBreakingbadData)Deserialize(_buf map[string]interface{}) (err error) {
{ var _ok_ bool; if _v.Delicacies, _ok_ = _buf["delicacies"].(string); !_ok_ { err = errors.New("delicacies error"); return } }
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["recipe"].([]interface{}); !_ok_ { err = errors.New("recipe error"); return }
_v.Recipe = make([]*Gameatr, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ *Gameatr
{ 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 = DeserializeGameatr(_x_); err != nil { return } }
_v.Recipe = append(_v.Recipe, _list_v_)
}
}
{ 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["flame"].(float64); !_ok_ { err = errors.New("flame error"); return }; _v.Flame = int32(_tempNum_) }
{ var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["unlockreward"].(map[string]interface{}); !_ok_ { err = errors.New("unlockreward error"); return }; if _v.Unlockreward, err = DeserializeGameatn(_x_); err != nil { return } }
return
}
func DeserializeGameBreakingbadData(_buf map[string]interface{}) (*GameBreakingbadData, error) {
v := &GameBreakingbadData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -13,6 +13,7 @@ import "errors"
type GamePandamasJsData struct {
Id int32
UnlockCondition int32
UnlockConditiondes string
}
const TypeId_GamePandamasJsData = -1008362572
@ -24,6 +25,7 @@ func (*GamePandamasJsData) GetTypeId() int32 {
func (_v *GamePandamasJsData)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["unlock_condition"].(float64); !_ok_ { err = errors.New("unlock_condition error"); return }; _v.UnlockCondition = int32(_tempNum_) }
{var _ok_ bool; var __json_text__ map[string]interface{}; if __json_text__, _ok_ = _buf["unlock_conditiondes"].(map[string]interface{}) ; !_ok_ { err = errors.New("_v.UnlockConditiondes error"); return }; { var _ok_ bool; if _, _ok_ = __json_text__["key"].(string); !_ok_ { err = errors.New("key error"); return } }; { var _ok_ bool; if _v.UnlockConditiondes, _ok_ = __json_text__["text"].(string); !_ok_ { err = errors.New("text error"); return } } }
return
}

View File

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

View File

@ -0,0 +1,67 @@
//------------------------------------------------------------------------------
// <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 GameRdtaskNpcData struct {
Id int32
Datas []string
Event []int32
Goto int32
}
const TypeId_GameRdtaskNpcData = -2132874632
func (*GameRdtaskNpcData) GetTypeId() int32 {
return -2132874632
}
func (_v *GameRdtaskNpcData)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 _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["datas"].([]interface{}); !_ok_ { err = errors.New("datas error"); return }
_v.Datas = make([]string, 0, len(_arr_))
for _, _e_ := range _arr_ {
var _list_v_ string
{ if _list_v_, _ok_ = _e_.(string); !_ok_ { err = errors.New("_list_v_ error"); return } }
_v.Datas = append(_v.Datas, _list_v_)
}
}
{
var _arr_ []interface{}
var _ok_ bool
if _arr_, _ok_ = _buf["event"].([]interface{}); !_ok_ { err = errors.New("event error"); return }
_v.Event = 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.Event = append(_v.Event, _list_v_)
}
}
{ var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["goto"].(float64); !_ok_ { err = errors.New("goto error"); return }; _v.Goto = int32(_tempNum_) }
return
}
func DeserializeGameRdtaskNpcData(_buf map[string]interface{}) (*GameRdtaskNpcData, error) {
v := &GameRdtaskNpcData{}
if err := v.Deserialize(_buf); err == nil {
return v, nil
} else {
return nil, err
}
}

View File

@ -63,8 +63,7 @@ type Tables struct {
SeasonLoop *GameSeasonLoop
PagodaSeasonReward *GamePagodaSeasonReward
RdtaskCondi *GameRdtaskCondi
KungfuUnlock *GameKungfuUnlock
KungfuMasterworker *GameKungfuMasterworker
RdtaskNpc *GameRdtaskNpc
Gourmet *GameGourmet
Drop *GameDrop
VikingBoss *GameVikingBoss
@ -160,7 +159,6 @@ type Tables struct {
SmithyStoveV1 *GameSmithyStoveV1
SmithyTool *GameSmithyTool
SmithyIdTool *GameSmithyIdTool
pandsmasexp *Gamepandsmasexp
SmithyCustomer *GameSmithyCustomer
SmithyModelPool *GameSmithyModelPool
SmithyAtlas *GameSmithyAtlas
@ -179,6 +177,7 @@ type Tables struct {
PandamasTjjl *GamePandamasTjjl
PandamasYxjx *GamePandamasYxjx
BubbleGroup *GameBubbleGroup
Breakingbad *GameBreakingbad
}
func NewTables(loader JsonLoader) (*Tables, error) {
@ -498,16 +497,10 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.RdtaskCondi, err = NewGameRdtaskCondi(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_kungfuunlock") ; err != nil {
if buf, err = loader("game_rdtasknpc") ; err != nil {
return nil, err
}
if tables.KungfuUnlock, err = NewGameKungfuUnlock(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_kungfumasterworker") ; err != nil {
return nil, err
}
if tables.KungfuMasterworker, err = NewGameKungfuMasterworker(buf) ; err != nil {
if tables.RdtaskNpc, err = NewGameRdtaskNpc(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_gourmet") ; err != nil {
@ -1080,12 +1073,6 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.SmithyIdTool, err = NewGameSmithyIdTool(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_pandsmasexp") ; err != nil {
return nil, err
}
if tables.pandsmasexp, err = NewGamepandsmasexp(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_smithycustomer") ; err != nil {
return nil, err
}
@ -1194,5 +1181,11 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.BubbleGroup, err = NewGameBubbleGroup(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_breakingbad") ; err != nil {
return nil, err
}
if tables.Breakingbad, err = NewGameBreakingbad(buf) ; err != nil {
return nil, err
}
return tables, nil
}