Merge branch 'dev' of git.juzugame.com:b6-client/b6-lua into dev
This commit is contained in:
commit
0c1255a8f8
@ -362,6 +362,29 @@ function table.shuffle(t)
|
||||
return tab
|
||||
end
|
||||
|
||||
function table.clear(t)
|
||||
if not t then
|
||||
return
|
||||
end
|
||||
if type(t) ~= "table" then
|
||||
return
|
||||
end
|
||||
for key, v in pairs(t) do
|
||||
t[key] = nil
|
||||
end
|
||||
end
|
||||
|
||||
function table.clearOrCreate(t)
|
||||
if not t then
|
||||
return {}
|
||||
end
|
||||
if type(t) ~= "table" then
|
||||
return {}
|
||||
end
|
||||
table.clear(t)
|
||||
return t
|
||||
end
|
||||
|
||||
---查找一个满足条件的元素
|
||||
function table.find(t, predict)
|
||||
for k, v in pairs(t) do
|
||||
|
||||
@ -257,7 +257,7 @@ local buff = {
|
||||
["decr"]=1,
|
||||
["formula"]=3,
|
||||
["fx_get"]={
|
||||
300025
|
||||
300027
|
||||
}
|
||||
},
|
||||
[33]={
|
||||
|
||||
@ -5,7 +5,7 @@ local buff_daily_challenge = {
|
||||
{
|
||||
["type"]="exp_time_add",
|
||||
["num"]=1000,
|
||||
["ratio"]=1000,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
@ -17,7 +17,7 @@ local buff_daily_challenge = {
|
||||
{
|
||||
["type"]="dmg_addition_all_add",
|
||||
["num"]=500,
|
||||
["ratio"]=1000,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
@ -29,7 +29,7 @@ local buff_daily_challenge = {
|
||||
{
|
||||
["type"]="dec_dmg_all_add",
|
||||
["num"]=1000,
|
||||
["ratio"]=1000,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
@ -40,14 +40,14 @@ local buff_daily_challenge = {
|
||||
["effect"]={
|
||||
{
|
||||
["type"]="crit_add",
|
||||
["num"]=2000,
|
||||
["ratio"]=1000,
|
||||
["num"]=1000,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
},
|
||||
{
|
||||
["type"]="crit_time_add",
|
||||
["num"]=3000,
|
||||
["ratio"]=1000,
|
||||
["num"]=1500,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
@ -59,7 +59,7 @@ local buff_daily_challenge = {
|
||||
{
|
||||
["type"]="skill_hurt_add",
|
||||
["num"]=1500,
|
||||
["ratio"]=1000,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
@ -69,13 +69,13 @@ local buff_daily_challenge = {
|
||||
["buff_type"]=1,
|
||||
["effect"]={
|
||||
{
|
||||
["type"]="wavehealp",
|
||||
["num"]=100,
|
||||
["type"]="add_skill",
|
||||
["num"]=8,
|
||||
["ratio"]=10000,
|
||||
["round"]=0
|
||||
}
|
||||
},
|
||||
["obj"]=1
|
||||
["obj"]=8
|
||||
},
|
||||
[7]={
|
||||
["buff_type"]=1,
|
||||
@ -83,37 +83,25 @@ local buff_daily_challenge = {
|
||||
{
|
||||
["type"]="cured_add",
|
||||
["num"]=500,
|
||||
["ratio"]=500,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
["obj"]=1
|
||||
},
|
||||
[8]={
|
||||
["buff_type"]=1,
|
||||
["effect"]={
|
||||
{
|
||||
["type"]="wavehealp",
|
||||
["num"]=100,
|
||||
["ratio"]=10000,
|
||||
["round"]=0
|
||||
}
|
||||
},
|
||||
["obj"]=1
|
||||
},
|
||||
[9]={
|
||||
["buff_type"]=2,
|
||||
["effect"]={
|
||||
{
|
||||
["type"]="atkp_add",
|
||||
["num"]=500,
|
||||
["ratio"]=1000,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
["obj"]=2
|
||||
},
|
||||
[10]={
|
||||
[9]={
|
||||
["buff_type"]=2,
|
||||
["effect"]={
|
||||
{
|
||||
@ -125,7 +113,7 @@ local buff_daily_challenge = {
|
||||
},
|
||||
["obj"]=2
|
||||
},
|
||||
[11]={
|
||||
[10]={
|
||||
["buff_type"]=2,
|
||||
["effect"]={
|
||||
{
|
||||
@ -137,37 +125,37 @@ local buff_daily_challenge = {
|
||||
},
|
||||
["obj"]=2
|
||||
},
|
||||
[12]={
|
||||
[11]={
|
||||
["buff_type"]=2,
|
||||
["effect"]={
|
||||
{
|
||||
["type"]="cured_dec",
|
||||
["num"]=1000,
|
||||
["ratio"]=1000,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
["obj"]=1
|
||||
},
|
||||
[12]={
|
||||
["buff_type"]=2,
|
||||
["effect"]={
|
||||
{
|
||||
["type"]="block",
|
||||
["num"]=500,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
["obj"]=2
|
||||
},
|
||||
[13]={
|
||||
["buff_type"]=2,
|
||||
["effect"]={
|
||||
{
|
||||
["type"]="block",
|
||||
["num"]=500,
|
||||
["ratio"]=1000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
["obj"]=2
|
||||
},
|
||||
[14]={
|
||||
["buff_type"]=2,
|
||||
["effect"]={
|
||||
{
|
||||
["type"]="dec_dmg_all_add",
|
||||
["num"]=500,
|
||||
["ratio"]=1000,
|
||||
["ratio"]=10000,
|
||||
["round"]=999
|
||||
}
|
||||
},
|
||||
@ -175,6 +163,6 @@ local buff_daily_challenge = {
|
||||
}
|
||||
}
|
||||
local config = {
|
||||
data=buff_daily_challenge,count=14
|
||||
data=buff_daily_challenge,count=13
|
||||
}
|
||||
return config
|
||||
@ -123,12 +123,12 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=28
|
||||
["weight"]=100
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
11000,
|
||||
11000
|
||||
}
|
||||
},
|
||||
[2]={
|
||||
@ -274,12 +274,12 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=28
|
||||
["weight"]=100
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
11000,
|
||||
11000
|
||||
}
|
||||
},
|
||||
[3]={
|
||||
@ -420,12 +420,12 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=28
|
||||
["weight"]=100
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
11000,
|
||||
11000
|
||||
}
|
||||
},
|
||||
[4]={
|
||||
@ -617,12 +617,12 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=28
|
||||
["weight"]=100
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
11000,
|
||||
11000
|
||||
}
|
||||
},
|
||||
[5]={
|
||||
@ -814,18 +814,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=28
|
||||
["weight"]=90
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=2
|
||||
["weight"]=10
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
12672,
|
||||
15334
|
||||
}
|
||||
},
|
||||
[6]={
|
||||
@ -1017,18 +1017,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=25
|
||||
["weight"]=85
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=5
|
||||
["weight"]=15
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
13453,
|
||||
16814
|
||||
}
|
||||
},
|
||||
[7]={
|
||||
@ -1236,18 +1236,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=25
|
||||
["weight"]=85
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=5
|
||||
["weight"]=15
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
15389,
|
||||
19894
|
||||
}
|
||||
},
|
||||
[8]={
|
||||
@ -1455,18 +1455,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=25
|
||||
["weight"]=85
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=5
|
||||
["weight"]=15
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
17688,
|
||||
23408
|
||||
}
|
||||
},
|
||||
[9]={
|
||||
@ -1674,18 +1674,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=25
|
||||
["weight"]=85
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=5
|
||||
["weight"]=15
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
19289,
|
||||
26153
|
||||
}
|
||||
},
|
||||
[10]={
|
||||
@ -1893,18 +1893,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=25
|
||||
["weight"]=85
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=5
|
||||
["weight"]=15
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
22561,
|
||||
31119
|
||||
}
|
||||
},
|
||||
[11]={
|
||||
@ -2112,18 +2112,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=23
|
||||
["weight"]=80
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=7
|
||||
["weight"]=20
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
26466,
|
||||
35657
|
||||
}
|
||||
},
|
||||
[12]={
|
||||
@ -2331,18 +2331,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=23
|
||||
["weight"]=80
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=7
|
||||
["weight"]=20
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
27220,
|
||||
38682
|
||||
}
|
||||
},
|
||||
[13]={
|
||||
@ -2550,18 +2550,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=23
|
||||
["weight"]=80
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=7
|
||||
["weight"]=20
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
28479,
|
||||
41052
|
||||
}
|
||||
},
|
||||
[14]={
|
||||
@ -2769,18 +2769,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=23
|
||||
["weight"]=80
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=7
|
||||
["weight"]=20
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
30899,
|
||||
45133
|
||||
}
|
||||
},
|
||||
[15]={
|
||||
@ -2988,18 +2988,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=23
|
||||
["weight"]=80
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=7
|
||||
["weight"]=20
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
31774,
|
||||
46992
|
||||
}
|
||||
},
|
||||
[16]={
|
||||
@ -3207,18 +3207,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=20
|
||||
["weight"]=75
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=10
|
||||
["weight"]=25
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
33633,
|
||||
50331
|
||||
}
|
||||
},
|
||||
[17]={
|
||||
@ -3426,18 +3426,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=20
|
||||
["weight"]=75
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=10
|
||||
["weight"]=25
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
35024,
|
||||
53042
|
||||
}
|
||||
},
|
||||
[18]={
|
||||
@ -3645,18 +3645,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=20
|
||||
["weight"]=75
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=10
|
||||
["weight"]=25
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
37136,
|
||||
56738
|
||||
}
|
||||
},
|
||||
[19]={
|
||||
@ -3864,18 +3864,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=20
|
||||
["weight"]=75
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=10
|
||||
["weight"]=25
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
38143,
|
||||
59004
|
||||
}
|
||||
},
|
||||
[20]={
|
||||
@ -4083,18 +4083,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=20
|
||||
["weight"]=75
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=10
|
||||
["weight"]=25
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
40535,
|
||||
63234
|
||||
}
|
||||
},
|
||||
[21]={
|
||||
@ -4302,18 +4302,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=18
|
||||
["weight"]=70
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=12
|
||||
["weight"]=30
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
42114,
|
||||
66275
|
||||
}
|
||||
},
|
||||
[22]={
|
||||
@ -4521,18 +4521,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=18
|
||||
["weight"]=70
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=12
|
||||
["weight"]=30
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
44759,
|
||||
70994
|
||||
}
|
||||
},
|
||||
[23]={
|
||||
@ -4740,18 +4740,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=18
|
||||
["weight"]=70
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=12
|
||||
["weight"]=30
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
46690,
|
||||
74635
|
||||
}
|
||||
},
|
||||
[24]={
|
||||
@ -4959,18 +4959,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=18
|
||||
["weight"]=70
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=12
|
||||
["weight"]=30
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
47564,
|
||||
76615
|
||||
}
|
||||
},
|
||||
[25]={
|
||||
@ -5178,18 +5178,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=18
|
||||
["weight"]=70
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=12
|
||||
["weight"]=30
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
51332,
|
||||
83375
|
||||
}
|
||||
},
|
||||
[26]={
|
||||
@ -5397,18 +5397,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=65
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=35
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
52333,
|
||||
85564
|
||||
}
|
||||
},
|
||||
[27]={
|
||||
@ -5616,18 +5616,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=65
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=35
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
56568,
|
||||
93055
|
||||
}
|
||||
},
|
||||
[28]={
|
||||
@ -5835,18 +5835,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=65
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=35
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
61303,
|
||||
101426
|
||||
}
|
||||
},
|
||||
[29]={
|
||||
@ -6054,18 +6054,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=65
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=35
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
56931,
|
||||
94804
|
||||
}
|
||||
},
|
||||
[30]={
|
||||
@ -6272,18 +6272,18 @@ local chapter = {
|
||||
["type"]=1,
|
||||
["id"]=4,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=65
|
||||
},
|
||||
{
|
||||
["type"]=1,
|
||||
["id"]=5,
|
||||
["num"]=1,
|
||||
["weight"]=15
|
||||
["weight"]=35
|
||||
}
|
||||
},
|
||||
["daily_challenge_difficulty"]={
|
||||
30000,
|
||||
30000
|
||||
62926,
|
||||
105386
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -3673,7 +3673,7 @@ local chapter_board = {
|
||||
3
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3681,7 +3681,7 @@ local chapter_board = {
|
||||
4
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3689,7 +3689,7 @@ local chapter_board = {
|
||||
3
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3697,7 +3697,7 @@ local chapter_board = {
|
||||
3
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3705,7 +3705,7 @@ local chapter_board = {
|
||||
4
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3713,7 +3713,7 @@ local chapter_board = {
|
||||
4
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3721,35 +3721,35 @@ local chapter_board = {
|
||||
4
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3871,7 +3871,7 @@ local chapter_board = {
|
||||
3
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3879,7 +3879,7 @@ local chapter_board = {
|
||||
4
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3887,7 +3887,7 @@ local chapter_board = {
|
||||
3
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3895,7 +3895,7 @@ local chapter_board = {
|
||||
3
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3903,7 +3903,7 @@ local chapter_board = {
|
||||
4
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3911,7 +3911,7 @@ local chapter_board = {
|
||||
4
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
@ -3919,35 +3919,35 @@ local chapter_board = {
|
||||
4
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
3,
|
||||
2,
|
||||
0
|
||||
},
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -111,7 +111,7 @@ local const = {
|
||||
["value"]=600
|
||||
},
|
||||
["idle_item_drop_time"]={
|
||||
["value"]=600
|
||||
["value"]=1800
|
||||
},
|
||||
["idle_drop_fast_times_1"]={
|
||||
["value"]=2
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -972,6 +972,9 @@ local monster_chapter = {
|
||||
30065,
|
||||
30066
|
||||
},
|
||||
["skill"]={
|
||||
10023
|
||||
},
|
||||
["monster_exp"]=18000
|
||||
},
|
||||
[7601]={
|
||||
@ -1097,6 +1100,9 @@ local monster_chapter = {
|
||||
30065,
|
||||
30066
|
||||
},
|
||||
["skill"]={
|
||||
10023
|
||||
},
|
||||
["monster_exp"]=24000
|
||||
},
|
||||
[8601]={
|
||||
@ -1163,6 +1169,9 @@ local monster_chapter = {
|
||||
10067,
|
||||
10068
|
||||
},
|
||||
["passive_skill"]={
|
||||
10013
|
||||
},
|
||||
["monster_exp"]=22000
|
||||
},
|
||||
[9101]={
|
||||
@ -1288,6 +1297,9 @@ local monster_chapter = {
|
||||
30065,
|
||||
30066
|
||||
},
|
||||
["skill"]={
|
||||
10023
|
||||
},
|
||||
["monster_exp"]=12000
|
||||
},
|
||||
[10101]={
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1914,18 +1914,11 @@ local skill_rogue = {
|
||||
["limit_times"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=3,
|
||||
["type"]=2,
|
||||
["skill_position"]=3,
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=1,
|
||||
["range"]=2
|
||||
},
|
||||
{
|
||||
["type"]=2,
|
||||
["range"]=2
|
||||
}
|
||||
["type"]=1,
|
||||
["parameter"]={
|
||||
3300125
|
||||
},
|
||||
["skill_position"]=3,
|
||||
["icon"]="82"
|
||||
},
|
||||
[3300104]={
|
||||
@ -2974,18 +2967,11 @@ local skill_rogue = {
|
||||
["limit_times"]=1,
|
||||
["weight"]=3000,
|
||||
["qlt"]=3,
|
||||
["type"]=2,
|
||||
["skill_position"]=5,
|
||||
["boardrange"]={
|
||||
{
|
||||
["type"]=3,
|
||||
["range"]=2
|
||||
},
|
||||
{
|
||||
["type"]=4,
|
||||
["range"]=2
|
||||
}
|
||||
["type"]=1,
|
||||
["parameter"]={
|
||||
5300225
|
||||
},
|
||||
["skill_position"]=5,
|
||||
["icon"]="129"
|
||||
},
|
||||
[5300202]={
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -36,7 +36,7 @@ function BattleControllerDailyChallenge:getBuffs()
|
||||
buffEntity:setTargetSide(cfg[buffId].obj)
|
||||
buffEntity:setIsCantRemove(true)
|
||||
|
||||
table.insert(self.initBuffs, buffEntity)
|
||||
table.insert(self.initBuffs, {buffEntity = buffEntity, effect = effect[1]})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -30,7 +30,7 @@ local function _crossSpread(entity, gridEntities, battleController, onlyCheck)
|
||||
for _, posId in ipairs(tempList) do
|
||||
local gridEntity = gridEntities[posId]
|
||||
if gridEntity:isEmptyIdle() then
|
||||
battleController.battleData:setGridType(posId, BattleConst.GRID_TYPE.JELLY)
|
||||
battleController.battleData:setGridType(posId, entity:getGridType() or BattleConst.GRID_TYPE.JELLY)
|
||||
succ = true
|
||||
break
|
||||
end
|
||||
|
||||
@ -349,6 +349,11 @@ function BattleUI:showBuffTips(buffList, autoClose)
|
||||
index = index + 1
|
||||
end
|
||||
end
|
||||
if index <= 1 then -- 没有找到buff
|
||||
self.battleBuffTipsRoot:setLocalScale(0, 0, 0)
|
||||
return
|
||||
end
|
||||
|
||||
for i = index, #self.battleBuffTipsBuffList do
|
||||
self.battleBuffTipsBuffList[i]:setLocalScale(0, 0, 0)
|
||||
end
|
||||
@ -1762,7 +1767,7 @@ function BattleUI:playSkillLineSfx(posId, boradRangeList, randomPosList)
|
||||
end
|
||||
end
|
||||
|
||||
if randomPosList then
|
||||
if randomPosList and randomPosList[1] then
|
||||
local count = math.min(#randomPosList, 5) -- 特效最多5个
|
||||
self.skillLightSfxs.point:setAnchoredPosition(pos.x, pos.y)
|
||||
self.skillLightSfxs.point:setActive(true)
|
||||
|
||||
@ -27,6 +27,11 @@ function PlayerLevelUpUI:_display()
|
||||
self:closeUI()
|
||||
end)
|
||||
|
||||
local spineTitle = uiMap["player_level_up_ui.spine_title"]
|
||||
spineTitle:playAnimComplete("idle1", false, false, function()
|
||||
spineTitle:playAnim("idle2", true, false)
|
||||
end)
|
||||
|
||||
local toLevel = DataManager.PlayerData:getLv()
|
||||
uiMap["player_level_up_ui.title_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.PLAYER_LEVEL_UP_DESC, toLevel))
|
||||
uiMap["player_level_up_ui.reward_title"]:setText(I18N:getGlobalText(I18N.GlobalConst.LEVEL_UP_REWARD))
|
||||
|
||||
@ -15,14 +15,6 @@ function RewardBox:ctor(params)
|
||||
self.params.rewards = params.rewards or {}
|
||||
self.customTitleStr = params.customTitleStr
|
||||
self.callback = params.callback
|
||||
self.flyPos = {}
|
||||
self.showFly = false
|
||||
self.actionStatus = {}
|
||||
if #self.params.rewards > 35 then
|
||||
self.showAction = true
|
||||
self.turnIdx = 7
|
||||
self.maxIdx = math.ceil(#self.params.rewards / CELL_NUM)
|
||||
end
|
||||
end
|
||||
|
||||
function RewardBox:getPrefabPath()
|
||||
@ -38,16 +30,11 @@ function RewardBox:onLoadRootComplete()
|
||||
end)
|
||||
self.scrollRect:addRefreshCallback(function(index, cell)
|
||||
cell:refresh(self.params.rewards[index])
|
||||
self:playCellAction(cell, index)
|
||||
end)
|
||||
self.scrollRect:clearCells()
|
||||
|
||||
self.root:addClickListener(function()
|
||||
self:closeUI()
|
||||
if self.showFly then
|
||||
local pos = clone(self.flyPos)
|
||||
-- self:showCurrencyAction(pos)
|
||||
end
|
||||
if self.callback then
|
||||
self.callback()
|
||||
end
|
||||
@ -56,31 +43,12 @@ function RewardBox:onLoadRootComplete()
|
||||
self.titleTx = uiMap["reward_box.reward_title"]
|
||||
self.titleTx:setText(self.customTitleStr or I18N:getGlobalText(I18N.GlobalConst.REWARD_DESC))
|
||||
uiMap["reward_box.continue_tx"]:setText(I18N:getGlobalText(I18N.GlobalConst.CLICK_CLOSE_DESC))
|
||||
-- AudioManager:playEffect(AudioManager.EFFECT_ID.REWARD)
|
||||
|
||||
self:_refreshScrollRect()
|
||||
uiMap["reward_box.effect_node.ui_spine_obj"]:playAnim("idle", false, false)
|
||||
end
|
||||
|
||||
function RewardBox:_refreshScrollRect(onlyRefresh)
|
||||
for i,v in ipairs(self.params.rewards) do
|
||||
if self.params.rewards[i].type == GConst.REWARD_TYPE.ITEM then
|
||||
local id = self.params.rewards[i].item.id or self.params.rewards[i].item.id
|
||||
if id == GConst.ItemConst.ITEM_ID_GOLD or
|
||||
id == GConst.ItemConst.ITEM_ID_GEM or
|
||||
id == GConst.ItemConst.ITEM_ID_VIT
|
||||
then
|
||||
self.showFly = true
|
||||
local allPos = {}
|
||||
for i = 1, 4 do
|
||||
local posX, posY = GFunc.randomPos(i, {x = 0, y = 0})
|
||||
allPos[i] = {x = posX, y = posY}
|
||||
end
|
||||
self.flyPos[id] = allPos
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function RewardBox:_refreshScrollRect()
|
||||
if #self.params.rewards <= 5 then
|
||||
self.scrollView:setSizeDelta(#self.params.rewards*CELL_WIDTH, MIN_SIZE_Y)
|
||||
self.scrollRect:setPerLineNum(#self.params.rewards)
|
||||
@ -99,48 +67,4 @@ function RewardBox:_refreshScrollRect(onlyRefresh)
|
||||
end
|
||||
end
|
||||
|
||||
function RewardBox:getCellDelayTime(idx)
|
||||
if idx <= 35 then
|
||||
return idx*0.05
|
||||
else
|
||||
local re = (idx - 1)%5 + 1
|
||||
return re*0.025
|
||||
end
|
||||
end
|
||||
|
||||
function RewardBox:playCellAction(cell, idx)
|
||||
if self.actionStatus[idx] then
|
||||
return
|
||||
end
|
||||
local delayTime = self:getCellDelayTime(idx)
|
||||
local canvasGroup = cell.baseObject:getComponent(GConst.TYPEOF_UNITY_CLASS.CANVAS_GROUP)
|
||||
if not canvasGroup then
|
||||
canvasGroup = cell.baseObject:addComponent(GConst.TYPEOF_UNITY_CLASS.CANVAS_GROUP)
|
||||
end
|
||||
canvasGroup.alpha = 0
|
||||
|
||||
local seq = cell.baseObject:createBindTweenSequence()
|
||||
seq:AppendInterval(delayTime)
|
||||
local tween = canvasGroup:DOFade(1, 0.1)
|
||||
tween:SetEase(CS.DG.Tweening.Ease.InOutSine)
|
||||
seq:Append(tween)
|
||||
seq:AppendCallback(function()
|
||||
self.actionStatus[idx] = true
|
||||
self:turnToNext(idx)
|
||||
end)
|
||||
end
|
||||
|
||||
function RewardBox:turnToNext(idx)
|
||||
if not self.showAction or idx ~= self.turnIdx * CELL_NUM then
|
||||
return
|
||||
end
|
||||
self:performWithDelayGlobal(function()
|
||||
self.scrollRect:moveToIndex((self.turnIdx - 6)*CELL_NUM + 1)
|
||||
self.turnIdx = self.turnIdx + 1
|
||||
if self.turnIdx >= self.maxIdx then
|
||||
self.showAction = false
|
||||
end
|
||||
end, 0.025)
|
||||
end
|
||||
|
||||
return RewardBox
|
||||
@ -12,6 +12,7 @@ end
|
||||
function DailyChallengeData:init(data)
|
||||
if EDITOR_MODE then
|
||||
Logger.logHighlight("每日挑战 更新数据...")
|
||||
Logger.printTable(data)
|
||||
end
|
||||
data = data or GConst.EMPTY_TABLE
|
||||
self.maxWave = data.max_wave or 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user