石阵秘境协议
This commit is contained in:
parent
41d66bdc5f
commit
24e1525ec4
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -319,5 +319,26 @@
|
|||||||
},
|
},
|
||||||
"reword": [],
|
"reword": [],
|
||||||
"duration": 720
|
"duration": 720
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "PeackReward",
|
||||||
|
"title": {
|
||||||
|
"key": "",
|
||||||
|
"text": ""
|
||||||
|
},
|
||||||
|
"recipient": {
|
||||||
|
"key": "",
|
||||||
|
"text": ""
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"key": "mail_mail_content_16",
|
||||||
|
"text": "这是圣桃抽卡没有领取的奖励。"
|
||||||
|
},
|
||||||
|
"sender": {
|
||||||
|
"key": "",
|
||||||
|
"text": ""
|
||||||
|
},
|
||||||
|
"reword": [],
|
||||||
|
"duration": 720
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -130,5 +130,11 @@
|
|||||||
"open": true,
|
"open": true,
|
||||||
"routrules": "~/worker",
|
"routrules": "~/worker",
|
||||||
"describe": "好友排行"
|
"describe": "好友排行"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"msgid": "uniongve",
|
||||||
|
"open": true,
|
||||||
|
"routrules": "~/worker",
|
||||||
|
"describe": "工会boos战"
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -18,7 +18,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"min_exp": 60,
|
"min_exp": 60,
|
||||||
"placement_duration": 180,
|
"placement_duration": 10,
|
||||||
"prop_position": 0,
|
"prop_position": 0,
|
||||||
"photo_guide_unlocking": [
|
"photo_guide_unlocking": [
|
||||||
{
|
{
|
||||||
@ -48,7 +48,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"min_exp": 70,
|
"min_exp": 70,
|
||||||
"placement_duration": 210,
|
"placement_duration": 10,
|
||||||
"prop_position": 1,
|
"prop_position": 1,
|
||||||
"photo_guide_unlocking": [
|
"photo_guide_unlocking": [
|
||||||
{
|
{
|
||||||
@ -78,7 +78,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"min_exp": 80,
|
"min_exp": 80,
|
||||||
"placement_duration": 240,
|
"placement_duration": 10,
|
||||||
"prop_position": 1,
|
"prop_position": 1,
|
||||||
"photo_guide_unlocking": [
|
"photo_guide_unlocking": [
|
||||||
{
|
{
|
||||||
@ -108,7 +108,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"min_exp": 90,
|
"min_exp": 90,
|
||||||
"placement_duration": 270,
|
"placement_duration": 10,
|
||||||
"prop_position": 1,
|
"prop_position": 1,
|
||||||
"photo_guide_unlocking": [
|
"photo_guide_unlocking": [
|
||||||
{
|
{
|
||||||
@ -132,7 +132,7 @@
|
|||||||
},
|
},
|
||||||
"up_lv_consume": [],
|
"up_lv_consume": [],
|
||||||
"min_exp": 100,
|
"min_exp": 100,
|
||||||
"placement_duration": 300,
|
"placement_duration": 10,
|
||||||
"prop_position": 1,
|
"prop_position": 1,
|
||||||
"photo_guide_unlocking": [
|
"photo_guide_unlocking": [
|
||||||
{
|
{
|
||||||
|
@ -195,7 +195,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 80,
|
"cops_ps_ceiling": 80,
|
||||||
"hero_lv": 30
|
"hero_lv": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 12,
|
"lv": 12,
|
||||||
@ -214,7 +214,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 82,
|
"cops_ps_ceiling": 82,
|
||||||
"hero_lv": 30
|
"hero_lv": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 13,
|
"lv": 13,
|
||||||
@ -233,7 +233,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 84,
|
"cops_ps_ceiling": 84,
|
||||||
"hero_lv": 30
|
"hero_lv": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 14,
|
"lv": 14,
|
||||||
@ -252,7 +252,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 86,
|
"cops_ps_ceiling": 86,
|
||||||
"hero_lv": 30
|
"hero_lv": 20
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 15,
|
"lv": 15,
|
||||||
@ -271,7 +271,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 88,
|
"cops_ps_ceiling": 88,
|
||||||
"hero_lv": 30
|
"hero_lv": 25
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 16,
|
"lv": 16,
|
||||||
@ -290,7 +290,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 90,
|
"cops_ps_ceiling": 90,
|
||||||
"hero_lv": 30
|
"hero_lv": 25
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 17,
|
"lv": 17,
|
||||||
@ -309,7 +309,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 92,
|
"cops_ps_ceiling": 92,
|
||||||
"hero_lv": 30
|
"hero_lv": 25
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 18,
|
"lv": 18,
|
||||||
@ -328,7 +328,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 94,
|
"cops_ps_ceiling": 94,
|
||||||
"hero_lv": 30
|
"hero_lv": 25
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 19,
|
"lv": 19,
|
||||||
@ -347,7 +347,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 96,
|
"cops_ps_ceiling": 96,
|
||||||
"hero_lv": 30
|
"hero_lv": 25
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 20,
|
"lv": 20,
|
||||||
@ -366,7 +366,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 98,
|
"cops_ps_ceiling": 98,
|
||||||
"hero_lv": 30
|
"hero_lv": 25
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 21,
|
"lv": 21,
|
||||||
@ -385,7 +385,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 100,
|
"cops_ps_ceiling": 100,
|
||||||
"hero_lv": 40
|
"hero_lv": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 22,
|
"lv": 22,
|
||||||
@ -404,7 +404,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 102,
|
"cops_ps_ceiling": 102,
|
||||||
"hero_lv": 40
|
"hero_lv": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 23,
|
"lv": 23,
|
||||||
@ -423,7 +423,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 104,
|
"cops_ps_ceiling": 104,
|
||||||
"hero_lv": 40
|
"hero_lv": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 24,
|
"lv": 24,
|
||||||
@ -442,7 +442,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 106,
|
"cops_ps_ceiling": 106,
|
||||||
"hero_lv": 40
|
"hero_lv": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 25,
|
"lv": 25,
|
||||||
@ -461,7 +461,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 108,
|
"cops_ps_ceiling": 108,
|
||||||
"hero_lv": 40
|
"hero_lv": 30
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 26,
|
"lv": 26,
|
||||||
@ -480,7 +480,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 110,
|
"cops_ps_ceiling": 110,
|
||||||
"hero_lv": 40
|
"hero_lv": 35
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 27,
|
"lv": 27,
|
||||||
@ -499,7 +499,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 112,
|
"cops_ps_ceiling": 112,
|
||||||
"hero_lv": 40
|
"hero_lv": 35
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 28,
|
"lv": 28,
|
||||||
@ -518,7 +518,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 114,
|
"cops_ps_ceiling": 114,
|
||||||
"hero_lv": 40
|
"hero_lv": 35
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 29,
|
"lv": 29,
|
||||||
@ -537,7 +537,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 116,
|
"cops_ps_ceiling": 116,
|
||||||
"hero_lv": 40
|
"hero_lv": 35
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 30,
|
"lv": 30,
|
||||||
@ -556,7 +556,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 118,
|
"cops_ps_ceiling": 118,
|
||||||
"hero_lv": 40
|
"hero_lv": 35
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 31,
|
"lv": 31,
|
||||||
@ -575,7 +575,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 120,
|
"cops_ps_ceiling": 120,
|
||||||
"hero_lv": 50
|
"hero_lv": 40
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 32,
|
"lv": 32,
|
||||||
@ -594,7 +594,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 122,
|
"cops_ps_ceiling": 122,
|
||||||
"hero_lv": 50
|
"hero_lv": 40
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 33,
|
"lv": 33,
|
||||||
@ -613,7 +613,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 124,
|
"cops_ps_ceiling": 124,
|
||||||
"hero_lv": 50
|
"hero_lv": 40
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 34,
|
"lv": 34,
|
||||||
@ -632,7 +632,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 126,
|
"cops_ps_ceiling": 126,
|
||||||
"hero_lv": 50
|
"hero_lv": 40
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 35,
|
"lv": 35,
|
||||||
@ -651,7 +651,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 128,
|
"cops_ps_ceiling": 128,
|
||||||
"hero_lv": 50
|
"hero_lv": 40
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 36,
|
"lv": 36,
|
||||||
@ -670,7 +670,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 130,
|
"cops_ps_ceiling": 130,
|
||||||
"hero_lv": 50
|
"hero_lv": 45
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 37,
|
"lv": 37,
|
||||||
@ -689,7 +689,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 132,
|
"cops_ps_ceiling": 132,
|
||||||
"hero_lv": 50
|
"hero_lv": 45
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 38,
|
"lv": 38,
|
||||||
@ -708,7 +708,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 134,
|
"cops_ps_ceiling": 134,
|
||||||
"hero_lv": 50
|
"hero_lv": 45
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 39,
|
"lv": 39,
|
||||||
@ -727,7 +727,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 136,
|
"cops_ps_ceiling": 136,
|
||||||
"hero_lv": 50
|
"hero_lv": 45
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 40,
|
"lv": 40,
|
||||||
@ -746,7 +746,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 138,
|
"cops_ps_ceiling": 138,
|
||||||
"hero_lv": 50
|
"hero_lv": 45
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 41,
|
"lv": 41,
|
||||||
@ -765,7 +765,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 140,
|
"cops_ps_ceiling": 140,
|
||||||
"hero_lv": 60
|
"hero_lv": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 42,
|
"lv": 42,
|
||||||
@ -784,7 +784,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 142,
|
"cops_ps_ceiling": 142,
|
||||||
"hero_lv": 60
|
"hero_lv": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 43,
|
"lv": 43,
|
||||||
@ -803,7 +803,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 144,
|
"cops_ps_ceiling": 144,
|
||||||
"hero_lv": 60
|
"hero_lv": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 44,
|
"lv": 44,
|
||||||
@ -822,7 +822,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 146,
|
"cops_ps_ceiling": 146,
|
||||||
"hero_lv": 60
|
"hero_lv": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 45,
|
"lv": 45,
|
||||||
@ -841,7 +841,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 148,
|
"cops_ps_ceiling": 148,
|
||||||
"hero_lv": 60
|
"hero_lv": 50
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 46,
|
"lv": 46,
|
||||||
@ -860,7 +860,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 150,
|
"cops_ps_ceiling": 150,
|
||||||
"hero_lv": 60
|
"hero_lv": 55
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 47,
|
"lv": 47,
|
||||||
@ -879,7 +879,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 152,
|
"cops_ps_ceiling": 152,
|
||||||
"hero_lv": 60
|
"hero_lv": 55
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 48,
|
"lv": 48,
|
||||||
@ -898,7 +898,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 154,
|
"cops_ps_ceiling": 154,
|
||||||
"hero_lv": 60
|
"hero_lv": 55
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 49,
|
"lv": 49,
|
||||||
@ -917,7 +917,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 156,
|
"cops_ps_ceiling": 156,
|
||||||
"hero_lv": 60
|
"hero_lv": 55
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 50,
|
"lv": 50,
|
||||||
@ -936,7 +936,7 @@
|
|||||||
],
|
],
|
||||||
"ps_ceiling": 180,
|
"ps_ceiling": 180,
|
||||||
"cops_ps_ceiling": 158,
|
"cops_ps_ceiling": 158,
|
||||||
"hero_lv": 60
|
"hero_lv": 55
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"lv": 51,
|
"lv": 51,
|
||||||
|
@ -493,5 +493,16 @@
|
|||||||
"key": "ruledesc_ruledesc_content_45",
|
"key": "ruledesc_ruledesc_content_45",
|
||||||
"text": "这里可以使用食材烹饪出各种各样的食物。<br>食材组合的不同,烹饪出来的食物也完全不同。<br>添加的食物越多,能煮出好食物的概率越高,但要小心错误的食材组合会完全烹饪不出好的食物。只有正确的食材组合才能烹饪出美味佳肴。"
|
"text": "这里可以使用食材烹饪出各种各样的食物。<br>食材组合的不同,烹饪出来的食物也完全不同。<br>添加的食物越多,能煮出好食物的概率越高,但要小心错误的食材组合会完全烹饪不出好的食物。只有正确的食材组合才能烹饪出美味佳肴。"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": 10046,
|
||||||
|
"title": {
|
||||||
|
"key": "ruledesc_ruledesc_title_46",
|
||||||
|
"text": "护符水晶说明"
|
||||||
|
},
|
||||||
|
"content": {
|
||||||
|
"key": "ruledesc_ruledesc_content_46",
|
||||||
|
"text": "这里可以使用主角月光与水晶的力量,迅速提升守护者的等级。<br>水晶会挑选你等级最高的5位守护者为核心,在右侧上阵守护者将会把等级提升至五位最高的守护者中等级最低的那一位。<br>上阵守护者槽位由玩家等级解锁,每一个槽位只能上阵相应品质的守护者。<br>卸下守护者后槽位会进入不稳定状态,稳定槽位需要24小时或者200钻石迅速稳定。"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
@ -1056,39 +1056,33 @@ func (this *Hero) CheckPeachReward(session comm.IUserSession, ctime int64) {
|
|||||||
var (
|
var (
|
||||||
reward []*cfg.Gameatn // 奖励
|
reward []*cfg.Gameatn // 奖励
|
||||||
)
|
)
|
||||||
// 校验时间 是否在活动范围
|
|
||||||
drawConf, err := this.configure.GetHeroDrawConfigByType(comm.DrawCardType0)
|
|
||||||
if err != nil {
|
|
||||||
|
|
||||||
return
|
if drawConf, err := this.configure.GetHeroDrawConfigByType(comm.DrawCardType0); err == nil {
|
||||||
}
|
if drawConf.Etime != -1 {
|
||||||
if drawConf.Etime != -1 {
|
if ctime+int64(drawConf.Etime*3600*24) < configure.Now().Unix() { // 校验时间 是否在活动范围
|
||||||
if ctime+int64(drawConf.Etime*3600*24) < configure.Now().Unix() {
|
heroRecord, _ := this.modelRecord.GetHeroRecord(session.GetUserId())
|
||||||
heroRecord, _ := this.modelRecord.GetHeroRecord(session.GetUserId())
|
if !heroRecord.Peachreward {
|
||||||
if !heroRecord.Peachreward {
|
allreawd := this.configure.GetAllDrawRewardConf()
|
||||||
allreawd := this.configure.GetAllDrawRewardConf()
|
for k, v := range allreawd {
|
||||||
|
if _, ok := heroRecord.Peach[k]; !ok {
|
||||||
|
if v1, ok := heroRecord.Race[comm.DrawCardType0]; ok {
|
||||||
|
if v1 > v.Num { //可以领取
|
||||||
|
|
||||||
for k, v := range allreawd {
|
reward = append(reward, v.Reward)
|
||||||
if _, ok := heroRecord.Peach[k]; !ok {
|
}
|
||||||
if v1, ok := heroRecord.Race[comm.DrawCardType0]; ok {
|
|
||||||
if v1 > v.Num { //可以领取
|
|
||||||
|
|
||||||
reward = append(reward, v.Reward)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
heroRecord.Peachreward = true
|
||||||
heroRecord.Peachreward = true
|
update := make(map[string]interface{})
|
||||||
update := make(map[string]interface{})
|
update["peachreward"] = heroRecord.Peachreward
|
||||||
update["peachreward"] = heroRecord.Peachreward
|
this.modelRecord.ChangeHeroRecord(session.GetUserId(), update)
|
||||||
this.modelRecord.ChangeHeroRecord(session.GetUserId(), update)
|
// 发邮件
|
||||||
// 发邮件
|
if len(reward) > 0 {
|
||||||
if len(reward) > 0 {
|
this.mail.SendMailByUID(session.GetUserId(), comm.MailPeackReward, reward, []string{})
|
||||||
this.mail.SendMailByUID(session.GetUserId(), comm.MailPeackReward, reward, []string{})
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
|
332
pb/dungeon_db.pb.go
Normal file
332
pb/dungeon_db.pb.go
Normal file
@ -0,0 +1,332 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: dungeon/dungeon_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 RoomData struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Event map[int32]bool `protobuf:"bytes,1,rep,name=event,proto3" json:"event" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` //房间的事件信息 true 表示已完成
|
||||||
|
CurRoomIndes int32 `protobuf:"varint,2,opt,name=curRoomIndes,proto3" json:"curRoomIndes"` // 当前房间索引 初始 0 每通关一次+1
|
||||||
|
Portal []int32 `protobuf:"varint,3,rep,packed,name=portal,proto3" json:"portal"` // 传送门id
|
||||||
|
Selectbuff []int32 `protobuf:"varint,4,rep,packed,name=selectbuff,proto3" json:"selectbuff"` // 给前端显示的buff 组
|
||||||
|
Curselectbuff int32 `protobuf:"varint,5,opt,name=curselectbuff,proto3" json:"curselectbuff"` // 当前已经选择的buf
|
||||||
|
Group map[int32]int32 `protobuf:"bytes,6,rep,name=group,proto3" json:"group" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 事件组
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RoomData) Reset() {
|
||||||
|
*x = RoomData{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dungeon_dungeon_db_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RoomData) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*RoomData) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *RoomData) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dungeon_dungeon_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 RoomData.ProtoReflect.Descriptor instead.
|
||||||
|
func (*RoomData) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dungeon_dungeon_db_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RoomData) GetEvent() map[int32]bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.Event
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RoomData) GetCurRoomIndes() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.CurRoomIndes
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RoomData) GetPortal() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Portal
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RoomData) GetSelectbuff() []int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Selectbuff
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RoomData) GetCurselectbuff() int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Curselectbuff
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *RoomData) GetGroup() map[int32]int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Group
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type DBDungeon struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
||||||
|
Uid string `protobuf:"bytes,2,opt,name=uid,proto3" json:"uid"`
|
||||||
|
Rooms map[int32]*RoomData `protobuf:"bytes,3,rep,name=rooms,proto3" json:"rooms" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||||
|
Buff map[int32]int32 `protobuf:"bytes,4,rep,name=buff,proto3" json:"buff" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` // 获得buff value
|
||||||
|
Hero map[string]*DBHero `protobuf:"bytes,5,rep,name=hero,proto3" json:"hero" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 英雄信息
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDungeon) Reset() {
|
||||||
|
*x = DBDungeon{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dungeon_dungeon_db_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDungeon) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DBDungeon) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DBDungeon) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dungeon_dungeon_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 DBDungeon.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DBDungeon) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dungeon_dungeon_db_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDungeon) GetId() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Id
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDungeon) GetUid() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.Uid
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDungeon) GetRooms() map[int32]*RoomData {
|
||||||
|
if x != nil {
|
||||||
|
return x.Rooms
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDungeon) GetBuff() map[int32]int32 {
|
||||||
|
if x != nil {
|
||||||
|
return x.Buff
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DBDungeon) GetHero() map[string]*DBHero {
|
||||||
|
if x != nil {
|
||||||
|
return x.Hero
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_dungeon_dungeon_db_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_dungeon_dungeon_db_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x18, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x2f, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f,
|
||||||
|
0x6e, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x68, 0x65, 0x72, 0x6f,
|
||||||
|
0x2f, 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8,
|
||||||
|
0x02, 0x0a, 0x08, 0x52, 0x6f, 0x6f, 0x6d, 0x44, 0x61, 0x74, 0x61, 0x12, 0x2a, 0x0a, 0x05, 0x65,
|
||||||
|
0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x52, 0x6f, 0x6f,
|
||||||
|
0x6d, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
||||||
|
0x52, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x63, 0x75, 0x72, 0x52, 0x6f,
|
||||||
|
0x6f, 0x6d, 0x49, 0x6e, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x63,
|
||||||
|
0x75, 0x72, 0x52, 0x6f, 0x6f, 0x6d, 0x49, 0x6e, 0x64, 0x65, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x70,
|
||||||
|
0x6f, 0x72, 0x74, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x06, 0x70, 0x6f, 0x72,
|
||||||
|
0x74, 0x61, 0x6c, 0x12, 0x1e, 0x0a, 0x0a, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x62, 0x75, 0x66,
|
||||||
|
0x66, 0x18, 0x04, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x62,
|
||||||
|
0x75, 0x66, 0x66, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x73, 0x65, 0x6c, 0x65, 0x63, 0x74,
|
||||||
|
0x62, 0x75, 0x66, 0x66, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x63, 0x75, 0x72, 0x73,
|
||||||
|
0x65, 0x6c, 0x65, 0x63, 0x74, 0x62, 0x75, 0x66, 0x66, 0x12, 0x2a, 0x0a, 0x05, 0x67, 0x72, 0x6f,
|
||||||
|
0x75, 0x70, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x44,
|
||||||
|
0x61, 0x74, 0x61, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05,
|
||||||
|
0x67, 0x72, 0x6f, 0x75, 0x70, 0x1a, 0x38, 0x0a, 0x0a, 0x45, 0x76, 0x65, 0x6e, 0x74, 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, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a,
|
||||||
|
0x38, 0x0a, 0x0a, 0x47, 0x72, 0x6f, 0x75, 0x70, 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, 0xee, 0x02, 0x0a, 0x09, 0x44, 0x42,
|
||||||
|
0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 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, 0x2b, 0x0a, 0x05, 0x72, 0x6f, 0x6f,
|
||||||
|
0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x44, 0x42, 0x44, 0x75, 0x6e,
|
||||||
|
0x67, 0x65, 0x6f, 0x6e, 0x2e, 0x52, 0x6f, 0x6f, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
|
||||||
|
0x05, 0x72, 0x6f, 0x6f, 0x6d, 0x73, 0x12, 0x28, 0x0a, 0x04, 0x62, 0x75, 0x66, 0x66, 0x18, 0x04,
|
||||||
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x44, 0x42, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e,
|
||||||
|
0x2e, 0x42, 0x75, 0x66, 0x66, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x62, 0x75, 0x66, 0x66,
|
||||||
|
0x12, 0x28, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14,
|
||||||
|
0x2e, 0x44, 0x42, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x2e, 0x48, 0x65, 0x72, 0x6f, 0x45,
|
||||||
|
0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x1a, 0x43, 0x0a, 0x0a, 0x52, 0x6f,
|
||||||
|
0x6f, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
|
||||||
|
0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61,
|
||||||
|
0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x09, 0x2e, 0x52, 0x6f, 0x6f, 0x6d,
|
||||||
|
0x44, 0x61, 0x74, 0x61, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a,
|
||||||
|
0x37, 0x0a, 0x09, 0x42, 0x75, 0x66, 0x66, 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, 0x40, 0x0a, 0x09, 0x48, 0x65, 0x72, 0x6f,
|
||||||
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
|
||||||
|
0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 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_dungeon_dungeon_db_proto_rawDescOnce sync.Once
|
||||||
|
file_dungeon_dungeon_db_proto_rawDescData = file_dungeon_dungeon_db_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_dungeon_dungeon_db_proto_rawDescGZIP() []byte {
|
||||||
|
file_dungeon_dungeon_db_proto_rawDescOnce.Do(func() {
|
||||||
|
file_dungeon_dungeon_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_dungeon_dungeon_db_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_dungeon_dungeon_db_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_dungeon_dungeon_db_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||||
|
var file_dungeon_dungeon_db_proto_goTypes = []interface{}{
|
||||||
|
(*RoomData)(nil), // 0: RoomData
|
||||||
|
(*DBDungeon)(nil), // 1: DBDungeon
|
||||||
|
nil, // 2: RoomData.EventEntry
|
||||||
|
nil, // 3: RoomData.GroupEntry
|
||||||
|
nil, // 4: DBDungeon.RoomsEntry
|
||||||
|
nil, // 5: DBDungeon.BuffEntry
|
||||||
|
nil, // 6: DBDungeon.HeroEntry
|
||||||
|
(*DBHero)(nil), // 7: DBHero
|
||||||
|
}
|
||||||
|
var file_dungeon_dungeon_db_proto_depIdxs = []int32{
|
||||||
|
2, // 0: RoomData.event:type_name -> RoomData.EventEntry
|
||||||
|
3, // 1: RoomData.group:type_name -> RoomData.GroupEntry
|
||||||
|
4, // 2: DBDungeon.rooms:type_name -> DBDungeon.RoomsEntry
|
||||||
|
5, // 3: DBDungeon.buff:type_name -> DBDungeon.BuffEntry
|
||||||
|
6, // 4: DBDungeon.hero:type_name -> DBDungeon.HeroEntry
|
||||||
|
0, // 5: DBDungeon.RoomsEntry.value:type_name -> RoomData
|
||||||
|
7, // 6: DBDungeon.HeroEntry.value:type_name -> DBHero
|
||||||
|
7, // [7:7] is the sub-list for method output_type
|
||||||
|
7, // [7:7] is the sub-list for method input_type
|
||||||
|
7, // [7:7] is the sub-list for extension type_name
|
||||||
|
7, // [7:7] is the sub-list for extension extendee
|
||||||
|
0, // [0:7] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_dungeon_dungeon_db_proto_init() }
|
||||||
|
func file_dungeon_dungeon_db_proto_init() {
|
||||||
|
if File_dungeon_dungeon_db_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_hero_hero_db_proto_init()
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_dungeon_dungeon_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*RoomData); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dungeon_dungeon_db_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DBDungeon); 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_dungeon_dungeon_db_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 7,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_dungeon_dungeon_db_proto_goTypes,
|
||||||
|
DependencyIndexes: file_dungeon_dungeon_db_proto_depIdxs,
|
||||||
|
MessageInfos: file_dungeon_dungeon_db_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_dungeon_dungeon_db_proto = out.File
|
||||||
|
file_dungeon_dungeon_db_proto_rawDesc = nil
|
||||||
|
file_dungeon_dungeon_db_proto_goTypes = nil
|
||||||
|
file_dungeon_dungeon_db_proto_depIdxs = nil
|
||||||
|
}
|
316
pb/dungeon_msg.pb.go
Normal file
316
pb/dungeon_msg.pb.go
Normal file
@ -0,0 +1,316 @@
|
|||||||
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
|
// versions:
|
||||||
|
// protoc-gen-go v1.28.0
|
||||||
|
// protoc v3.20.0
|
||||||
|
// source: dungeon/dungeon_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 DungeonGetListReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonGetListReq) Reset() {
|
||||||
|
*x = DungeonGetListReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dungeon_dungeon_msg_proto_msgTypes[0]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonGetListReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DungeonGetListReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DungeonGetListReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dungeon_dungeon_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 DungeonGetListReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DungeonGetListReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dungeon_dungeon_msg_proto_rawDescGZIP(), []int{0}
|
||||||
|
}
|
||||||
|
|
||||||
|
type DungeonGetListResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Data *DBDungeon `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonGetListResp) Reset() {
|
||||||
|
*x = DungeonGetListResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dungeon_dungeon_msg_proto_msgTypes[1]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonGetListResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DungeonGetListResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DungeonGetListResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dungeon_dungeon_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 DungeonGetListResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DungeonGetListResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dungeon_dungeon_msg_proto_rawDescGZIP(), []int{1}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonGetListResp) GetData() *DBDungeon {
|
||||||
|
if x != nil {
|
||||||
|
return x.Data
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
type DungeonSelectReq struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonSelectReq) Reset() {
|
||||||
|
*x = DungeonSelectReq{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dungeon_dungeon_msg_proto_msgTypes[2]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonSelectReq) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DungeonSelectReq) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DungeonSelectReq) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dungeon_dungeon_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 DungeonSelectReq.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DungeonSelectReq) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dungeon_dungeon_msg_proto_rawDescGZIP(), []int{2}
|
||||||
|
}
|
||||||
|
|
||||||
|
type DungeonSelectResp struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
Data *DBDungeon `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonSelectResp) Reset() {
|
||||||
|
*x = DungeonSelectResp{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_dungeon_dungeon_msg_proto_msgTypes[3]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonSelectResp) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DungeonSelectResp) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DungeonSelectResp) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_dungeon_dungeon_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 DungeonSelectResp.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DungeonSelectResp) Descriptor() ([]byte, []int) {
|
||||||
|
return file_dungeon_dungeon_msg_proto_rawDescGZIP(), []int{3}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DungeonSelectResp) GetData() *DBDungeon {
|
||||||
|
if x != nil {
|
||||||
|
return x.Data
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
var File_dungeon_dungeon_msg_proto protoreflect.FileDescriptor
|
||||||
|
|
||||||
|
var file_dungeon_dungeon_msg_proto_rawDesc = []byte{
|
||||||
|
0x0a, 0x19, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x2f, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f,
|
||||||
|
0x6e, 0x5f, 0x6d, 0x73, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x64, 0x75, 0x6e,
|
||||||
|
0x67, 0x65, 0x6f, 0x6e, 0x2f, 0x64, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x5f, 0x64, 0x62, 0x2e,
|
||||||
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x13, 0x0a, 0x11, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e,
|
||||||
|
0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x22, 0x34, 0x0a, 0x12, 0x44, 0x75,
|
||||||
|
0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70,
|
||||||
|
0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a,
|
||||||
|
0x2e, 0x44, 0x42, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61,
|
||||||
|
0x22, 0x12, 0x0a, 0x10, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x53, 0x65, 0x6c, 0x65, 0x63,
|
||||||
|
0x74, 0x52, 0x65, 0x71, 0x22, 0x33, 0x0a, 0x11, 0x44, 0x75, 0x6e, 0x67, 0x65, 0x6f, 0x6e, 0x53,
|
||||||
|
0x65, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
||||||
|
0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x44, 0x75, 0x6e, 0x67,
|
||||||
|
0x65, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70,
|
||||||
|
0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
file_dungeon_dungeon_msg_proto_rawDescOnce sync.Once
|
||||||
|
file_dungeon_dungeon_msg_proto_rawDescData = file_dungeon_dungeon_msg_proto_rawDesc
|
||||||
|
)
|
||||||
|
|
||||||
|
func file_dungeon_dungeon_msg_proto_rawDescGZIP() []byte {
|
||||||
|
file_dungeon_dungeon_msg_proto_rawDescOnce.Do(func() {
|
||||||
|
file_dungeon_dungeon_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_dungeon_dungeon_msg_proto_rawDescData)
|
||||||
|
})
|
||||||
|
return file_dungeon_dungeon_msg_proto_rawDescData
|
||||||
|
}
|
||||||
|
|
||||||
|
var file_dungeon_dungeon_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||||
|
var file_dungeon_dungeon_msg_proto_goTypes = []interface{}{
|
||||||
|
(*DungeonGetListReq)(nil), // 0: DungeonGetListReq
|
||||||
|
(*DungeonGetListResp)(nil), // 1: DungeonGetListResp
|
||||||
|
(*DungeonSelectReq)(nil), // 2: DungeonSelectReq
|
||||||
|
(*DungeonSelectResp)(nil), // 3: DungeonSelectResp
|
||||||
|
(*DBDungeon)(nil), // 4: DBDungeon
|
||||||
|
}
|
||||||
|
var file_dungeon_dungeon_msg_proto_depIdxs = []int32{
|
||||||
|
4, // 0: DungeonGetListResp.data:type_name -> DBDungeon
|
||||||
|
4, // 1: DungeonSelectResp.data:type_name -> DBDungeon
|
||||||
|
2, // [2:2] is the sub-list for method output_type
|
||||||
|
2, // [2:2] is the sub-list for method input_type
|
||||||
|
2, // [2:2] is the sub-list for extension type_name
|
||||||
|
2, // [2:2] is the sub-list for extension extendee
|
||||||
|
0, // [0:2] is the sub-list for field type_name
|
||||||
|
}
|
||||||
|
|
||||||
|
func init() { file_dungeon_dungeon_msg_proto_init() }
|
||||||
|
func file_dungeon_dungeon_msg_proto_init() {
|
||||||
|
if File_dungeon_dungeon_msg_proto != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
file_dungeon_dungeon_db_proto_init()
|
||||||
|
if !protoimpl.UnsafeEnabled {
|
||||||
|
file_dungeon_dungeon_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DungeonGetListReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dungeon_dungeon_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DungeonGetListResp); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dungeon_dungeon_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DungeonSelectReq); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_dungeon_dungeon_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DungeonSelectResp); 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_dungeon_dungeon_msg_proto_rawDesc,
|
||||||
|
NumEnums: 0,
|
||||||
|
NumMessages: 4,
|
||||||
|
NumExtensions: 0,
|
||||||
|
NumServices: 0,
|
||||||
|
},
|
||||||
|
GoTypes: file_dungeon_dungeon_msg_proto_goTypes,
|
||||||
|
DependencyIndexes: file_dungeon_dungeon_msg_proto_depIdxs,
|
||||||
|
MessageInfos: file_dungeon_dungeon_msg_proto_msgTypes,
|
||||||
|
}.Build()
|
||||||
|
File_dungeon_dungeon_msg_proto = out.File
|
||||||
|
file_dungeon_dungeon_msg_proto_rawDesc = nil
|
||||||
|
file_dungeon_dungeon_msg_proto_goTypes = nil
|
||||||
|
file_dungeon_dungeon_msg_proto_depIdxs = nil
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user