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 end
handleMonsterGrow("monster_chapter") handleMonsterGrow("monster_chapter")
handleMonsterGrow("monster_daily_challenge") handleMonsterGrow("monster_daily_challenge")
handleMonsterGrow("monster_dungeon_gold")
handleMonsterGrow("monster_dungeon_shards")
self.configs["monster"] = { self.configs["monster"] = {
data = monsterFullData, data = monsterFullData,

View File

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

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -3,7 +3,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
1, 1,
2, 2,
3, 3,
@ -101,7 +101,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
6, 6,
7, 7,
8, 8,
@ -199,7 +199,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
11, 11,
12, 12,
13, 13,
@ -297,7 +297,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
16, 16,
17, 17,
18, 18,
@ -395,7 +395,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
21, 21,
22, 22,
23, 23,
@ -493,7 +493,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
26, 26,
27, 27,
28, 28,
@ -591,7 +591,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
31, 31,
32, 32,
33, 33,
@ -689,7 +689,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
36, 36,
37, 37,
38, 38,
@ -787,7 +787,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
41, 41,
42, 42,
43, 43,
@ -885,7 +885,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
46, 46,
47, 47,
48, 48,
@ -983,7 +983,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
51, 51,
52, 52,
53, 53,
@ -1081,7 +1081,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
56, 56,
57, 57,
58, 58,
@ -1179,7 +1179,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
61, 61,
62, 62,
63, 63,
@ -1277,7 +1277,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
66, 66,
67, 67,
68, 68,
@ -1375,7 +1375,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
71, 71,
72, 72,
73, 73,
@ -1473,7 +1473,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
76, 76,
77, 77,
78, 78,
@ -1571,7 +1571,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
81, 81,
82, 82,
83, 83,
@ -1669,7 +1669,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
86, 86,
87, 87,
88, 88,
@ -1767,7 +1767,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
91, 91,
92, 92,
93, 93,
@ -1865,7 +1865,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
96, 96,
97, 97,
98, 98,
@ -1963,7 +1963,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
101, 101,
102, 102,
103, 103,
@ -2061,7 +2061,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
106, 106,
107, 107,
108, 108,
@ -2159,7 +2159,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
111, 111,
112, 112,
113, 113,
@ -2257,7 +2257,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
116, 116,
117, 117,
118, 118,
@ -2355,7 +2355,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
121, 121,
122, 122,
123, 123,
@ -2453,7 +2453,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
126, 126,
127, 127,
128, 128,
@ -2551,7 +2551,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
131, 131,
132, 132,
133, 133,
@ -2649,7 +2649,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
136, 136,
137, 137,
138, 138,
@ -2747,7 +2747,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
141, 141,
142, 142,
143, 143,
@ -2845,7 +2845,7 @@ local chapter_dungeon_shards = {
["scene"]="bg_11", ["scene"]="bg_11",
["block_icon"]="battle_hinder_7", ["block_icon"]="battle_hinder_7",
["chess_board"]="chessboard_2", ["chess_board"]="chessboard_2",
["chapter_board_dungeon_shards"]={ ["board"]={
146, 146,
147, 147,
148, 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" ["icon"]="138"
}, },
[1400104]={ [1400104]={
["unlock"]=1400102,
["cover_unlock"]=1400102,
["limit_times"]=1, ["limit_times"]=1,
["weight"]=3000, ["weight"]=3000,
["qlt"]=4, ["qlt"]=4,
["type"]=12, ["type"]=7,
["skill_position"]=1, ["parameter"]={
["effect"]={ 1,
{ 6000
["type"]="add_skill",
["num"]=1400124,
["ratio"]=10000,
["round"]=1
}
}, },
["obj"]=3, ["skill_position"]=1,
["icon"]="139" ["icon"]="139"
}, },
[1400105]={ [1400105]={
@ -1205,6 +1198,136 @@ local skill_rogue = {
["obj"]=3, ["obj"]=3,
["icon"]="142" ["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]={ [2200100]={
["limit_times"]=1, ["limit_times"]=1,
["weight"]=100000, ["weight"]=100000,
@ -1737,6 +1860,132 @@ local skill_rogue = {
["obj"]=4, ["obj"]=4,
["icon"]="149" ["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]={ [3200100]={
["limit_times"]=1, ["limit_times"]=1,
["weight"]=100000, ["weight"]=100000,
@ -2229,6 +2478,83 @@ local skill_rogue = {
["obj"]=5, ["obj"]=5,
["icon"]="156" ["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]={ [4200100]={
["limit_times"]=1, ["limit_times"]=1,
["weight"]=100000, ["weight"]=100000,
@ -2659,14 +2985,14 @@ local skill_rogue = {
["limit_times"]=1, ["limit_times"]=1,
["weight"]=3000, ["weight"]=3000,
["qlt"]=4, ["qlt"]=4,
["type"]=12, ["type"]=9,
["skill_position"]=4, ["skill_position"]=4,
["effect"]={ ["effect"]={
{ {
["type"]="add_skill", ["type"]="add_skill",
["num"]=4400122, ["num"]=4400122,
["ratio"]=10000, ["ratio"]=10000,
["round"]=1 ["round"]=999
} }
}, },
["obj"]=6, ["obj"]=6,
@ -2695,14 +3021,14 @@ local skill_rogue = {
["limit_times"]=1, ["limit_times"]=1,
["weight"]=3000, ["weight"]=3000,
["qlt"]=4, ["qlt"]=4,
["type"]=12, ["type"]=9,
["skill_position"]=4, ["skill_position"]=4,
["effect"]={ ["effect"]={
{ {
["type"]="add_skill", ["type"]="add_skill",
["num"]=4400123, ["num"]=4400123,
["ratio"]=10000, ["ratio"]=10000,
["round"]=1 ["round"]=999
} }
}, },
["obj"]=6, ["obj"]=6,
@ -3003,23 +3329,6 @@ local skill_rogue = {
["icon"]="131" ["icon"]="131"
}, },
[5300204]={ [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, ["limit_times"]=1,
["weight"]=3000, ["weight"]=3000,
["qlt"]=4, ["qlt"]=4,
@ -3036,6 +3345,23 @@ local skill_rogue = {
["obj"]=7, ["obj"]=7,
["icon"]="133" ["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]={ [5300206]={
["unlock"]=5300202, ["unlock"]=5300202,
["cover_unlock"]=5300202, ["cover_unlock"]=5300202,
@ -3192,6 +3518,6 @@ local skill_rogue = {
} }
} }
local config = { local config = {
data=skill_rogue,count=204 data=skill_rogue,count=228
} }
return config return config

View File

@ -9,6 +9,8 @@ local BATTLE_CONTROLLER_BASE = "app/module/battle/controller/battle_controller"
local BATTLE_CONTROLLER = { local BATTLE_CONTROLLER = {
[BattleConst.BATTLE_TYPE.STAGE] = "app/module/battle/controller/battle_controller_stage", [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.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) 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 local GRID_BREAK_CONDITION = BattleConst.GRID_BREAK_CONDITION
-- *************各个子模块的战斗需要重写的方法 START************* -- *************各个子模块的战斗需要重写的方法 START*************
function BattleController:getBoardConfig()
return {}
end
function BattleController:getChapterConfig()
return {}
end
function BattleController:getChapterId() function BattleController:getChapterId()
return 0 return 0
end end
function BattleController:getInitBoard() 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 end
function BattleController:getNotInvolvedSkills() 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 end
function BattleController:getFixedRogueSkill() function BattleController:getFixedRogueSkill()
return {} if not self.fixedRogueSkill then
self.fixedRogueSkill = {}
end
return self.fixedRogueSkill
end end
function BattleController:getSealElementType() 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 end
function BattleController:getBuffs() function BattleController:getBuffs()
@ -112,7 +168,11 @@ end
-- 一共有多少波 -- 一共有多少波
function BattleController:getMaxWave() 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 end
function BattleController:getMinEliminationCount() function BattleController:getMinEliminationCount()
@ -123,11 +183,82 @@ function BattleController:getMinEliminationCount()
end end
function BattleController:initDefUnits(callback) 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 end
function BattleController:findNextDefUnit() function BattleController:findNextDefUnit()
self:enterRoundEnd() self:generateNextMonster()
end end
function BattleController:onDefDead(callback) function BattleController:onDefDead(callback)
@ -239,11 +370,19 @@ end
---- 障碍格子图片 ---- 障碍格子图片
function BattleController:getBlockIcon() 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 end
function BattleController:getChessBoardBgName() 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
-- *************各个子模块的战斗需要重写的方法 END************* -- *************各个子模块的战斗需要重写的方法 END*************

View File

@ -1,28 +1,20 @@
local BattleHelper = require "app/module/battle/helper/battle_helper" local BattleHelper = require "app/module/battle/helper/battle_helper"
local BattleController = require "app/module/battle/controller/battle_controller" local BattleController = require "app/module/battle/controller/battle_controller"
local BattleControllerDailyChallenge = class("BattleControllerDailyChallenge", BattleController) local BattleControllerDailyChallenge = class("BattleControllerDailyChallenge", BattleController)
local CHAPTER_CFG = ConfigManager:getConfig("chapter_daily_challenge")
local BattleBuffEntity = require "app/userdata/battle/skill/battle_buff_entity" 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() function BattleControllerDailyChallenge:getChapterId()
return DataManager.DailyChallengeData:getChapterDailyId() return DataManager.DailyChallengeData:getChapterDailyId()
end 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() function BattleControllerDailyChallenge:getBuffs()
if not self.initBuffs then if not self.initBuffs then
self.initBuffs = {} self.initBuffs = {}
@ -50,8 +42,8 @@ function BattleControllerDailyChallenge:onLoadComplete(...)
end end
function BattleControllerDailyChallenge:initOther() function BattleControllerDailyChallenge:initOther()
local ChapterId = DataManager.DailyChallengeData:getFixedChapterId() local chapterId = DataManager.DailyChallengeData:getFixedChapterId()
local cfg = ConfigManager:getConfig("chapter")[ChapterId] local cfg = ConfigManager:getConfig("chapter")[chapterId]
self.monsterAtkAddition = 0 self.monsterAtkAddition = 0
self.monsterHpAddition = 0 self.monsterHpAddition = 0
if cfg and cfg.daily_challenge_difficulty then if cfg and cfg.daily_challenge_difficulty then
@ -70,89 +62,14 @@ function BattleControllerDailyChallenge:getMonsterHpAddition()
return self.monsterHpAddition return self.monsterHpAddition
end 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() function BattleControllerDailyChallenge:getInitBoard()
if not self.boradList then if not self.boradList then
self.boradList = {} self.boradList = {}
self.fixedRandomGrid = {} self.fixedRandomGrid = {}
self.mysteryBoxIndexMap = {} self.mysteryBoxIndexMap = {}
local config = CHAPTER_CFG[self.chapterId] local config = self:getChapterConfig()[self.chapterId]
local boardCfg = ConfigManager:getConfig("chapter_board_daily_challenge") local boardCfg = self:getBoardConfig()
for _, boardId in ipairs(config.chapter_board_daily_challenge) do for _, boardId in ipairs(config.chapter_board_daily_challenge) do
local cfg = boardCfg[boardId] local cfg = boardCfg[boardId]
if cfg then if cfg then
@ -164,51 +81,6 @@ function BattleControllerDailyChallenge:getInitBoard()
return self.boradList, self.fixedRandomGrid, self.mysteryBoxIndexMap return self.boradList, self.fixedRandomGrid, self.mysteryBoxIndexMap
end 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() function BattleControllerDailyChallenge:controllBattleEnd()
self.combatReport = { self.combatReport = {
battleType = GConst.BattleConst.BATTLE_TYPE.DAILY_CHALLENGE, 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 BattleController = require "app/module/battle/controller/battle_controller"
local BattleControllerStage = class("BattleControllerStage", BattleController) 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() function BattleControllerStage:getChapterId()
return DataManager.ChapterData:getChapterId() return DataManager.ChapterData:getChapterId()
end 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() function BattleControllerStage:getFixedRogueSkill()
if not self.fixedRogueSkill then if not self.fixedRogueSkill then
local config = ConfigManager:getConfig("chapter")[self.chapterId] local config = ConfigManager:getConfig("chapter")[self.chapterId]
@ -176,10 +28,6 @@ function BattleControllerStage:getFixedRogueSkill()
return self.fixedRogueSkill return self.fixedRogueSkill
end end
function BattleControllerStage:findNextDefUnit()
self:_stageGenerateNextMonster()
end
function BattleControllerStage:controllBattleEnd() function BattleControllerStage:controllBattleEnd()
self.combatReport = { self.combatReport = {
battleType = GConst.BattleConst.BATTLE_TYPE.STAGE, battleType = GConst.BattleConst.BATTLE_TYPE.STAGE,

View File

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

View File

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