merge
This commit is contained in:
commit
903e4899ca
@ -1,6 +1,6 @@
|
||||
local skill_hero = {
|
||||
[10]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=3,
|
||||
["method"]=2,
|
||||
["skill_type"]=1,
|
||||
@ -18,7 +18,7 @@ local skill_hero = {
|
||||
["battle_icon"]=1
|
||||
},
|
||||
[20]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=2,
|
||||
["method"]=2,
|
||||
["skill_type"]=0,
|
||||
@ -35,7 +35,7 @@ local skill_hero = {
|
||||
["battle_icon"]=2
|
||||
},
|
||||
[21]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=2,
|
||||
["method"]=1,
|
||||
["skill_type"]=2,
|
||||
@ -70,7 +70,7 @@ local skill_hero = {
|
||||
["battle_icon"]=2
|
||||
},
|
||||
[30]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=4,
|
||||
["method"]=2,
|
||||
["skill_type"]=1,
|
||||
@ -84,7 +84,7 @@ local skill_hero = {
|
||||
["battle_icon"]=3
|
||||
},
|
||||
[40]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=5,
|
||||
["method"]=2,
|
||||
["skill_type"]=0,
|
||||
@ -101,7 +101,7 @@ local skill_hero = {
|
||||
["battle_icon"]=4
|
||||
},
|
||||
[50]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=1,
|
||||
["method"]=2,
|
||||
["skill_type"]=1,
|
||||
@ -119,7 +119,7 @@ local skill_hero = {
|
||||
["battle_icon"]=5
|
||||
},
|
||||
[60]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=3,
|
||||
["method"]=2,
|
||||
["skill_type"]=0,
|
||||
@ -136,7 +136,7 @@ local skill_hero = {
|
||||
["battle_icon"]=6
|
||||
},
|
||||
[70]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=2,
|
||||
["method"]=2,
|
||||
["skill_type"]=0,
|
||||
@ -153,7 +153,7 @@ local skill_hero = {
|
||||
["battle_icon"]=7
|
||||
},
|
||||
[71]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=2,
|
||||
["method"]=1,
|
||||
["skill_type"]=2,
|
||||
@ -189,7 +189,7 @@ local skill_hero = {
|
||||
["battle_icon"]=7
|
||||
},
|
||||
[72]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=2,
|
||||
["method"]=1,
|
||||
["skill_type"]=2,
|
||||
@ -232,7 +232,7 @@ local skill_hero = {
|
||||
["battle_icon"]=7
|
||||
},
|
||||
[80]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=4,
|
||||
["method"]=2,
|
||||
["skill_type"]=0,
|
||||
@ -254,7 +254,7 @@ local skill_hero = {
|
||||
["battle_icon"]=8
|
||||
},
|
||||
[81]={
|
||||
["energy"]=10,
|
||||
["energy"]=3,
|
||||
["position"]=4,
|
||||
["method"]=2,
|
||||
["skill_type"]=1,
|
||||
|
||||
@ -11,7 +11,8 @@ local skill_rogue = {
|
||||
["minnum"]=300,
|
||||
["maxnum"]=500
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=1
|
||||
},
|
||||
[2]={
|
||||
["universal"]=1,
|
||||
@ -25,7 +26,8 @@ local skill_rogue = {
|
||||
["minnum"]=800,
|
||||
["maxnum"]=1200
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=1
|
||||
},
|
||||
[3]={
|
||||
["universal"]=1,
|
||||
@ -39,7 +41,8 @@ local skill_rogue = {
|
||||
["minnum"]=1300,
|
||||
["maxnum"]=2000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=1
|
||||
},
|
||||
[4]={
|
||||
["universal"]=1,
|
||||
@ -53,7 +56,8 @@ local skill_rogue = {
|
||||
["minnum"]=300,
|
||||
["maxnum"]=500
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=2
|
||||
},
|
||||
[5]={
|
||||
["universal"]=1,
|
||||
@ -67,7 +71,8 @@ local skill_rogue = {
|
||||
["minnum"]=800,
|
||||
["maxnum"]=1200
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=2
|
||||
},
|
||||
[6]={
|
||||
["universal"]=1,
|
||||
@ -81,7 +86,8 @@ local skill_rogue = {
|
||||
["minnum"]=1300,
|
||||
["maxnum"]=2000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=2
|
||||
},
|
||||
[7]={
|
||||
["universal"]=1,
|
||||
@ -95,7 +101,8 @@ local skill_rogue = {
|
||||
["minnum"]=300,
|
||||
["maxnum"]=500
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=3
|
||||
},
|
||||
[8]={
|
||||
["universal"]=1,
|
||||
@ -109,7 +116,8 @@ local skill_rogue = {
|
||||
["minnum"]=800,
|
||||
["maxnum"]=1200
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=3
|
||||
},
|
||||
[9]={
|
||||
["universal"]=1,
|
||||
@ -123,7 +131,8 @@ local skill_rogue = {
|
||||
["minnum"]=1300,
|
||||
["maxnum"]=2000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=3
|
||||
},
|
||||
[10]={
|
||||
["universal"]=1,
|
||||
@ -137,7 +146,8 @@ local skill_rogue = {
|
||||
["minnum"]=300,
|
||||
["maxnum"]=500
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=4
|
||||
},
|
||||
[11]={
|
||||
["universal"]=1,
|
||||
@ -151,7 +161,8 @@ local skill_rogue = {
|
||||
["minnum"]=800,
|
||||
["maxnum"]=1200
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=4
|
||||
},
|
||||
[12]={
|
||||
["universal"]=1,
|
||||
@ -165,7 +176,8 @@ local skill_rogue = {
|
||||
["minnum"]=1300,
|
||||
["maxnum"]=2000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=4
|
||||
},
|
||||
[13]={
|
||||
["universal"]=1,
|
||||
@ -179,7 +191,8 @@ local skill_rogue = {
|
||||
["minnum"]=300,
|
||||
["maxnum"]=500
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=5
|
||||
},
|
||||
[14]={
|
||||
["universal"]=1,
|
||||
@ -193,7 +206,8 @@ local skill_rogue = {
|
||||
["minnum"]=800,
|
||||
["maxnum"]=1200
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=5
|
||||
},
|
||||
[15]={
|
||||
["universal"]=1,
|
||||
@ -207,7 +221,8 @@ local skill_rogue = {
|
||||
["minnum"]=1300,
|
||||
["maxnum"]=2000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=5
|
||||
},
|
||||
[16]={
|
||||
["universal"]=1,
|
||||
@ -221,7 +236,8 @@ local skill_rogue = {
|
||||
["minnum"]=300,
|
||||
["maxnum"]=500
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=6
|
||||
},
|
||||
[17]={
|
||||
["universal"]=1,
|
||||
@ -235,7 +251,8 @@ local skill_rogue = {
|
||||
["minnum"]=800,
|
||||
["maxnum"]=1200
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=6
|
||||
},
|
||||
[18]={
|
||||
["universal"]=1,
|
||||
@ -249,7 +266,8 @@ local skill_rogue = {
|
||||
["minnum"]=1300,
|
||||
["maxnum"]=2000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=6
|
||||
},
|
||||
[19]={
|
||||
["universal"]=1,
|
||||
@ -265,7 +283,8 @@ local skill_rogue = {
|
||||
["round"]=0
|
||||
}
|
||||
},
|
||||
["obj"]=1
|
||||
["obj"]=1,
|
||||
["icon"]=7
|
||||
},
|
||||
[20]={
|
||||
["universal"]=1,
|
||||
@ -279,7 +298,8 @@ local skill_rogue = {
|
||||
["minnum"]=500,
|
||||
["maxnum"]=500
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=8
|
||||
},
|
||||
[21]={
|
||||
["universal"]=1,
|
||||
@ -293,7 +313,8 @@ local skill_rogue = {
|
||||
["minnum"]=300,
|
||||
["maxnum"]=500
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=9
|
||||
},
|
||||
[22]={
|
||||
["universal"]=1,
|
||||
@ -307,7 +328,8 @@ local skill_rogue = {
|
||||
["minnum"]=800,
|
||||
["maxnum"]=1200
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=9
|
||||
},
|
||||
[23]={
|
||||
["universal"]=1,
|
||||
@ -321,7 +343,8 @@ local skill_rogue = {
|
||||
["minnum"]=1300,
|
||||
["maxnum"]=2000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=9
|
||||
},
|
||||
[24]={
|
||||
["universal"]=1,
|
||||
@ -337,7 +360,8 @@ local skill_rogue = {
|
||||
["round"]=0
|
||||
}
|
||||
},
|
||||
["obj"]=1
|
||||
["obj"]=1,
|
||||
["icon"]=10
|
||||
},
|
||||
[25]={
|
||||
["universal"]=1,
|
||||
@ -351,7 +375,8 @@ local skill_rogue = {
|
||||
["minnum"]=100,
|
||||
["maxnum"]=100
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=11
|
||||
},
|
||||
[26]={
|
||||
["universal"]=1,
|
||||
@ -365,7 +390,8 @@ local skill_rogue = {
|
||||
["minnum"]=1000,
|
||||
["maxnum"]=1000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=12
|
||||
},
|
||||
[27]={
|
||||
["universal"]=1,
|
||||
@ -379,7 +405,8 @@ local skill_rogue = {
|
||||
["minnum"]=1000,
|
||||
["maxnum"]=1000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=13
|
||||
},
|
||||
[28]={
|
||||
["universal"]=1,
|
||||
@ -393,7 +420,8 @@ local skill_rogue = {
|
||||
["minnum"]=1000,
|
||||
["maxnum"]=1000
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=14
|
||||
},
|
||||
[29]={
|
||||
["universal"]=1,
|
||||
@ -408,7 +436,8 @@ local skill_rogue = {
|
||||
["round"]=0
|
||||
}
|
||||
},
|
||||
["obj"]=1
|
||||
["obj"]=1,
|
||||
["icon"]=20
|
||||
},
|
||||
[30]={
|
||||
["universal"]=1,
|
||||
@ -423,7 +452,8 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=2
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=15
|
||||
},
|
||||
[31]={
|
||||
["universal"]=1,
|
||||
@ -438,7 +468,8 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=4
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=15
|
||||
},
|
||||
[32]={
|
||||
["universal"]=1,
|
||||
@ -453,21 +484,29 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=5
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=15
|
||||
},
|
||||
[33]={
|
||||
["universal"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
["type"]=11,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
1
|
||||
}
|
||||
2
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=2
|
||||
}
|
||||
},
|
||||
["icon"]=16
|
||||
},
|
||||
[34]={
|
||||
["universal"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
["weight"]=2000,
|
||||
["qlt"]=3,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
2
|
||||
@ -475,26 +514,12 @@ local skill_rogue = {
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=2
|
||||
["range"]=4
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=16
|
||||
},
|
||||
[35]={
|
||||
["universal"]=1,
|
||||
["weight"]=2000,
|
||||
["qlt"]=3,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
2
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=4
|
||||
}
|
||||
}
|
||||
},
|
||||
[36]={
|
||||
["universal"]=1,
|
||||
["weight"]=1000,
|
||||
["qlt"]=4,
|
||||
@ -507,18 +532,10 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=5
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=16
|
||||
},
|
||||
[37]={
|
||||
["universal"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
["type"]=11,
|
||||
["parameter"]={
|
||||
2
|
||||
}
|
||||
},
|
||||
[38]={
|
||||
[36]={
|
||||
["universal"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
@ -531,9 +548,10 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=2
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=17
|
||||
},
|
||||
[39]={
|
||||
[37]={
|
||||
["universal"]=1,
|
||||
["weight"]=2000,
|
||||
["qlt"]=3,
|
||||
@ -546,9 +564,10 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=4
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=17
|
||||
},
|
||||
[40]={
|
||||
[38]={
|
||||
["universal"]=1,
|
||||
["weight"]=1000,
|
||||
["qlt"]=4,
|
||||
@ -561,16 +580,56 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=5
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=17
|
||||
},
|
||||
[41]={
|
||||
[39]={
|
||||
["universal"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
["type"]=11,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
3
|
||||
}
|
||||
4
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=2
|
||||
}
|
||||
},
|
||||
["icon"]=18
|
||||
},
|
||||
[40]={
|
||||
["universal"]=1,
|
||||
["weight"]=2000,
|
||||
["qlt"]=3,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
4
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=4
|
||||
}
|
||||
},
|
||||
["icon"]=18
|
||||
},
|
||||
[41]={
|
||||
["universal"]=1,
|
||||
["weight"]=1000,
|
||||
["qlt"]=4,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
4
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=5
|
||||
}
|
||||
},
|
||||
["icon"]=18
|
||||
},
|
||||
[42]={
|
||||
["universal"]=1,
|
||||
@ -578,14 +637,15 @@ local skill_rogue = {
|
||||
["qlt"]=2,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
4
|
||||
5
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=2
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=19
|
||||
},
|
||||
[43]={
|
||||
["universal"]=1,
|
||||
@ -593,70 +653,17 @@ local skill_rogue = {
|
||||
["qlt"]=3,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
4
|
||||
5
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=4
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=19
|
||||
},
|
||||
[44]={
|
||||
["universal"]=1,
|
||||
["weight"]=1000,
|
||||
["qlt"]=4,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
4
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=5
|
||||
}
|
||||
}
|
||||
},
|
||||
[45]={
|
||||
["universal"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
["type"]=11,
|
||||
["parameter"]={
|
||||
4
|
||||
}
|
||||
},
|
||||
[46]={
|
||||
["universal"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
5
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=2
|
||||
}
|
||||
}
|
||||
},
|
||||
[47]={
|
||||
["universal"]=1,
|
||||
["weight"]=2000,
|
||||
["qlt"]=3,
|
||||
["type"]=10,
|
||||
["parameter"]={
|
||||
5
|
||||
},
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=0,
|
||||
["range"]=4
|
||||
}
|
||||
}
|
||||
},
|
||||
[48]={
|
||||
["universal"]=1,
|
||||
["weight"]=1000,
|
||||
["qlt"]=4,
|
||||
@ -669,16 +676,8 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=5
|
||||
}
|
||||
}
|
||||
},
|
||||
[49]={
|
||||
["universal"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
["type"]=11,
|
||||
["parameter"]={
|
||||
5
|
||||
}
|
||||
},
|
||||
["icon"]=19
|
||||
},
|
||||
[200101]={
|
||||
["limit_times"]=1,
|
||||
@ -697,7 +696,8 @@ local skill_rogue = {
|
||||
["type"]=2,
|
||||
["range"]=1
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=200101
|
||||
},
|
||||
[200102]={
|
||||
["limit_times"]=2,
|
||||
@ -709,7 +709,8 @@ local skill_rogue = {
|
||||
},
|
||||
["skill_card"]={
|
||||
10
|
||||
}
|
||||
},
|
||||
["icon"]=200102
|
||||
},
|
||||
[200103]={
|
||||
["limit_times"]=1,
|
||||
@ -727,7 +728,8 @@ local skill_rogue = {
|
||||
["round"]=1
|
||||
}
|
||||
},
|
||||
["obj"]=2
|
||||
["obj"]=2,
|
||||
["icon"]=200103
|
||||
},
|
||||
[200201]={
|
||||
["limit_times"]=1,
|
||||
@ -739,7 +741,8 @@ local skill_rogue = {
|
||||
},
|
||||
["skill_card"]={
|
||||
20
|
||||
}
|
||||
},
|
||||
["icon"]=200201
|
||||
},
|
||||
[200202]={
|
||||
["limit_times"]=2,
|
||||
@ -752,7 +755,8 @@ local skill_rogue = {
|
||||
["skill_card"]={
|
||||
20,
|
||||
21
|
||||
}
|
||||
},
|
||||
["icon"]=200202
|
||||
},
|
||||
[200203]={
|
||||
["limit_times"]=1,
|
||||
@ -765,7 +769,8 @@ local skill_rogue = {
|
||||
["skill_card"]={
|
||||
20,
|
||||
21
|
||||
}
|
||||
},
|
||||
["icon"]=200203
|
||||
},
|
||||
[200301]={
|
||||
["limit_times"]=1,
|
||||
@ -774,19 +779,21 @@ local skill_rogue = {
|
||||
["type"]=4,
|
||||
["skill_card"]={
|
||||
30
|
||||
}
|
||||
},
|
||||
["icon"]=200301
|
||||
},
|
||||
[200302]={
|
||||
["limit_times"]=3,
|
||||
["weight"]=3000,
|
||||
["qlt"]=2,
|
||||
["type"]=3,
|
||||
["type"]=11,
|
||||
["parameter"]={
|
||||
1000
|
||||
},
|
||||
["skill_card"]={
|
||||
30
|
||||
}
|
||||
},
|
||||
["icon"]=200302
|
||||
},
|
||||
[200303]={
|
||||
["limit_times"]=2,
|
||||
@ -801,7 +808,8 @@ local skill_rogue = {
|
||||
["type"]=0,
|
||||
["range"]=2
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=200303
|
||||
},
|
||||
[200401]={
|
||||
["limit_times"]=1,
|
||||
@ -810,7 +818,8 @@ local skill_rogue = {
|
||||
["type"]=4,
|
||||
["skill_card"]={
|
||||
40
|
||||
}
|
||||
},
|
||||
["icon"]=200401
|
||||
},
|
||||
[200402]={
|
||||
["limit_times"]=2,
|
||||
@ -823,7 +832,8 @@ local skill_rogue = {
|
||||
},
|
||||
["skill_card"]={
|
||||
40
|
||||
}
|
||||
},
|
||||
["icon"]=200402
|
||||
},
|
||||
[200403]={
|
||||
["limit_times"]=1,
|
||||
@ -836,7 +846,8 @@ local skill_rogue = {
|
||||
},
|
||||
["skill_card"]={
|
||||
40
|
||||
}
|
||||
},
|
||||
["icon"]=200403
|
||||
},
|
||||
[200501]={
|
||||
["limit_times"]=1,
|
||||
@ -855,7 +866,8 @@ local skill_rogue = {
|
||||
["type"]=4,
|
||||
["range"]=1
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=200501
|
||||
},
|
||||
[200502]={
|
||||
["limit_times"]=2,
|
||||
@ -867,7 +879,8 @@ local skill_rogue = {
|
||||
},
|
||||
["skill_card"]={
|
||||
50
|
||||
}
|
||||
},
|
||||
["icon"]=200502
|
||||
},
|
||||
[200503]={
|
||||
["limit_times"]=1,
|
||||
@ -884,7 +897,8 @@ local skill_rogue = {
|
||||
["ratio"]=10000,
|
||||
["round"]=1
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=200503
|
||||
},
|
||||
[200601]={
|
||||
["limit_times"]=1,
|
||||
@ -893,7 +907,8 @@ local skill_rogue = {
|
||||
["type"]=4,
|
||||
["skill_card"]={
|
||||
60
|
||||
}
|
||||
},
|
||||
["icon"]=200601
|
||||
},
|
||||
[200602]={
|
||||
["limit_times"]=2,
|
||||
@ -905,7 +920,8 @@ local skill_rogue = {
|
||||
},
|
||||
["skill_card"]={
|
||||
60
|
||||
}
|
||||
},
|
||||
["icon"]=200602
|
||||
},
|
||||
[200603]={
|
||||
["limit_times"]=1,
|
||||
@ -922,7 +938,8 @@ local skill_rogue = {
|
||||
["ratio"]=10000,
|
||||
["round"]=1
|
||||
}
|
||||
}
|
||||
},
|
||||
["icon"]=200603
|
||||
},
|
||||
[200701]={
|
||||
["limit_times"]=1,
|
||||
@ -934,7 +951,8 @@ local skill_rogue = {
|
||||
},
|
||||
["skill_card"]={
|
||||
70
|
||||
}
|
||||
},
|
||||
["icon"]=200701
|
||||
},
|
||||
[200702]={
|
||||
["limit_times"]=2,
|
||||
@ -947,7 +965,8 @@ local skill_rogue = {
|
||||
["skill_card"]={
|
||||
70,
|
||||
71
|
||||
}
|
||||
},
|
||||
["icon"]=200702
|
||||
},
|
||||
[200703]={
|
||||
["limit_times"]=1,
|
||||
@ -960,7 +979,8 @@ local skill_rogue = {
|
||||
["skill_card"]={
|
||||
70,
|
||||
71
|
||||
}
|
||||
},
|
||||
["icon"]=200703
|
||||
},
|
||||
[200801]={
|
||||
["limit_times"]=1,
|
||||
@ -972,7 +992,8 @@ local skill_rogue = {
|
||||
},
|
||||
["skill_card"]={
|
||||
80
|
||||
}
|
||||
},
|
||||
["icon"]=200801
|
||||
},
|
||||
[200802]={
|
||||
["limit_times"]=2,
|
||||
@ -985,7 +1006,8 @@ local skill_rogue = {
|
||||
["skill_card"]={
|
||||
80,
|
||||
81
|
||||
}
|
||||
},
|
||||
["icon"]=200802
|
||||
},
|
||||
[200803]={
|
||||
["limit_times"]=1,
|
||||
@ -999,10 +1021,11 @@ local skill_rogue = {
|
||||
["skill_card"]={
|
||||
80,
|
||||
81
|
||||
}
|
||||
},
|
||||
["icon"]=200803
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -1,27 +1,27 @@
|
||||
local skill_hero = {
|
||||
[10]={
|
||||
["desc"]="将上下2格元素进行消除"
|
||||
["desc"]="长枪突刺:将上下2格元素进行消除"
|
||||
},
|
||||
[20]={
|
||||
["desc"]="使用一次无影腿终结技,造成大量伤害"
|
||||
["desc"]="拔刀斩:使用一次拔刀斩终结技,造成大量伤害"
|
||||
},
|
||||
[30]={
|
||||
["desc"]="随机额外消除2个元素"
|
||||
["desc"]="元素链接:随机额外消除2个元素"
|
||||
},
|
||||
[40]={
|
||||
["desc"]="生成一个金钟罩持续1回合,可承受最大生命值10%伤害"
|
||||
["desc"]="魔法罩:生成一个魔法罩持续1回合,可承受最大生命值10%伤害"
|
||||
},
|
||||
[50]={
|
||||
["desc"]="将左右2格元素进行消除"
|
||||
["desc"]="舞步消散:将左右2格元素进行消除"
|
||||
},
|
||||
[60]={
|
||||
["desc"]="立即恢复20%生命值"
|
||||
["desc"]="快速治愈:立即恢复20%生命值"
|
||||
},
|
||||
[70]={
|
||||
["desc"]="每一次攻击的伤害将增加50%"
|
||||
["desc"]="巨剑连斩:每一次攻击的伤害将增加50%"
|
||||
},
|
||||
[80]={
|
||||
["desc"]="额外造成1次伤害并给敌人1回合冰霜效果"
|
||||
["desc"]="霜冻剑舞:额外造成1次伤害并给敌人1回合冰霜效果"
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
|
||||
@ -1,57 +1,57 @@
|
||||
local skill_rogue = {
|
||||
[1]={
|
||||
["desc"]="全局攻击力+3%~5%"
|
||||
["desc"]="全局攻击力+{0}"
|
||||
},
|
||||
[2]={
|
||||
["desc"]="全局攻击力+8%~12%"
|
||||
["desc"]="全局攻击力+{0}"
|
||||
},
|
||||
[3]={
|
||||
["desc"]="全局攻击力+13%~20%"
|
||||
["desc"]="全局攻击力+{0}"
|
||||
},
|
||||
[4]={
|
||||
["desc"]="红色攻击+3%~5%"
|
||||
["desc"]="红色攻击+{0}"
|
||||
},
|
||||
[5]={
|
||||
["desc"]="红色攻击+8%~12%"
|
||||
["desc"]="红色攻击+{0}"
|
||||
},
|
||||
[6]={
|
||||
["desc"]="红色攻击+13%~20%"
|
||||
["desc"]="红色攻击+{0}"
|
||||
},
|
||||
[7]={
|
||||
["desc"]="黄色攻击+3%~5%"
|
||||
["desc"]="黄色攻击+{0}"
|
||||
},
|
||||
[8]={
|
||||
["desc"]="黄色攻击+8%~12%"
|
||||
["desc"]="黄色攻击+{0}"
|
||||
},
|
||||
[9]={
|
||||
["desc"]="黄色攻击+13%~20%"
|
||||
["desc"]="黄色攻击+{0}"
|
||||
},
|
||||
[10]={
|
||||
["desc"]="绿色攻击+3%~5%"
|
||||
["desc"]="绿色攻击+{0}"
|
||||
},
|
||||
[11]={
|
||||
["desc"]="绿色攻击+8%~12%"
|
||||
["desc"]="绿色攻击+{0}"
|
||||
},
|
||||
[12]={
|
||||
["desc"]="绿色攻击+13%~20%"
|
||||
["desc"]="绿色攻击+{0}"
|
||||
},
|
||||
[13]={
|
||||
["desc"]="蓝色攻击+3%~5%"
|
||||
["desc"]="蓝色攻击+{0}"
|
||||
},
|
||||
[14]={
|
||||
["desc"]="蓝色攻击+8%~12%"
|
||||
["desc"]="蓝色攻击+{0}"
|
||||
},
|
||||
[15]={
|
||||
["desc"]="蓝色攻击+13%~20%"
|
||||
["desc"]="蓝色攻击+{0}"
|
||||
},
|
||||
[16]={
|
||||
["desc"]="紫色攻击+3%~5%"
|
||||
["desc"]="紫色攻击+{0}"
|
||||
},
|
||||
[17]={
|
||||
["desc"]="紫色攻击+8%~12%"
|
||||
["desc"]="紫色攻击+{0}"
|
||||
},
|
||||
[18]={
|
||||
["desc"]="紫色攻击+13%~20%"
|
||||
["desc"]="紫色攻击+{0}"
|
||||
},
|
||||
[19]={
|
||||
["desc"]="角色血量低于50%时所有伤害增加40%"
|
||||
@ -60,13 +60,13 @@ local skill_rogue = {
|
||||
["desc"]="获得经验+5%"
|
||||
},
|
||||
[21]={
|
||||
["desc"]="最大生命值+3%~5%"
|
||||
["desc"]="最大生命值+{0}"
|
||||
},
|
||||
[22]={
|
||||
["desc"]="最大生命值+8%~12%"
|
||||
["desc"]="最大生命值+{0}"
|
||||
},
|
||||
[23]={
|
||||
["desc"]="最大生命值+13%~20%"
|
||||
["desc"]="最大生命值+{0}"
|
||||
},
|
||||
[24]={
|
||||
["desc"]="回合开始前生命值恢复1%"
|
||||
@ -96,130 +96,115 @@ local skill_rogue = {
|
||||
["desc"]="将场上随机5个非红色元素变为红色"
|
||||
},
|
||||
[33]={
|
||||
["desc"]="将场上所有红色元素变成2个"
|
||||
},
|
||||
[34]={
|
||||
["desc"]="将场上随机2个非黄色元素变为黄色"
|
||||
},
|
||||
[35]={
|
||||
[34]={
|
||||
["desc"]="将场上随机4个非黄色元素变为黄色"
|
||||
},
|
||||
[36]={
|
||||
[35]={
|
||||
["desc"]="将场上随机5个非黄色元素变为黄色"
|
||||
},
|
||||
[37]={
|
||||
["desc"]="将场上所有黄色元素变成2个"
|
||||
},
|
||||
[38]={
|
||||
[36]={
|
||||
["desc"]="将场上随机2个非绿色元素变为绿色"
|
||||
},
|
||||
[39]={
|
||||
[37]={
|
||||
["desc"]="将场上随机4个非绿色元素变为绿色"
|
||||
},
|
||||
[40]={
|
||||
[38]={
|
||||
["desc"]="将场上随机5个非绿色元素变为绿色"
|
||||
},
|
||||
[41]={
|
||||
["desc"]="将场上所有绿色元素变成2个"
|
||||
},
|
||||
[42]={
|
||||
[39]={
|
||||
["desc"]="将场上随机2个非蓝色元素变为蓝色"
|
||||
},
|
||||
[43]={
|
||||
[40]={
|
||||
["desc"]="将场上随机4个非蓝色元素变为蓝色"
|
||||
},
|
||||
[44]={
|
||||
[41]={
|
||||
["desc"]="将场上随机5个非蓝色元素变为蓝色"
|
||||
},
|
||||
[45]={
|
||||
["desc"]="将场上所有蓝色元素变成2个"
|
||||
},
|
||||
[46]={
|
||||
[42]={
|
||||
["desc"]="将场上随机2个非紫色元素变为紫色"
|
||||
},
|
||||
[47]={
|
||||
[43]={
|
||||
["desc"]="将场上随机4个非紫色元素变为紫色"
|
||||
},
|
||||
[48]={
|
||||
[44]={
|
||||
["desc"]="将场上随机5个非紫色元素变为紫色"
|
||||
},
|
||||
[49]={
|
||||
["desc"]="将场上所有紫色元素变成2个"
|
||||
},
|
||||
[200101]={
|
||||
["desc"]="王八拳可上下多消1格"
|
||||
["desc"]="长枪突刺可上下多消1格"
|
||||
},
|
||||
[200102]={
|
||||
["desc"]="连接王八拳伤害增加10%"
|
||||
["desc"]="跟长枪突刺连接线上的元素伤害增加10%"
|
||||
},
|
||||
[200103]={
|
||||
["desc"]="连接王八拳每次攻击有10%概率眩晕对手1回合。"
|
||||
["desc"]="连接长枪突刺每次攻击有10%概率眩晕对手1回合。"
|
||||
},
|
||||
[200201]={
|
||||
["desc"]="生成无影腿终结技时顺带将其底部3个元素变为金色"
|
||||
["desc"]="拔刀斩被连接时其上下左右4个元素变为金色元素"
|
||||
},
|
||||
[200202]={
|
||||
["desc"]="连接无影腿时伤害增加10%"
|
||||
["desc"]="跟拔刀斩连接线上的元素伤害增加10%"
|
||||
},
|
||||
[200203]={
|
||||
["desc"]="无影腿终结技可踢2次"
|
||||
["desc"]="拔刀斩终结技可放2次"
|
||||
},
|
||||
[200301]={
|
||||
["desc"]="闪电鞭可与任何颜色链接"
|
||||
["desc"]="元素链接可与任何颜色链接"
|
||||
},
|
||||
[200302]={
|
||||
["desc"]="被闪电鞭消除的元素造成的伤害提升10%"
|
||||
["desc"]="被元素链接技能消除的元素造成的伤害提升10%"
|
||||
},
|
||||
[200303]={
|
||||
["desc"]="闪电鞭随机消除元素增加2个"
|
||||
["desc"]="元素链接随机消除元素增加2个"
|
||||
},
|
||||
[200401]={
|
||||
["desc"]="金钟罩可与任何颜色链接"
|
||||
["desc"]="魔法罩可与任何颜色链接"
|
||||
},
|
||||
[200402]={
|
||||
["desc"]="增加金钟罩承受伤害10%"
|
||||
["desc"]="增加魔法罩承受伤害10%"
|
||||
},
|
||||
[200403]={
|
||||
["desc"]="生成的金钟罩额外持续1回合"
|
||||
["desc"]="生成的魔法罩如果没有破可以额外持续1回合"
|
||||
},
|
||||
[200501]={
|
||||
["desc"]="大鹏展翅左右可多消1格"
|
||||
["desc"]="舞步消散左右可多消1格"
|
||||
},
|
||||
[200502]={
|
||||
["desc"]="连接大鹏展翅伤害增加10%"
|
||||
["desc"]="跟舞步消散连接线上的元素伤害增加10%"
|
||||
},
|
||||
[200503]={
|
||||
["desc"]="每有1个元素连接大鹏展翅则本回合格挡增加2%"
|
||||
["desc"]="每有1个元素连接舞步消散则本回合格挡增加2%"
|
||||
},
|
||||
[200601]={
|
||||
["desc"]="丹田吐纳可与任何元素连接"
|
||||
["desc"]="快速治愈可与任何元素连接"
|
||||
},
|
||||
[200602]={
|
||||
["desc"]="连接丹田吐纳时伤害增加10%"
|
||||
["desc"]="跟快速治愈连接线上的元素伤害增加10%"
|
||||
},
|
||||
[200603]={
|
||||
["desc"]="连接丹田吐纳的每一击都将恢复2%生命值"
|
||||
["desc"]="连接快速治愈的每一击都将恢复2%生命值"
|
||||
},
|
||||
[200701]={
|
||||
["desc"]="疾风骤雨被连接时其上下左右4个元素变为金色元素"
|
||||
},
|
||||
[200702]={
|
||||
["desc"]="连接疾风骤雨时伤害增加10%"
|
||||
["desc"]="跟疾风骤雨连接线上的元素伤害增加10%"
|
||||
},
|
||||
[200703]={
|
||||
["desc"]="疾风骤雨被连接时周围8格元素变为金色元素"
|
||||
},
|
||||
[200801]={
|
||||
["desc"]="寒冰掌被使用时可消除掉其上下左右4个元素"
|
||||
["desc"]="霜冻剑舞被使用时可消除掉其上下左右4个元素"
|
||||
},
|
||||
[200802]={
|
||||
["desc"]="连接寒冰掌时伤害增加10%"
|
||||
["desc"]="跟霜冻剑舞连接线上的元素伤害增加10%"
|
||||
},
|
||||
[200803]={
|
||||
["desc"]="冰霜效果将持续2回合"
|
||||
["desc"]="霜冻剑舞造成的冰霜效果将持续2回合"
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -130,21 +130,6 @@ local skill_rogue = {
|
||||
},
|
||||
[44]={
|
||||
|
||||
},
|
||||
[45]={
|
||||
|
||||
},
|
||||
[46]={
|
||||
|
||||
},
|
||||
[47]={
|
||||
|
||||
},
|
||||
[48]={
|
||||
|
||||
},
|
||||
[49]={
|
||||
|
||||
},
|
||||
[200101]={
|
||||
|
||||
@ -220,6 +205,6 @@ local skill_rogue = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=skill_rogue,count=73
|
||||
data=skill_rogue,count=68
|
||||
}
|
||||
return config
|
||||
@ -14,6 +14,7 @@ BattleConst.MAX_ELEMENT_WIGHT = 500
|
||||
BattleConst.SIDE_ATK = 1
|
||||
BattleConst.SIDE_DEF = 2
|
||||
BattleConst.SKILL_TYPE_ACTIVE = 1
|
||||
BattleConst.SKILL_SELECT_COUNT = 3
|
||||
|
||||
-- 为方便存储,这里使用字符串
|
||||
BattleConst.BATTLE_TYPE = {
|
||||
@ -273,5 +274,4 @@ BattleConst.SKILL_METHOD_TYPE = {
|
||||
ON_ENTER = 1,
|
||||
ON_FINAL = 2,
|
||||
}
|
||||
|
||||
return BattleConst
|
||||
@ -10,6 +10,10 @@ local BATTLE_CONTROLLER = {
|
||||
[BattleConst.BATTLE_TYPE.STAGE] = "app/module/battle/controller/battle_controller_stage"
|
||||
}
|
||||
|
||||
function BattleManager:showSelectSkillUI(skillList)
|
||||
UIManager:showUI("app/ui/battle/battle_skill_select_ui", {skillList = skillList})
|
||||
end
|
||||
|
||||
function BattleManager:getPosInfo(posId)
|
||||
local posInfo = GConst.BattleConst.GRID_POS[posId]
|
||||
if not posInfo then
|
||||
@ -189,21 +193,29 @@ function BattleManager:getPosRC(posId)
|
||||
return BattleConst.POS_ID_2_RC[posId]
|
||||
end
|
||||
|
||||
function BattleManager:playBattle(params, battleType, returnFunc)
|
||||
function BattleManager:playBattle(battleType, params, returnFunc)
|
||||
if self.battleController then -- 同一时间只能有一场战斗
|
||||
self:clear()
|
||||
end
|
||||
self.returnFunc = returnFunc
|
||||
UIManager:stopCurrentBGM()
|
||||
self:_play(params, battleType)
|
||||
self:_play(battleType, params)
|
||||
end
|
||||
|
||||
function BattleManager:_play(params, battleType)
|
||||
function BattleManager:_play(battleType, params)
|
||||
local controllerPath = BATTLE_CONTROLLER[battleType] or BATTLE_CONTROLLER_BASE
|
||||
self.battleController = require(controllerPath):create()
|
||||
self.battleController:init(params)
|
||||
end
|
||||
|
||||
function BattleManager:onSelectSkill(skillId)
|
||||
if not self.battleController then
|
||||
return
|
||||
end
|
||||
|
||||
self.battleController:onSelectSkill(skillId)
|
||||
end
|
||||
|
||||
-- 结束战斗并退出
|
||||
function BattleManager:endBattleAndExit()
|
||||
if self.battleController then
|
||||
|
||||
@ -3,6 +3,7 @@ local BattleHelper = require "app/module/battle/helper/battle_helper"
|
||||
local BattleController = class("BattleController")
|
||||
|
||||
local BATTLE_BOARD_SKILL_HANDLE = require "app/module/battle/skill/battle_board_skill_handle"
|
||||
local BATTLE_ROGUE_SKILL_HANDLE = require "app/module/battle/skill/battle_rogue_skill_handle"
|
||||
|
||||
local ELIMINATION_TOUCH_EVENT = GConst.ELIMINATION_TOUCH_EVENT
|
||||
local BattleConst = GConst.BattleConst
|
||||
@ -16,6 +17,10 @@ function BattleController:getFixedRandomGrid()
|
||||
return {}
|
||||
end
|
||||
|
||||
function BattleController:getSealElementType()
|
||||
return {}
|
||||
end
|
||||
|
||||
-- 战斗对应的ui
|
||||
function BattleController:getBattleUIPath()
|
||||
return "app/ui/battle/battle_ui"
|
||||
@ -183,6 +188,12 @@ function BattleController:onTouchEvent(eventType, posId)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local lastEntity = DataManager.BattleData:getGridEntity(beforePosId)
|
||||
local lastSkillEntity = DataManager.BattleData:getSkillEntityBySkillId(lastEntity:getSkillId())
|
||||
local maskElementType = lastEntity:getElementType(lastSkillEntity)
|
||||
self.battleUI:showBoardMask(maskElementType)
|
||||
|
||||
self:findSkillInfluenceGrids()
|
||||
self:onLinkChange()
|
||||
return
|
||||
@ -198,6 +209,10 @@ function BattleController:onTouchEvent(eventType, posId)
|
||||
local lastSkillEntity = DataManager.BattleData:getSkillEntityBySkillId(lastSkillId)
|
||||
local lastElementType = lastEntity:getElementType(lastSkillEntity)
|
||||
|
||||
if skillEntity and DataManager.BattleData:getSequenceHadSkill() then
|
||||
return
|
||||
end
|
||||
|
||||
if not elementType or not lastElementType then
|
||||
else
|
||||
if lastElementType ~= elementType then
|
||||
@ -212,8 +227,10 @@ function BattleController:onTouchEvent(eventType, posId)
|
||||
if lastEntity:getNeedChangePos() and not entity:getNeedChangePos() then -- 需要移动到队列末尾
|
||||
local lastSkillId = lastEntity:getSkillId()
|
||||
local skillId = entity:getSkillId()
|
||||
local elementType = entity:getElementType()
|
||||
lastEntity:setSkilId(skillId)
|
||||
entity:setSkilId(lastSkillId)
|
||||
lastEntity:setElementType(elementType)
|
||||
end
|
||||
|
||||
if not lastElementType and elementType then
|
||||
@ -316,8 +333,6 @@ function BattleController:onEliminationAniOver()
|
||||
|
||||
DataManager.BattleData:clearGridSequence()
|
||||
|
||||
local sequence = {}
|
||||
|
||||
if sequence[1] then
|
||||
self.battleUI:eliminationAni(sequence, function()
|
||||
self:fillBoard()
|
||||
@ -329,7 +344,6 @@ function BattleController:onEliminationAniOver()
|
||||
end
|
||||
|
||||
function BattleController:fillBoard()
|
||||
-- todo临时暴力求解
|
||||
local pathMap = {}
|
||||
local columnCount = {}
|
||||
|
||||
@ -357,6 +371,9 @@ function BattleController:fillBoard()
|
||||
self.battleUI:fallGrid(pathMap, function()
|
||||
self:onFillBoardOver()
|
||||
self.battleUI:enableUITouch()
|
||||
|
||||
---- 临时
|
||||
ModuleManager.BattleManager:showSelectSkillUI(self:getRandomSkillList())
|
||||
end)
|
||||
end
|
||||
|
||||
@ -368,11 +385,8 @@ function BattleController:onFillBoardOver()
|
||||
end
|
||||
end
|
||||
|
||||
Logger.logHighlight("------onFillBoardOver-------")
|
||||
Logger.printTable(map)
|
||||
for elementType, skillId in pairs(map) do
|
||||
local list = DataManager.BattleData:getSameElementList(elementType, 1, true)
|
||||
Logger.printTable(list)
|
||||
local list = DataManager.BattleData:getSkillElementList(elementType, 1, true)
|
||||
for _, posId in ipairs(list) do
|
||||
local entity = DataManager.BattleData:getGridEntity(posId)
|
||||
if entity then
|
||||
@ -469,12 +483,14 @@ function BattleController:getRandomGridInfo()
|
||||
local indexs = {}
|
||||
local typeList = {}
|
||||
for typeName, typeNum in pairs(BattleConst.ELEMENT_TYPE) do
|
||||
local weight = ((map[typeNum] or 0) + 1) * BattleConst.ELEMENT_WIGHT
|
||||
if weight > BattleConst.MAX_ELEMENT_WIGHT then
|
||||
weight = BattleConst.MAX_ELEMENT_WIGHT
|
||||
if not self:getSealElementType()[typeNum] then
|
||||
local weight = ((map[typeNum] or 0) + 1) * BattleConst.ELEMENT_WIGHT
|
||||
if weight > BattleConst.MAX_ELEMENT_WIGHT then
|
||||
weight = BattleConst.MAX_ELEMENT_WIGHT
|
||||
end
|
||||
table.insert(indexs, weight)
|
||||
table.insert(typeList, typeNum)
|
||||
end
|
||||
table.insert(indexs, weight)
|
||||
table.insert(typeList, typeNum)
|
||||
end
|
||||
|
||||
local index = GFunc.getRandomIndex(indexs)
|
||||
@ -503,6 +519,84 @@ function BattleController:findSkillInfluenceGrids()
|
||||
end
|
||||
end
|
||||
|
||||
function BattleController:getRandomSkillList(getCount)
|
||||
getCount = getCount or BattleConst.SKILL_SELECT_COUNT
|
||||
local result = {}
|
||||
local cfg = ConfigManager:getConfig("skill_rogue")
|
||||
local skillPool = DataManager.BattleData:getSkillPool()
|
||||
local map = {}
|
||||
|
||||
local count = 0
|
||||
local newSkillPool = {}
|
||||
local skillWeight = {}
|
||||
for _, skillId in ipairs(skillPool) do
|
||||
local skillCfg = cfg[skillId]
|
||||
if skillCfg and not skillCfg.limit_times or DataManager.BattleData:getSkillCount(skillId) < skillCfg.limit_times then
|
||||
if not map[skillId] then
|
||||
table.insert(newSkillPool, skillId)
|
||||
table.insert(skillWeight, skillCfg.weight)
|
||||
count = count + 1
|
||||
map[skillId] = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if count > 0 then
|
||||
local index = GFunc.getRandomIndex(skillWeight)
|
||||
local skillId = table.remove(newSkillPool, index)
|
||||
table.remove(skillWeight, index)
|
||||
count = count - 1
|
||||
table.insert(result, skillId)
|
||||
getCount = getCount - 1
|
||||
end
|
||||
|
||||
for skillId, info in ipairs(cfg) do
|
||||
if info.universal then
|
||||
if not info.limit_times or DataManager.BattleData:getSkillCount(skillId) < info.limit_times then
|
||||
if not map[skillId] then
|
||||
table.insert(newSkillPool, skillId)
|
||||
table.insert(skillWeight, info.weight)
|
||||
count = count + 1
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
for i = 1, getCount do
|
||||
local index = GFunc.getRandomIndex(skillWeight)
|
||||
local skillId = table.remove(newSkillPool, index)
|
||||
table.remove(skillWeight, index)
|
||||
count = count - 1
|
||||
table.insert(result, skillId)
|
||||
end
|
||||
|
||||
return result
|
||||
end
|
||||
|
||||
function BattleController:onSelectSkill(skillId)
|
||||
DataManager.BattleData:addSkillCount(skillId)
|
||||
BATTLE_ROGUE_SKILL_HANDLE.takeEffect(skillId, DataManager.BattleData, self)
|
||||
end
|
||||
|
||||
function BattleController:changeElementType(count, elementType)
|
||||
local list = {}
|
||||
for _, entity in pairs(DataManager.BattleData:getGridEnties()) do
|
||||
if entity:canChangeInfo() and entity:getElementType() ~= elementType then
|
||||
table.insert(list, entity)
|
||||
end
|
||||
end
|
||||
|
||||
for i = 1, count do
|
||||
if not list[1] then
|
||||
break
|
||||
end
|
||||
local entity = table.remove(list, math.random(1, #list))
|
||||
if entity then
|
||||
entity:setElementType(elementType)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
---- 快照一次棋盘
|
||||
function BattleController:snapshotBoard()
|
||||
local snapshot = {}
|
||||
|
||||
@ -11,5 +11,18 @@ function BattleControllerStage:getFixedRandomGrid()
|
||||
return config.control_element
|
||||
end
|
||||
|
||||
function BattleControllerStage:getSealElementType()
|
||||
if not self.sealElementType then
|
||||
self.sealElementType = {}
|
||||
local config = ConfigManager:getConfig("chapter")[1]
|
||||
if config.seal_element then
|
||||
for _, elementType in ipairs(config.seal_element) do
|
||||
self.sealElementType[elementType] = true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return self.sealElementType
|
||||
end
|
||||
|
||||
return BattleControllerStage
|
||||
86
lua/app/module/battle/skill/battle_rogue_skill_handle.lua
Normal file
86
lua/app/module/battle/skill/battle_rogue_skill_handle.lua
Normal file
@ -0,0 +1,86 @@
|
||||
local BattleConst = require "app/module/battle/battle_const"
|
||||
local SKILL_ROGUE_CFG = ConfigManager:getConfig("skill_rogue")
|
||||
|
||||
local BattleRogueSkillHandle = {}
|
||||
|
||||
local _changeBaseSkill = function(skillInfo, battleData, battleController)
|
||||
if not skillInfo.skill_card or not skillInfo.parameter then
|
||||
return
|
||||
end
|
||||
local newSkillId = skillInfo.parameter[1]
|
||||
if not newSkillId then
|
||||
return
|
||||
end
|
||||
|
||||
for _, skillId in ipairs(skillInfo.skill_card) do
|
||||
battleData:changeSkillId(skillId, newSkillId)
|
||||
end
|
||||
end
|
||||
|
||||
local _addEliminationRange = function(skillInfo, battleData, battleController)
|
||||
if not skillInfo.skill_card or not skillInfo.boardrange then
|
||||
return
|
||||
end
|
||||
|
||||
for _, skillId in ipairs(skillInfo.skill_card) do
|
||||
local entity = battleData:getSkillEntityBySkillId(skillId)
|
||||
if entity then
|
||||
entity:addBoardRange(skillInfo.boardrange)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local _canLinkAnyElement = function(skillInfo, battleData, battleController)
|
||||
if not skillInfo.skill_card then
|
||||
return
|
||||
end
|
||||
|
||||
for _, skillId in ipairs(skillInfo.skill_card) do
|
||||
local entity = battleData:getSkillEntityBySkillId(skillId)
|
||||
if entity then
|
||||
entity:setIgnoreElementType(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local _changeElementType = function(skillInfo, battleData, battleController)
|
||||
if not skillInfo.boardrange or not skillInfo.parameter then
|
||||
return
|
||||
end
|
||||
|
||||
local elementType = skillInfo.parameter[1]
|
||||
local count = skillInfo.boardrange[1] and skillInfo.boardrange[1].range
|
||||
if not elementType or not count then
|
||||
return
|
||||
end
|
||||
|
||||
battleController:changeElementType(count, elementType)
|
||||
end
|
||||
|
||||
BattleRogueSkillHandle._effectOn = {
|
||||
[1] = _changeBaseSkill, -- 改变初始技能ID
|
||||
[2] = _addEliminationRange, -- 增加消除数量
|
||||
-- [3] = , -- 增加链接伤害
|
||||
[4] = _canLinkAnyElement, -- 可与任何技能连接
|
||||
-- [5] = , -- 纯粹增加属性
|
||||
-- [6] = -- 技能增加释放次数
|
||||
-- [7] = -- 增加技能效果参数(比如护盾的承伤增加)
|
||||
-- [8] = -- 增加技能效果持续回合(比如护盾从1回合改为2回合)
|
||||
-- [9] = -- 获得技能效果
|
||||
[10] = _changeElementType,-- 将场上随机几个元素变为某元素
|
||||
-- [11] = -- 技能消除的增加伤害
|
||||
}
|
||||
|
||||
function BattleRogueSkillHandle.takeEffect(skillId, battleData, battleController)
|
||||
local cfg = SKILL_ROGUE_CFG[skillId]
|
||||
if not cfg or not cfg.type then
|
||||
return
|
||||
end
|
||||
|
||||
local func = BattleRogueSkillHandle._effectOn[cfg.type]
|
||||
if func then
|
||||
func(cfg, battleData, battleController)
|
||||
end
|
||||
end
|
||||
|
||||
return BattleRogueSkillHandle
|
||||
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e1e3f3a99d916fe4ab7cd7b10e9dea69
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||
47
lua/app/ui/battle/battle_skill_select_ui.lua
Normal file
47
lua/app/ui/battle/battle_skill_select_ui.lua
Normal file
@ -0,0 +1,47 @@
|
||||
local BattleSkillSelectUI = class("BattleSkillSelectUI", BaseUI)
|
||||
|
||||
local SELECT_SKILL_CELL = "app/ui/battle/cell/battle_select_skill_cell"
|
||||
|
||||
function BattleSkillSelectUI:isFullScreen()
|
||||
return false
|
||||
end
|
||||
|
||||
function BattleSkillSelectUI:showCommonBG()
|
||||
return false
|
||||
end
|
||||
|
||||
function BattleSkillSelectUI:getPrefabPath()
|
||||
return "assets/prefabs/ui/battle/battle_skill_select_ui.prefab"
|
||||
end
|
||||
|
||||
function BattleSkillSelectUI:ctor(params)
|
||||
self.skillList = params.skillList or {}
|
||||
end
|
||||
|
||||
function BattleSkillSelectUI:onLoadRootComplete()
|
||||
local uiMap = self.root:genAllChildren()
|
||||
if not self.selectSkillCells then
|
||||
self.selectSkillCells = {}
|
||||
for i = 1, 3 do
|
||||
self.selectSkillCells[i] = CellManager:addCellComp(uiMap["battle_skill_select_ui.skill_node.skill_select_cell_" .. i], SELECT_SKILL_CELL)
|
||||
end
|
||||
end
|
||||
|
||||
for index, cell in ipairs(self.selectSkillCells) do
|
||||
local skillId = self.skillList[index]
|
||||
cell:getBaseObject():setActive(skillId ~= nil)
|
||||
if skillId then
|
||||
cell:refresh(skillId, function()
|
||||
self:onClickSkill(skillId)
|
||||
end)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function BattleSkillSelectUI:onClickSkill(skillId)
|
||||
Logger.logHighlight(skillId)
|
||||
ModuleManager.BattleManager:onSelectSkill(skillId)
|
||||
self:closeUI()
|
||||
end
|
||||
|
||||
return BattleSkillSelectUI
|
||||
10
lua/app/ui/battle/battle_skill_select_ui.lua.meta
Normal file
10
lua/app/ui/battle/battle_skill_select_ui.lua.meta
Normal file
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9489f9db09c66f74691dba45aa6ef6fa
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||
@ -50,6 +50,7 @@ function BattleUI:initSkill()
|
||||
mask = uiMap[prefix .. ".mask"],
|
||||
}
|
||||
self.skillObjs[elementType].imgComp = self.skillObjs[elementType].mask:getComponent(GConst.TYPEOF_UNITY_CLASS.UI_IMAGE)
|
||||
self.skillObjs[elementType].imgComp.fillAmount = 1
|
||||
self.skillObjs[elementType].icon:setSprite(GConst.ATLAS_PATH.ICON_SKILL, skillEntity:getBattleIcon())
|
||||
self.skillObjs[elementType].mask:setSprite(GConst.ATLAS_PATH.ICON_SKILL, skillEntity:getBattleIcon())
|
||||
end
|
||||
@ -163,7 +164,6 @@ function BattleUI:showBoardMask(elementType)
|
||||
end
|
||||
|
||||
function BattleUI:eliminationAni(sequence, callback)
|
||||
Logger.printTable(sequence)
|
||||
if not sequence then
|
||||
if callback then
|
||||
callback()
|
||||
|
||||
15
lua/app/ui/battle/cell/battle_select_skill_cell.lua
Normal file
15
lua/app/ui/battle/cell/battle_select_skill_cell.lua
Normal file
@ -0,0 +1,15 @@
|
||||
local BattleSelectSkillCell = class("BattleSelectSkillCell", BaseCell)
|
||||
|
||||
function BattleSelectSkillCell:refresh(skillId, func)
|
||||
local cfg = ConfigManager:getConfig("skill_rogue")[skillId]
|
||||
local i18Cfg = I18N:getConfig("skill_rogue")[skillId]
|
||||
if not cfg or not i18Cfg then
|
||||
return
|
||||
end
|
||||
|
||||
local uiMap = self:getUIMap()
|
||||
uiMap["skill_select_cell.desc"]:setText(i18Cfg.desc)
|
||||
self:getBaseObject():addClickListener(func)
|
||||
end
|
||||
|
||||
return BattleSelectSkillCell
|
||||
10
lua/app/ui/battle/cell/battle_select_skill_cell.lua.meta
Normal file
10
lua/app/ui/battle/cell/battle_select_skill_cell.lua.meta
Normal file
@ -0,0 +1,10 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f5bd2c1d02e79c49b83ac28ba16ac09
|
||||
ScriptedImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
script: {fileID: 11500000, guid: 3b8b241bab4a4ac9a22fcce9c64f1242, type: 3}
|
||||
@ -50,7 +50,7 @@ function GridCell:refresh(gridEntity, curElement)
|
||||
self:showCircle(gridEntity:getNeedElimination())
|
||||
self:showHighLight(false)
|
||||
--- 测试代码
|
||||
uiMap["grid_cell.touch_node.ani_node.count"]:setText(gridEntity:getAroundEliminationCount())
|
||||
-- uiMap["grid_cell.touch_node.ani_node.count"]:setText(gridEntity:getAroundEliminationCount())
|
||||
end
|
||||
|
||||
function GridCell:addTouchListener(func)
|
||||
|
||||
@ -41,7 +41,7 @@ function MainComp:refresh()
|
||||
end
|
||||
|
||||
function MainComp:onFightBtnClick()
|
||||
ModuleManager.BattleManager:playBattle(nil, GConst.BattleConst.BATTLE_TYPE.STAGE)
|
||||
ModuleManager.BattleManager:playBattle(GConst.BattleConst.BATTLE_TYPE.STAGE)
|
||||
end
|
||||
|
||||
function MainComp:refreshChapter()
|
||||
|
||||
@ -10,7 +10,7 @@ local BATTLE_BOARD_SKILL_ENTITY = require "app/userdata/battle/skill/battle_bora
|
||||
local ATTR_TYPE = GConst.ATTR_TYPE
|
||||
local DEFAULT_FACTOR = GConst.DEFAULT_FACTOR
|
||||
|
||||
function BattleData:init(board, skillIds)
|
||||
function BattleData:init(board, skillIds, skillPool)
|
||||
self:clear()
|
||||
self.atkTeam = self:initTeam(BattleConst.SIDE_ATK)
|
||||
self.defTeam = self:initTeam(BattleConst.SIDE_DEF)
|
||||
@ -48,6 +48,9 @@ function BattleData:init(board, skillIds)
|
||||
local cfg = SKILL_HERO_CFG[skillId]
|
||||
self.skillMap[cfg.position] = BATTLE_BOARD_SKILL_ENTITY:create(skillId)
|
||||
end
|
||||
|
||||
---- skillPool
|
||||
self.skillPool = skillPool or {200301}
|
||||
end
|
||||
|
||||
function BattleData:clear()
|
||||
@ -56,6 +59,7 @@ function BattleData:clear()
|
||||
self.gridEntities = {}
|
||||
self.elementTypeMap = {} -- 同元素得格子数量
|
||||
self.skillMap = {}
|
||||
self.selectSkillMap = {}
|
||||
end
|
||||
|
||||
function BattleData:getElementTypeMap()
|
||||
@ -70,6 +74,16 @@ function BattleData:alreadyInsertSequence(posId)
|
||||
return self.gridSequenceMap[posId] == true
|
||||
end
|
||||
|
||||
function BattleData:getSequenceHadSkill()
|
||||
for _, info in ipairs(self:getGridSequence()) do
|
||||
local entity = self.gridEntities[info.posId]
|
||||
if entity and entity:getSkillId() then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
function BattleData:insertGridSequence(posId, snapshot)
|
||||
if self:alreadyInsertSequence(posId) then
|
||||
return false
|
||||
@ -168,7 +182,7 @@ function BattleData:setGridInfo(posId, gridInfo)
|
||||
entity:setSkilId() -- 清除skillId
|
||||
end
|
||||
|
||||
function BattleData:getSameElementList(elementType, count, useAlternate)
|
||||
function BattleData:getSkillElementList(elementType, count, useAlternate)
|
||||
local result = {}
|
||||
if not self.gridEntities then
|
||||
return result
|
||||
@ -176,31 +190,52 @@ function BattleData:getSameElementList(elementType, count, useAlternate)
|
||||
|
||||
local sameElementList = {}
|
||||
local alternateList = {}
|
||||
for posId, entity in pairs(self.gridEntities) do
|
||||
if entity:canChangeInfo() then
|
||||
if entity:getElementType() == elementType then
|
||||
table.insert(sameElementList, posId)
|
||||
else
|
||||
table.insert(alternateList, posId)
|
||||
local addCount = 0
|
||||
|
||||
for row = 1, BattleConst.ROW_COUNT do
|
||||
for column = 1, BattleConst.COLUMN_COUNT do
|
||||
local posId = ModuleManager.BattleManager:getPosId(row, column)
|
||||
local entity = self.gridEntities[posId]
|
||||
if entity and entity:canChangeInfo() then
|
||||
if entity:getElementType() == elementType then
|
||||
table.insert(sameElementList, posId)
|
||||
else
|
||||
table.insert(alternateList, posId)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local addCount = 0
|
||||
for i = 1, count do
|
||||
if not sameElementList[i] then
|
||||
break
|
||||
local remainCount = count - addCount
|
||||
if remainCount <= 0 then
|
||||
return result
|
||||
end
|
||||
table.insert(result, table.remove(sameElementList, math.random(1, #sameElementList)))
|
||||
addCount = addCount + 1
|
||||
end
|
||||
|
||||
if addCount < count and useAlternate then
|
||||
for i = 1, count - addCount do
|
||||
if not alternateList[1] then
|
||||
for i = 1, remainCount do
|
||||
if not sameElementList[i] then
|
||||
break
|
||||
end
|
||||
table.insert(result, table.remove(alternateList, math.random(1, #alternateList)))
|
||||
table.insert(result, table.remove(sameElementList, math.random(1, #sameElementList)))
|
||||
addCount = addCount + 1
|
||||
if addCount >= count then
|
||||
return result
|
||||
end
|
||||
end
|
||||
|
||||
if addCount < count and useAlternate then
|
||||
for i = 1, count - addCount do
|
||||
if not alternateList[1] then
|
||||
break
|
||||
end
|
||||
table.insert(result, table.remove(alternateList, math.random(1, #alternateList)))
|
||||
addCount = addCount + 1
|
||||
if addCount >= count then
|
||||
return result
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if addCount >= count then
|
||||
return result
|
||||
end
|
||||
end
|
||||
|
||||
@ -218,7 +253,6 @@ function BattleData:getSkillEntityByElement(elementType)
|
||||
return self.skillMap[elementType]
|
||||
end
|
||||
|
||||
|
||||
function BattleData:getSkillEntityBySkillId(skillId)
|
||||
if not self.skillMap or not skillId then
|
||||
return
|
||||
@ -240,6 +274,32 @@ function BattleData:addSkillEnergy(elementMap)
|
||||
end
|
||||
end
|
||||
|
||||
function BattleData:addSkillCount(skillId)
|
||||
if not self.selectSkillMap[skillId] then
|
||||
self.selectSkillMap[skillId] = 0
|
||||
end
|
||||
self.selectSkillMap[skillId] = self.selectSkillMap[skillId] + 1
|
||||
end
|
||||
|
||||
function BattleData:getSkillCount(skillId)
|
||||
return self.selectSkillMap[skillId] or 0
|
||||
end
|
||||
|
||||
function BattleData:getSkillPool()
|
||||
return self.skillPool
|
||||
end
|
||||
|
||||
function BattleData:changeSkillId(originId, newId)
|
||||
if not newId then
|
||||
return
|
||||
end
|
||||
|
||||
local entity = DataManager.BattleData:getSkillEntityBySkillId(originId)
|
||||
if entity then
|
||||
entity:refreshSkillId(newId)
|
||||
end
|
||||
end
|
||||
|
||||
function BattleData:initTeam(side)
|
||||
local data = nil
|
||||
if side == BattleConst.SIDE_ATK then
|
||||
|
||||
@ -3,6 +3,7 @@ local BattleBoardSkillEnity = class("BattleBoardSkillEnity", BaseData)
|
||||
function BattleBoardSkillEnity:ctor(skillId)
|
||||
self:refreshSkillId(skillId)
|
||||
self.curEnergy = 0
|
||||
self.addRange = {}
|
||||
end
|
||||
|
||||
function BattleBoardSkillEnity:refreshSkillId(skillId)
|
||||
@ -50,10 +51,36 @@ function BattleBoardSkillEnity:getSkillTypeParameter()
|
||||
end
|
||||
|
||||
function BattleBoardSkillEnity:getBoardRange()
|
||||
if not self.config then
|
||||
if not self.config or not self.config.boardrange then
|
||||
return
|
||||
end
|
||||
return self.config.boardrange
|
||||
|
||||
local boardRangeList = {}
|
||||
for _, info in ipairs(self.config.boardrange) do
|
||||
local singleInfo = {
|
||||
type = info.type,
|
||||
range = info.range
|
||||
}
|
||||
if self.addRange[info.type] then
|
||||
singleInfo.range = singleInfo.range + info.range
|
||||
end
|
||||
table.insert(boardRangeList, singleInfo)
|
||||
end
|
||||
|
||||
return boardRangeList
|
||||
end
|
||||
|
||||
function BattleBoardSkillEnity:addBoardRange(range)
|
||||
for _, info in ipairs(range) do
|
||||
if self.addRange[info.type] then
|
||||
self.addRange[info.type] = self.addRange[info.type] + info.range
|
||||
else
|
||||
self.addRange[info.type] = info.range
|
||||
end
|
||||
if self.addRange[info.type] < 0 then
|
||||
self.addRange[info.type] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function BattleBoardSkillEnity:getEffect()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user