This commit is contained in:
xiekaidong 2023-06-12 15:21:26 +08:00
parent bf1e7b7885
commit 5be91b491c
17 changed files with 3749 additions and 1191 deletions

View File

@ -111,6 +111,8 @@ function ConfigManager:preLoadConfig()
end
handleMonsterGrow("monster_chapter")
handleMonsterGrow("monster_daily_challenge")
handleMonsterGrow("monster_dungeon_gold")
handleMonsterGrow("monster_dungeon_shards")
self.configs["monster"] = {
data = monsterFullData,

View File

@ -1,6 +1,6 @@
local chapter_board_dungeon_gold = {
[1]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -200,7 +200,7 @@ local chapter_board_dungeon_gold = {
}
},
[2]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -400,7 +400,7 @@ local chapter_board_dungeon_gold = {
}
},
[3]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -600,7 +600,7 @@ local chapter_board_dungeon_gold = {
}
},
[4]={
["board_daily_challenge"]={
["board"]={
{
0,
3
@ -800,7 +800,7 @@ local chapter_board_dungeon_gold = {
}
},
[5]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -1000,7 +1000,7 @@ local chapter_board_dungeon_gold = {
}
},
[6]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -1200,7 +1200,7 @@ local chapter_board_dungeon_gold = {
}
},
[7]={
["board_daily_challenge"]={
["board"]={
{
21,
1
@ -1400,7 +1400,7 @@ local chapter_board_dungeon_gold = {
}
},
[8]={
["board_daily_challenge"]={
["board"]={
{
3,
0
@ -1600,7 +1600,7 @@ local chapter_board_dungeon_gold = {
}
},
[9]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -1800,7 +1800,7 @@ local chapter_board_dungeon_gold = {
}
},
[10]={
["board_daily_challenge"]={
["board"]={
{
20,
0
@ -2000,7 +2000,7 @@ local chapter_board_dungeon_gold = {
}
},
[11]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -2200,7 +2200,7 @@ local chapter_board_dungeon_gold = {
}
},
[12]={
["board_daily_challenge"]={
["board"]={
{
20,
0
@ -2400,7 +2400,7 @@ local chapter_board_dungeon_gold = {
}
},
[13]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -2600,7 +2600,7 @@ local chapter_board_dungeon_gold = {
}
},
[14]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -2800,7 +2800,7 @@ local chapter_board_dungeon_gold = {
}
},
[15]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -3000,7 +3000,7 @@ local chapter_board_dungeon_gold = {
}
},
[16]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -3200,7 +3200,7 @@ local chapter_board_dungeon_gold = {
}
},
[17]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -3400,7 +3400,7 @@ local chapter_board_dungeon_gold = {
}
},
[18]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -3600,7 +3600,7 @@ local chapter_board_dungeon_gold = {
}
},
[19]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -3800,7 +3800,7 @@ local chapter_board_dungeon_gold = {
}
},
[20]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -4000,7 +4000,7 @@ local chapter_board_dungeon_gold = {
}
},
[21]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -4200,7 +4200,7 @@ local chapter_board_dungeon_gold = {
}
},
[22]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -4400,7 +4400,7 @@ local chapter_board_dungeon_gold = {
}
},
[23]={
["board_daily_challenge"]={
["board"]={
{
32,
0
@ -4600,7 +4600,7 @@ local chapter_board_dungeon_gold = {
}
},
[24]={
["board_daily_challenge"]={
["board"]={
{
31,
0
@ -4800,7 +4800,7 @@ local chapter_board_dungeon_gold = {
}
},
[25]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -5000,7 +5000,7 @@ local chapter_board_dungeon_gold = {
}
},
[26]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -5200,7 +5200,7 @@ local chapter_board_dungeon_gold = {
}
},
[27]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -5400,7 +5400,7 @@ local chapter_board_dungeon_gold = {
}
},
[28]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -5600,7 +5600,7 @@ local chapter_board_dungeon_gold = {
}
},
[29]={
["board_daily_challenge"]={
["board"]={
{
1,
0
@ -5800,7 +5800,7 @@ local chapter_board_dungeon_gold = {
}
},
[30]={
["board_daily_challenge"]={
["board"]={
{
1,
0

File diff suppressed because it is too large Load Diff

View File

@ -3,9 +3,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=1,
["monster_base"]=20003,
["hp"]=8000000,
["board"]={
1
},
["monster"]={
105
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -27,9 +30,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=2,
["monster_base"]=20003,
["hp"]=11000000,
["board"]={
2
},
["monster"]={
205
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -51,9 +57,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=3,
["monster_base"]=20003,
["hp"]=12000000,
["board"]={
3
},
["monster"]={
305
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -75,9 +84,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=4,
["monster_base"]=20003,
["hp"]=15000000,
["board"]={
4
},
["monster"]={
405
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -99,9 +111,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=5,
["monster_base"]=20003,
["hp"]=23000000,
["board"]={
5
},
["monster"]={
505
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -123,9 +138,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=6,
["monster_base"]=20003,
["hp"]=15000000,
["board"]={
6
},
["monster"]={
605
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -147,9 +165,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=7,
["monster_base"]=20003,
["hp"]=17000000,
["board"]={
7
},
["monster"]={
705
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -171,9 +192,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=8,
["monster_base"]=20003,
["hp"]=20000000,
["board"]={
8
},
["monster"]={
805
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -195,9 +219,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=9,
["monster_base"]=20003,
["hp"]=22000000,
["board"]={
9
},
["monster"]={
905
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -219,9 +246,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=10,
["monster_base"]=20003,
["hp"]=42000000,
["board"]={
10
},
["monster"]={
1005
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -243,9 +273,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=11,
["monster_base"]=20003,
["hp"]=23000000,
["board"]={
11
},
["monster"]={
1105
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -267,9 +300,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=12,
["monster_base"]=20003,
["hp"]=28000000,
["board"]={
12
},
["monster"]={
1205
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -291,9 +327,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=13,
["monster_base"]=20003,
["hp"]=31000000,
["board"]={
13
},
["monster"]={
1305
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -315,9 +354,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=14,
["monster_base"]=20003,
["hp"]=35000000,
["board"]={
14
},
["monster"]={
1405
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -339,9 +381,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=15,
["monster_base"]=20003,
["hp"]=52000000,
["board"]={
15
},
["monster"]={
1505
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -363,9 +408,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=16,
["monster_base"]=20003,
["hp"]=40000000,
["board"]={
16
},
["monster"]={
1605
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -387,9 +435,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=17,
["monster_base"]=20003,
["hp"]=44000000,
["board"]={
17
},
["monster"]={
1705
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -411,9 +462,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=18,
["monster_base"]=20003,
["hp"]=50000000,
["board"]={
18
},
["monster"]={
1805
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -435,9 +489,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=19,
["monster_base"]=20003,
["hp"]=54000000,
["board"]={
19
},
["monster"]={
1905
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -459,9 +516,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=20,
["monster_base"]=20003,
["hp"]=90000000,
["board"]={
20
},
["monster"]={
2005
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -483,9 +543,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=21,
["monster_base"]=20003,
["hp"]=8000000,
["board"]={
21
},
["monster"]={
2105
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -507,9 +570,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=22,
["monster_base"]=20003,
["hp"]=11000000,
["board"]={
22
},
["monster"]={
2205
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -531,9 +597,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=23,
["monster_base"]=20003,
["hp"]=12000000,
["board"]={
23
},
["monster"]={
2305
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -555,9 +624,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=24,
["monster_base"]=20003,
["hp"]=15000000,
["board"]={
24
},
["monster"]={
2405
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -579,9 +651,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=25,
["monster_base"]=20003,
["hp"]=23000000,
["board"]={
25
},
["monster"]={
2505
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -603,9 +678,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=26,
["monster_base"]=20003,
["hp"]=15000000,
["board"]={
26
},
["monster"]={
2605
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -627,9 +705,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=27,
["monster_base"]=20003,
["hp"]=17000000,
["board"]={
27
},
["monster"]={
2705
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -651,9 +732,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=28,
["monster_base"]=20003,
["hp"]=20000000,
["board"]={
28
},
["monster"]={
2805
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -675,9 +759,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=29,
["monster_base"]=20003,
["hp"]=22000000,
["board"]={
29
},
["monster"]={
2905
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",
@ -699,9 +786,12 @@ local chapter_dungeon_gold = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_gold"]=30,
["monster_base"]=20003,
["hp"]=42000000,
["board"]={
30
},
["monster"]={
3005
},
["percent_reward"]={
["type"]=1,
["type_for_nothing"]="Vw==",

View File

@ -3,7 +3,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
1,
2,
3,
@ -101,7 +101,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
6,
7,
8,
@ -199,7 +199,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
11,
12,
13,
@ -297,7 +297,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
16,
17,
18,
@ -395,7 +395,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
21,
22,
23,
@ -493,7 +493,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
26,
27,
28,
@ -591,7 +591,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
31,
32,
33,
@ -689,7 +689,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
36,
37,
38,
@ -787,7 +787,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
41,
42,
43,
@ -885,7 +885,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
46,
47,
48,
@ -983,7 +983,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
51,
52,
53,
@ -1081,7 +1081,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
56,
57,
58,
@ -1179,7 +1179,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
61,
62,
63,
@ -1277,7 +1277,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
66,
67,
68,
@ -1375,7 +1375,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
71,
72,
73,
@ -1473,7 +1473,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
76,
77,
78,
@ -1571,7 +1571,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
81,
82,
83,
@ -1669,7 +1669,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
86,
87,
88,
@ -1767,7 +1767,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
91,
92,
93,
@ -1865,7 +1865,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
96,
97,
98,
@ -1963,7 +1963,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
101,
102,
103,
@ -2061,7 +2061,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
106,
107,
108,
@ -2159,7 +2159,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
111,
112,
113,
@ -2257,7 +2257,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
116,
117,
118,
@ -2355,7 +2355,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
121,
122,
123,
@ -2453,7 +2453,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
126,
127,
128,
@ -2551,7 +2551,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
131,
132,
133,
@ -2649,7 +2649,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
136,
137,
138,
@ -2747,7 +2747,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
141,
142,
143,
@ -2845,7 +2845,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11",
["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={
["board"]={
146,
147,
148,

View File

@ -0,0 +1,216 @@
local monster_dungeon_gold = {
[105]={
["monster_base"]=20003,
["hp"]=90000000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[205]={
["monster_base"]=20003,
["hp"]=90200000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[305]={
["monster_base"]=20003,
["hp"]=90400000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[405]={
["monster_base"]=20003,
["hp"]=90600000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[505]={
["monster_base"]=20003,
["hp"]=90800000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[605]={
["monster_base"]=20003,
["hp"]=91000000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[705]={
["monster_base"]=20003,
["hp"]=91200000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[805]={
["monster_base"]=20003,
["hp"]=91400000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[905]={
["monster_base"]=20003,
["hp"]=91600000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1005]={
["monster_base"]=20003,
["hp"]=91800000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1105]={
["monster_base"]=20003,
["hp"]=92000000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1205]={
["monster_base"]=20003,
["hp"]=92200000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1305]={
["monster_base"]=20003,
["hp"]=92400000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1405]={
["monster_base"]=20003,
["hp"]=92600000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1505]={
["monster_base"]=20003,
["hp"]=92800000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1605]={
["monster_base"]=20003,
["hp"]=93000000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1705]={
["monster_base"]=20003,
["hp"]=93200000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1805]={
["monster_base"]=20003,
["hp"]=93400000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[1905]={
["monster_base"]=20003,
["hp"]=93600000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2005]={
["monster_base"]=20003,
["hp"]=93800000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2105]={
["monster_base"]=20003,
["hp"]=94000000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2205]={
["monster_base"]=20003,
["hp"]=94200000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2305]={
["monster_base"]=20003,
["hp"]=94400000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2405]={
["monster_base"]=20003,
["hp"]=94600000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2505]={
["monster_base"]=20003,
["hp"]=94800000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2605]={
["monster_base"]=20003,
["hp"]=95000000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2705]={
["monster_base"]=20003,
["hp"]=95200000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2805]={
["monster_base"]=20003,
["hp"]=95400000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[2905]={
["monster_base"]=20003,
["hp"]=95600000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
},
[3005]={
["monster_base"]=20003,
["hp"]=95800000,
["atk"]=0,
["atk_times"]=0,
["monster_exp"]=440000
}
}
local config = {
data=monster_dungeon_gold,count=30
}
return config

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: 4154138c3cd0f0147b333237de79e966
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}

File diff suppressed because it is too large Load Diff

View File

@ -1131,22 +1131,15 @@ local skill_rogue = {
["icon"]="138"
},
[1400104]={
["unlock"]=1400102,
["cover_unlock"]=1400102,
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=12,
["skill_position"]=1,
["effect"]={
{
["type"]="add_skill",
["num"]=1400124,
["ratio"]=10000,
["round"]=1
}
["type"]=7,
["parameter"]={
1,
6000
},
["obj"]=3,
["skill_position"]=1,
["icon"]="139"
},
[1400105]={
@ -1205,6 +1198,136 @@ local skill_rogue = {
["obj"]=3,
["icon"]="142"
},
[1400200]={
["limit_times"]=1,
["weight"]=100000,
["qlt"]=4,
["type"]=6,
["skill_position"]=1,
["icon"]="186"
},
[1400201]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=12,
["skill_position"]=1,
["effect"]={
{
["type"]="add_skill",
["num"]=1400221,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=3,
["icon"]="136"
},
[1400202]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=12,
["skill_position"]=1,
["effect"]={
{
["type"]="add_skill",
["num"]=1400222,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=3,
["icon"]="137"
},
[1400203]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=1,
["parameter"]={
1400223
},
["skill_position"]=1,
["icon"]="138"
},
[1400204]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=9,
["skill_position"]=1,
["effect"]={
{
["type"]="add_skill",
["num"]=1400224,
["ratio"]=10000,
["round"]=999
}
},
["obj"]=3,
["icon"]="139"
},
[1400205]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=12,
["skill_position"]=1,
["effect"]={
{
["type"]="add_skill",
["num"]=1400225,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=3,
["icon"]="140"
},
[1400206]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=9,
["skill_position"]=1,
["effect"]={
{
["type"]="atkp_red_add",
["num"]=1500,
["ratio"]=10000,
["round"]=999
}
},
["obj"]=3,
["icon"]="141"
},
[1400207]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=15,
["parameter"]={
6
},
["skill_position"]=1,
["effect"]={
{
["type"]="skill_fire_times",
["num"]=1400220,
["ratio"]=10000,
["round"]=1
},
{
["type"]="skill_fire_times",
["num"]=1400223,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=3,
["icon"]="142"
},
[2200100]={
["limit_times"]=1,
["weight"]=100000,
@ -1737,6 +1860,132 @@ local skill_rogue = {
["obj"]=4,
["icon"]="149"
},
[2400200]={
["limit_times"]=1,
["weight"]=100000,
["qlt"]=4,
["type"]=6,
["skill_position"]=2,
["icon"]="187"
},
[2400201]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=2,
["skill_position"]=2,
["boardrange"]={
{
["type"]=0,
["range"]=4
}
},
["icon"]="143"
},
[2400202]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=12,
["skill_position"]=2,
["effect"]={
{
["type"]="add_skill",
["num"]=2400221,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=4,
["icon"]="144"
},
[2400203]={
["unlock"]=2400201,
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=2,
["skill_position"]=2,
["boardrange"]={
{
["type"]=0,
["range"]=2
}
},
["icon"]="145"
},
[2400204]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=12,
["skill_position"]=2,
["effect"]={
{
["type"]="add_skill",
["num"]=2400222,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=4,
["icon"]="146"
},
[2400205]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=12,
["skill_position"]=2,
["effect"]={
{
["type"]="add_skill",
["num"]=2400223,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=4,
["icon"]="147"
},
[2400206]={
["unlock"]=2400204,
["cover_unlock"]=2400206,
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=12,
["skill_position"]=2,
["effect"]={
{
["type"]="add_skill",
["num"]=2400224,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=4,
["icon"]="148"
},
[2400207]={
["unlock"]=2400205,
["cover_unlock"]=2400205,
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=12,
["skill_position"]=2,
["effect"]={
{
["type"]="add_skill",
["num"]=2400225,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=4,
["icon"]="149"
},
[3200100]={
["limit_times"]=1,
["weight"]=100000,
@ -2229,6 +2478,83 @@ local skill_rogue = {
["obj"]=5,
["icon"]="156"
},
[3400200]={
["limit_times"]=1,
["weight"]=100000,
["qlt"]=4,
["type"]=6,
["skill_position"]=3,
["icon"]="188"
},
[3400201]={
["limit_times"]=1,
["weight"]=3000,
["type"]=1,
["icon"]="150"
},
[3400202]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=3,
["skill_position"]=3,
["effect"]={
{
["type"]="atkp",
["num"]=5000,
["ratio"]=10000,
["round"]=1
}
},
["obj"]=1,
["icon"]="151"
},
[3400203]={
["limit_times"]=1,
["weight"]=3000,
["type"]=8,
["icon"]="152"
},
[3400204]={
["limit_times"]=1,
["weight"]=3000,
["type"]=7,
["icon"]="153"
},
[3400205]={
["limit_times"]=1,
["weight"]=3000,
["type"]=12,
["obj"]=5,
["icon"]="154"
},
[3400206]={
["unlock"]=3400201,
["limit_times"]=1,
["weight"]=3000,
["type"]=2,
["skill_position"]=3,
["boardrange"]={
{
["type"]=3,
["range"]=2
},
{
["type"]=4,
["range"]=2
}
},
["icon"]="155"
},
[3400207]={
["unlock"]=3400205,
["cover_unlock"]=3400205,
["limit_times"]=1,
["weight"]=3000,
["type"]=12,
["obj"]=5,
["icon"]="156"
},
[4200100]={
["limit_times"]=1,
["weight"]=100000,
@ -2659,14 +2985,14 @@ local skill_rogue = {
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=12,
["type"]=9,
["skill_position"]=4,
["effect"]={
{
["type"]="add_skill",
["num"]=4400122,
["ratio"]=10000,
["round"]=1
["round"]=999
}
},
["obj"]=6,
@ -2695,14 +3021,14 @@ local skill_rogue = {
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
["type"]=12,
["type"]=9,
["skill_position"]=4,
["effect"]={
{
["type"]="add_skill",
["num"]=4400123,
["ratio"]=10000,
["round"]=1
["round"]=999
}
},
["obj"]=6,
@ -3003,23 +3329,6 @@ local skill_rogue = {
["icon"]="131"
},
[5300204]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=9,
["skill_position"]=5,
["effect"]={
{
["type"]="atkp_purple_add",
["num"]=1500,
["ratio"]=10000,
["round"]=999
}
},
["obj"]=7,
["icon"]="132"
},
[5300205]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=4,
@ -3036,6 +3345,23 @@ local skill_rogue = {
["obj"]=7,
["icon"]="133"
},
[5300205]={
["limit_times"]=1,
["weight"]=3000,
["qlt"]=3,
["type"]=9,
["skill_position"]=5,
["effect"]={
{
["type"]="atkp_purple_add",
["num"]=1500,
["ratio"]=10000,
["round"]=999
}
},
["obj"]=7,
["icon"]="132"
},
[5300206]={
["unlock"]=5300202,
["cover_unlock"]=5300202,
@ -3192,6 +3518,6 @@ local skill_rogue = {
}
}
local config = {
data=skill_rogue,count=204
data=skill_rogue,count=228
}
return config

View File

@ -9,6 +9,8 @@ local BATTLE_CONTROLLER_BASE = "app/module/battle/controller/battle_controller"
local BATTLE_CONTROLLER = {
[BattleConst.BATTLE_TYPE.STAGE] = "app/module/battle/controller/battle_controller_stage",
[BattleConst.BATTLE_TYPE.DAILY_CHALLENGE] = "app/module/battle/controller/battle_controller_daily_challenge",
[BattleConst.BATTLE_TYPE.DUNGEON_GOLD] = "app/module/battle/controller/battle_controller_dungeon_gold",
[BattleConst.BATTLE_TYPE.DUNGEON_SHARDS] = "app/module/battle/controller/battle_controller_dungeon_shards",
}
function BattleManager:showPauseUI(battleType)

View File

@ -19,24 +19,80 @@ local BUFF_NAME_TO_ATTR = BattleConst.BUFF_NAME_TO_ATTR
local GRID_BREAK_CONDITION = BattleConst.GRID_BREAK_CONDITION
-- *************各个子模块的战斗需要重写的方法 START*************
function BattleController:getBoardConfig()
return {}
end
function BattleController:getChapterConfig()
return {}
end
function BattleController:getChapterId()
return 0
end
function BattleController:getInitBoard()
return {}
if not self.boradList then
self.boradList = {}
self.fixedRandomGrid = {}
self.mysteryBoxIndexMap = {}
local config = self:getChapterConfig()[self.chapterId]
local boardCfg = self:getBoardConfig()
for _, boardId in ipairs(config.board) do
local cfg = boardCfg[boardId]
if cfg then
table.insert(self.boradList, {board = GFunc.getTable(cfg.board), mysteryBoard = GFunc.getTable(cfg.mystery_box_board)})
table.insert(self.fixedRandomGrid, GFunc.getTable(cfg.control_element))
end
end
if config.mystery_box and config.mystery_box_reward then
for i, index in ipairs(config.mystery_box) do
if not DataManager.ChapterData:getChapterMysteryBoxIsGot(self.chapterId, i) then
self.mysteryBoxIndexMap[index] = config.mystery_box_reward[i]
end
end
end
end
return self.boradList, self.fixedRandomGrid, self.mysteryBoxIndexMap
end
function BattleController:getNotInvolvedSkills()
return {}
if not self.notInvolvedSkills then
self.notInvolvedSkills = {}
local config = self:getchapterConfig()[self.chapterId]
if config.not_involved_skill then
for _, skillId in ipairs(config.not_involved_skill) do
self.notInvolvedSkills[skillId] = true
end
end
end
return self.notInvolvedSkills
end
function BattleController:getFixedRogueSkill()
return {}
if not self.fixedRogueSkill then
self.fixedRogueSkill = {}
end
return self.fixedRogueSkill
end
function BattleController:getSealElementType()
return {}
if not self.sealElementType then
self.sealElementType = {}
local config = self:getchapterConfig()[self.chapterId]
if config.seal_element then
for _, elementType in ipairs(config.seal_element) do
self.sealElementType[elementType] = true
end
end
end
return self.sealElementType
end
function BattleController:getBuffs()
@ -112,7 +168,11 @@ end
-- 一共有多少波
function BattleController:getMaxWave()
return 1
local config = self:getChapterConfig()[self.chapterId]
if not config or not config.monster then
return 0
end
return #config.monster
end
function BattleController:getMinEliminationCount()
@ -123,11 +183,82 @@ function BattleController:getMinEliminationCount()
end
function BattleController:initDefUnits(callback)
callback()
local config = self:getChapterConfig()[self.chapterId]
self.battleUI:loadBg(config.scene)
local unitEntity = DataManager.BattleData:addMonster(config.monster[1])
local modelId = unitEntity:getModelId()
BattleHelper:loadBattleHeroModel(modelId, self.battleUI:getBattleNode(), function(spineObject)
local monsterComp = spineObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_MONSTER_COMPONENT)
monsterComp:initWithEntity(modelId, unitEntity, self)
self.defTeam:addUnit(monsterComp, true)
self.battleUI:refreshDefHp(unitEntity:getHp(), unitEntity:getHpPercent())
callback()
end)
end
function BattleController:generateNextMonster()
local config = self:getchapterConfig()[self.chapterId]
local monsterId = config.monster[self.waveIndex + 1]
if monsterId == nil then
return self:enterNextWave()
end
local isBoss = self.defTeam:getIsBoss()
local unitEntity = DataManager.BattleData:addMonster(monsterId, true)
local modelId = unitEntity:getModelId()
BattleHelper:loadBattleHeroModel(modelId, self.battleUI:getBattleNode(), function(spineObject)
self.defTeam:removeAllUnits()
local monsterComp = spineObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_MONSTER_COMPONENT)
monsterComp:initWithEntity(modelId, unitEntity, self)
self.defTeam:addUnit(monsterComp, true)
self:handleBuffs(GConst.BattleConst.SIDE_DEF)
self.battleUI:refreshDefHp(unitEntity:getHp(), unitEntity:getHpPercent())
local bornTime = monsterComp:getAnimationDuration(GConst.BattleConst.SPINE_ANIMATION_NAME.BORN)
if isBoss then -- 如果是boss就跑过去
local count = 0
local function onFinish()
count = count + 1
if count == 2 then
self.atkTeam:stopRunAction()
self:onRoundEnd(true)
end
end
self.atkTeam:playRunAction()
self.atkTeam:recoverHpOnWaveOver(onFinish)
isBoss = self.defTeam:getIsBoss()
if isBoss then
local monsterInfo = ConfigManager:getConfig("monster")[monsterId]
self.battleUI:showBossEnterAni(bornTime, ModuleManager.HeroManager:getMonsterName(monsterInfo.monster_base), monsterComp, function()
monsterComp:playEnterBattlefield(true, onFinish)
end)
else
monsterComp:playEnterBattlefield(true, onFinish)
end
else
local count = 0
local function onFinish()
count = count + 1
if count == 2 then
self:onRoundEnd(true)
end
end
self.atkTeam:recoverHpOnWaveOver(onFinish)
isBoss = self.defTeam:getIsBoss()
if isBoss then
local monsterInfo = ConfigManager:getConfig("monster")[monsterId]
self.battleUI:showBossEnterAni(bornTime, ModuleManager.HeroManager:getMonsterName(monsterInfo.monster_base), monsterComp, function()
monsterComp:playEnterBattlefield(false, onFinish)
end)
else
monsterComp:playEnterBattlefield(false, onFinish)
end
end
end)
end
function BattleController:findNextDefUnit()
self:enterRoundEnd()
self:generateNextMonster()
end
function BattleController:onDefDead(callback)
@ -239,11 +370,19 @@ end
---- 障碍格子图片
function BattleController:getBlockIcon()
return "battle_hinder_4"
local chapterInfo = self:getChapterConfig()[self.chapterId]
if not chapterInfo then
return "battle_hinder_4"
end
return chapterInfo.block_icon
end
function BattleController:getChessBoardBgName()
return "chessboard_1"
local chapterInfo = self:getChapterConfig()[self.chapterId]
if not chapterInfo then
return "chessboard_1"
end
return chapterInfo.chess_board
end
-- *************各个子模块的战斗需要重写的方法 END*************

View File

@ -1,28 +1,20 @@
local BattleHelper = require "app/module/battle/helper/battle_helper"
local BattleController = require "app/module/battle/controller/battle_controller"
local BattleControllerDailyChallenge = class("BattleControllerDailyChallenge", BattleController)
local CHAPTER_CFG = ConfigManager:getConfig("chapter_daily_challenge")
local BattleBuffEntity = require "app/userdata/battle/skill/battle_buff_entity"
function BattleControllerDailyChallenge:getBoardConfig()
return ConfigManager:getConfig("chapter_board_daily_challenge")
end
function BattleControllerDailyChallenge:getChapterConfig()
return ConfigManager:getConfig("chapter_daily_challenge")
end
function BattleControllerDailyChallenge:getChapterId()
return DataManager.DailyChallengeData:getChapterDailyId()
end
function BattleControllerDailyChallenge:getMaxWave()
if CHAPTER_CFG[self.chapterId] then
return #CHAPTER_CFG[self.chapterId].monster
end
return 0
end
function BattleControllerDailyChallenge:getChessBoardBgName()
local chapterInfo = CHAPTER_CFG[self.chapterId]
if not chapterInfo then
return "chessboard_1"
end
return chapterInfo.chess_board
end
function BattleControllerDailyChallenge:getBuffs()
if not self.initBuffs then
self.initBuffs = {}
@ -50,8 +42,8 @@ function BattleControllerDailyChallenge:onLoadComplete(...)
end
function BattleControllerDailyChallenge:initOther()
local ChapterId = DataManager.DailyChallengeData:getFixedChapterId()
local cfg = ConfigManager:getConfig("chapter")[ChapterId]
local chapterId = DataManager.DailyChallengeData:getFixedChapterId()
local cfg = ConfigManager:getConfig("chapter")[chapterId]
self.monsterAtkAddition = 0
self.monsterHpAddition = 0
if cfg and cfg.daily_challenge_difficulty then
@ -70,89 +62,14 @@ function BattleControllerDailyChallenge:getMonsterHpAddition()
return self.monsterHpAddition
end
function BattleControllerDailyChallenge:initDefUnits(callback)
local config = CHAPTER_CFG[self.chapterId]
self.battleUI:loadBg(config.scene)
local unitEntity = DataManager.BattleData:addMonster(config.monster[1], nil, self)
local modelId = unitEntity:getModelId()
BattleHelper:loadBattleHeroModel(modelId, self.battleUI:getBattleNode(), function(spineObject)
local monsterComp = spineObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_MONSTER_COMPONENT)
monsterComp:initWithEntity(modelId, unitEntity, self)
self.defTeam:addUnit(monsterComp, true)
self.battleUI:refreshDefHp(unitEntity:getHp(), unitEntity:getHpPercent())
callback()
end)
end
function BattleControllerDailyChallenge:_stageGenerateNextMonster()
local config = CHAPTER_CFG[self.chapterId]
local monsterId = config.monster[self.waveIndex + 1]
if monsterId == nil then
return self:enterNextWave()
end
local isBoss = self.defTeam:getIsBoss()
local unitEntity = DataManager.BattleData:addMonster(monsterId, true, self)
local modelId = unitEntity:getModelId()
BattleHelper:loadBattleHeroModel(modelId, self.battleUI:getBattleNode(), function(spineObject)
self.defTeam:removeAllUnits()
local monsterComp = spineObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_MONSTER_COMPONENT)
monsterComp:initWithEntity(modelId, unitEntity, self)
self.defTeam:addUnit(monsterComp, true)
self:handleBuffs(GConst.BattleConst.SIDE_DEF)
self.battleUI:refreshDefHp(unitEntity:getHp(), unitEntity:getHpPercent())
local bornTime = monsterComp:getAnimationDuration(GConst.BattleConst.SPINE_ANIMATION_NAME.BORN)
if isBoss then -- 如果是boss就跑过去
local count = 0
local function onFinish()
count = count + 1
if count == 2 then
self.atkTeam:stopRunAction()
self:onRoundEnd(true)
end
end
self.atkTeam:playRunAction()
self.atkTeam:recoverHpOnWaveOver(onFinish)
isBoss = self.defTeam:getIsBoss()
if isBoss then
local monsterInfo = ConfigManager:getConfig("monster")[monsterId]
self.battleUI:showBossEnterAni(bornTime, ModuleManager.HeroManager:getMonsterName(monsterInfo.monster_base), monsterComp, function()
monsterComp:playEnterBattlefield(true, onFinish)
end)
else
monsterComp:playEnterBattlefield(true, onFinish)
end
else
local count = 0
local function onFinish()
count = count + 1
if count == 2 then
self:onRoundEnd(true)
end
end
self.atkTeam:recoverHpOnWaveOver(onFinish)
isBoss = self.defTeam:getIsBoss()
if isBoss then
local monsterInfo = ConfigManager:getConfig("monster")[monsterId]
self.battleUI:showBossEnterAni(bornTime, ModuleManager.HeroManager:getMonsterName(monsterInfo.monster_base), monsterComp, function()
monsterComp:playEnterBattlefield(false, onFinish)
end)
else
monsterComp:playEnterBattlefield(false, onFinish)
end
end
end)
end
function BattleControllerDailyChallenge:getInitBoard()
if not self.boradList then
self.boradList = {}
self.fixedRandomGrid = {}
self.mysteryBoxIndexMap = {}
local config = CHAPTER_CFG[self.chapterId]
local boardCfg = ConfigManager:getConfig("chapter_board_daily_challenge")
local config = self:getChapterConfig()[self.chapterId]
local boardCfg = self:getBoardConfig()
for _, boardId in ipairs(config.chapter_board_daily_challenge) do
local cfg = boardCfg[boardId]
if cfg then
@ -164,51 +81,6 @@ function BattleControllerDailyChallenge:getInitBoard()
return self.boradList, self.fixedRandomGrid, self.mysteryBoxIndexMap
end
function BattleControllerDailyChallenge:getSealElementType()
if not self.sealElementType then
self.sealElementType = {}
local config = CHAPTER_CFG[self.chapterId]
if config.seal_element then
for _, elementType in ipairs(config.seal_element) do
self.sealElementType[elementType] = true
end
end
end
return self.sealElementType
end
function BattleControllerDailyChallenge:getNotInvolvedSkills()
if not self.notInvolvedSkills then
self.notInvolvedSkills = {}
local config = CHAPTER_CFG[self.chapterId]
if config.not_involved_skill then
for _, skillId in ipairs(config.not_involved_skill) do
self.notInvolvedSkills[skillId] = true
end
end
end
return self.notInvolvedSkills
end
function BattleControllerDailyChallenge:getFixedRogueSkill()
if not self.fixedRogueSkill then
local config = CHAPTER_CFG[self.chapterId]
if config.involved_skill then
self.fixedRogueSkill = GFunc.getTable(config.involved_skill)
else
self.fixedRogueSkill = {}
end
end
return self.fixedRogueSkill
end
function BattleControllerDailyChallenge:findNextDefUnit()
self:_stageGenerateNextMonster()
end
function BattleControllerDailyChallenge:controllBattleEnd()
self.combatReport = {
battleType = GConst.BattleConst.BATTLE_TYPE.DAILY_CHALLENGE,

View File

@ -0,0 +1,73 @@
local BattleController = require "app/module/battle/controller/battle_controller"
local BattleControllerDungeonGold = class("BattleControllerDungeonGold", BattleController)
function BattleControllerDungeonGold:getBoardConfig()
return ConfigManager:getConfig("chapter_board_dungeon_gold")
end
function BattleControllerDungeonGold:getChapterConfig()
return ConfigManager:getConfig("chapter_dungeon_gold")
end
function BattleControllerDungeonGold:getChapterId()
return 1 -- Todo
end
function BattleControllerDungeonGold:controllBattleEnd()
self.combatReport = {
battleType = GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD,
wave = self.waveIndex,
victory = self.victory,
}
local atkReport = {}
local teamEntity = DataManager.BattleData:getAtkTeam()
local members = teamEntity:getAllMembers()
for k, v in pairs(members) do
local report = {
heroId = v:getId(),
dmg = v:getDamageCount(),
}
table.insert(atkReport, report)
end
self.combatReport.atkReport = atkReport
if not self.victory then
self.combatReport.wave = self.combatReport.wave - 1
end
-- ModuleManager.ChapterManager:endFight(self.chapterId, self.combatReport, self.gotMysteryBoxIndexs, self.taskProgress)
end
function BattleControllerDungeonGold:postWaveOver(atkDead, isQuit)
-- local deathType = BIReport.FIGHT_DEATH_TYPE.SURVIVE
-- local waveEndType = BIReport.FIGHT_WAVE_END_TYPE.WIN
-- if atkDead then
-- if self.isBossWave then
-- deathType = BIReport.FIGHT_DEATH_TYPE.BOSS_FAIL
-- else
-- deathType = BIReport.FIGHT_DEATH_TYPE.NORMAL_FAIL
-- end
-- waveEndType = BIReport.FIGHT_WAVE_END_TYPE.FAIL
-- end
-- if isQuit then
-- waveEndType = BIReport.FIGHT_WAVE_END_TYPE.QUIT
-- end
-- local duration = self.waveDurationTime
-- local totalTime = self.totalDurationTime
-- local startTimes = DataManager.ChapterData:getChapterFightCount(self.chapterId)
-- local isFirstWin = false
-- if not DataManager.ChapterData:getChapterPassed(self.chapterId) and self.victory then
-- isFirstWin = true
-- end
-- local isFianlStep = self.waveIndex >= self.maxWaveIndex
-- BIReport:postFightEnd(GConst.BattleConst.BATTLE_TYPE.STAGE, self.chapterId, self.waveIndex, duration, totalTime, self.eliminateCount, self.eliminateTotalCount, waveEndType, deathType, startTimes, isFirstWin, isFianlStep, self.maxLinkCount)
end
function BattleControllerDungeonGold:postFightStart()
-- local unlockMaxChapter = DataManager.ChapterData:getNewChapterId()
-- BIReport:postFightBegin(GConst.BattleConst.BATTLE_TYPE.STAGE, self.waveIndex, self.chapterId, unlockMaxChapter, DataManager.ChapterData:getChapterFightCount(self.chapterId))
end
return BattleControllerDungeonGold

View File

@ -0,0 +1,10 @@
fileFormatVersion: 2
guid: f918b2e0ce7132d4bb9f23da30447f0d
ScriptedImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 2
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}

View File

@ -3,166 +3,18 @@ local BattleHelper = require "app/module/battle/helper/battle_helper"
local BattleController = require "app/module/battle/controller/battle_controller"
local BattleControllerStage = class("BattleControllerStage", BattleController)
function BattleControllerStage:getBoardConfig()
return ConfigManager:getConfig("chapter_board")
end
function BattleControllerStage:getChapterConfig()
return ConfigManager:getConfig("chapter")
end
function BattleControllerStage:getChapterId()
return DataManager.ChapterData:getChapterId()
end
function BattleControllerStage:getMaxWave()
return DataManager.ChapterData:getChapterCfgMaxWave(self.chapterId)
end
function BattleControllerStage:getBlockIcon()
local chapterInfo = ConfigManager:getConfig("chapter")[self.chapterId]
if not chapterInfo then
return "battle_hinder_4"
end
return chapterInfo.block_icon
end
function BattleControllerStage:getChessBoardBgName()
local chapterInfo = ConfigManager:getConfig("chapter")[self.chapterId]
if not chapterInfo then
return "chessboard_1"
end
return chapterInfo.chess_board
end
function BattleControllerStage:initOther()
end
function BattleControllerStage:initDefUnits(callback)
local config = ConfigManager:getConfig("chapter")[self.chapterId]
self.battleUI:loadBg(config.scene)
local unitEntity = DataManager.BattleData:addMonster(config.monster[1])
local modelId = unitEntity:getModelId()
BattleHelper:loadBattleHeroModel(modelId, self.battleUI:getBattleNode(), function(spineObject)
local monsterComp = spineObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_MONSTER_COMPONENT)
monsterComp:initWithEntity(modelId, unitEntity, self)
self.defTeam:addUnit(monsterComp, true)
self.battleUI:refreshDefHp(unitEntity:getHp(), unitEntity:getHpPercent())
callback()
end)
end
function BattleControllerStage:_stageGenerateNextMonster()
local config = ConfigManager:getConfig("chapter")[self.chapterId]
local monsterId = config.monster[self.waveIndex + 1]
if monsterId == nil then
return self:enterNextWave()
end
local isBoss = self.defTeam:getIsBoss()
local unitEntity = DataManager.BattleData:addMonster(monsterId, true)
local modelId = unitEntity:getModelId()
BattleHelper:loadBattleHeroModel(modelId, self.battleUI:getBattleNode(), function(spineObject)
self.defTeam:removeAllUnits()
local monsterComp = spineObject:addLuaComponent(GConst.BattleConst.TYPEOF_LUA_COMP.BATTLE_MONSTER_COMPONENT)
monsterComp:initWithEntity(modelId, unitEntity, self)
self.defTeam:addUnit(monsterComp, true)
self:handleBuffs(GConst.BattleConst.SIDE_DEF)
self.battleUI:refreshDefHp(unitEntity:getHp(), unitEntity:getHpPercent())
local bornTime = monsterComp:getAnimationDuration(GConst.BattleConst.SPINE_ANIMATION_NAME.BORN)
if isBoss then -- 如果是boss就跑过去
local count = 0
local function onFinish()
count = count + 1
if count == 2 then
self.atkTeam:stopRunAction()
self:onRoundEnd(true)
end
end
self.atkTeam:playRunAction()
self.atkTeam:recoverHpOnWaveOver(onFinish)
isBoss = self.defTeam:getIsBoss()
if isBoss then
local monsterInfo = ConfigManager:getConfig("monster")[monsterId]
self.battleUI:showBossEnterAni(bornTime, ModuleManager.HeroManager:getMonsterName(monsterInfo.monster_base), monsterComp, function()
monsterComp:playEnterBattlefield(true, onFinish)
end)
else
monsterComp:playEnterBattlefield(true, onFinish)
end
else
local count = 0
local function onFinish()
count = count + 1
if count == 2 then
self:onRoundEnd(true)
end
end
self.atkTeam:recoverHpOnWaveOver(onFinish)
isBoss = self.defTeam:getIsBoss()
if isBoss then
local monsterInfo = ConfigManager:getConfig("monster")[monsterId]
self.battleUI:showBossEnterAni(bornTime, ModuleManager.HeroManager:getMonsterName(monsterInfo.monster_base), monsterComp, function()
monsterComp:playEnterBattlefield(false, onFinish)
end)
else
monsterComp:playEnterBattlefield(false, onFinish)
end
end
end)
end
function BattleControllerStage:getInitBoard()
if not self.boradList then
self.boradList = {}
self.fixedRandomGrid = {}
self.mysteryBoxIndexMap = {}
local config = ConfigManager:getConfig("chapter")[self.chapterId]
local boardCfg = ConfigManager:getConfig("chapter_board")
for _, boardId in ipairs(config.board) do
local cfg = boardCfg[boardId]
if cfg then
table.insert(self.boradList, {board = GFunc.getTable(cfg.board), mysteryBoard = GFunc.getTable(cfg.mystery_box_board)})
table.insert(self.fixedRandomGrid, GFunc.getTable(cfg.control_element))
end
end
if config.mystery_box and config.mystery_box_reward then
for i, index in ipairs(config.mystery_box) do
if not DataManager.ChapterData:getChapterMysteryBoxIsGot(self.chapterId, i) then
self.mysteryBoxIndexMap[index] = config.mystery_box_reward[i]
end
end
end
end
return self.boradList, self.fixedRandomGrid, self.mysteryBoxIndexMap
end
function BattleControllerStage:getSealElementType()
if not self.sealElementType then
self.sealElementType = {}
local config = ConfigManager:getConfig("chapter")[self.chapterId]
if config.seal_element then
for _, elementType in ipairs(config.seal_element) do
self.sealElementType[elementType] = true
end
end
end
return self.sealElementType
end
function BattleControllerStage:getNotInvolvedSkills()
if not self.notInvolvedSkills then
self.notInvolvedSkills = {}
local config = ConfigManager:getConfig("chapter")[self.chapterId]
if config.not_involved_skill then
for _, skillId in ipairs(config.not_involved_skill) do
self.notInvolvedSkills[skillId] = true
end
end
end
return self.notInvolvedSkills
end
function BattleControllerStage:getFixedRogueSkill()
if not self.fixedRogueSkill then
local config = ConfigManager:getConfig("chapter")[self.chapterId]
@ -176,10 +28,6 @@ function BattleControllerStage:getFixedRogueSkill()
return self.fixedRogueSkill
end
function BattleControllerStage:findNextDefUnit()
self:_stageGenerateNextMonster()
end
function BattleControllerStage:controllBattleEnd()
self.combatReport = {
battleType = GConst.BattleConst.BATTLE_TYPE.STAGE,

View File

@ -30,6 +30,7 @@ end
-- 响应挑战副本
function DungeonManager:respChallengeGold(result)
if result.err_code == GConst.ERROR_STR.SUCCESS then
ModuleManager.BattleManager:playBattle(GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD)
end
end

View File

@ -58,6 +58,7 @@ function DungeonDifficultyUI:onLoadRootComplete()
end)
self.btnStart:addClickListener(function()
-- 开始挑战
ModuleManager.BattleManager:playBattle(GConst.BattleConst.BATTLE_TYPE.DUNGEON_GOLD)
end)
self.btnSweep:addClickListener(function()
-- 开始扫荡