fix bug
This commit is contained in:
parent
25ebcf8a91
commit
2740e23e9b
@ -461,6 +461,18 @@ local attr = {
|
|||||||
["name"]="attr_boss_dmg",
|
["name"]="attr_boss_dmg",
|
||||||
["power"]=50,
|
["power"]=50,
|
||||||
["is_percent"]=1
|
["is_percent"]=1
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp",
|
||||||
|
["power"]=50,
|
||||||
|
["is_percent"]=1
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp",
|
||||||
|
["power"]=50,
|
||||||
|
["is_percent"]=1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -546,12 +558,14 @@ local keys = {
|
|||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80],
|
["attr_hpp_all"]=attr[80],
|
||||||
["attr_monster_dmg"]=attr[81],
|
["attr_monster_dmg"]=attr[81],
|
||||||
["attr_boss_dmg"]=attr[82]
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=82
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -398,6 +398,26 @@ local attr = {
|
|||||||
["id"]=80,
|
["id"]=80,
|
||||||
["desc"]="全体生命+{0}%",
|
["desc"]="全体生命+{0}%",
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["desc"]="对普通怪物伤害+{0}%",
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["desc"]="对首领怪物伤害+{0}%",
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["desc"]="普攻伤害+{0}%",
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["desc"]="技能伤害+{0}%",
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -481,12 +501,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -318,6 +318,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -401,12 +417,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -318,6 +318,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -401,12 +417,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -318,6 +318,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -401,12 +417,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -374,6 +374,22 @@ local attr = {
|
|||||||
[80]={
|
[80]={
|
||||||
["id"]=80,
|
["id"]=80,
|
||||||
["name"]="attr_hpp_all"
|
["name"]="attr_hpp_all"
|
||||||
|
},
|
||||||
|
[81]={
|
||||||
|
["id"]=81,
|
||||||
|
["name"]="attr_monster_dmg"
|
||||||
|
},
|
||||||
|
[82]={
|
||||||
|
["id"]=82,
|
||||||
|
["name"]="attr_boss_dmg"
|
||||||
|
},
|
||||||
|
[83]={
|
||||||
|
["id"]=83,
|
||||||
|
["name"]="attr_normal_hurtp"
|
||||||
|
},
|
||||||
|
[84]={
|
||||||
|
["id"]=84,
|
||||||
|
["name"]="attr_skill_hurtp"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local keys = {
|
local keys = {
|
||||||
@ -457,12 +473,16 @@ local keys = {
|
|||||||
["attr_normal_hurt"]=attr[77],
|
["attr_normal_hurt"]=attr[77],
|
||||||
["attr_skill_hurt"]=attr[78],
|
["attr_skill_hurt"]=attr[78],
|
||||||
["dmgdec"]=attr[79],
|
["dmgdec"]=attr[79],
|
||||||
["attr_hpp_all"]=attr[80]
|
["attr_hpp_all"]=attr[80],
|
||||||
|
["attr_monster_dmg"]=attr[81],
|
||||||
|
["attr_boss_dmg"]=attr[82],
|
||||||
|
["attr_normal_hurtp"]=attr[83],
|
||||||
|
["attr_skill_hurtp"]=attr[84]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
data=attr,
|
data=attr,
|
||||||
keys=keys,
|
keys=keys,
|
||||||
count=80
|
count=84
|
||||||
}
|
}
|
||||||
return config
|
return config
|
||||||
@ -1,8 +1,4 @@
|
|||||||
local SummonManager = class("SummonManager", BaseModule)
|
local SummonManager = class("SummonManager", BaseModule)
|
||||||
BIReport.EVENT_NAME_ACT_SUMMON_LOGIN = "client_act_summon_login"
|
|
||||||
BIReport.EVENT_NAME_ACT_SUMMON_UPGRADE = "client_act_summon_upgrade"
|
|
||||||
BIReport.EVENT_NAME_ACT_SUMMON_GEM = "client_act_summon_gem"
|
|
||||||
BIReport.EVENT_NAME_ACT_SUMMON_RECHARGE = "client_act_summon_recharge"
|
|
||||||
|
|
||||||
-- function SummonManager:showPopUI(params)
|
-- function SummonManager:showPopUI(params)
|
||||||
-- UIManager:showUI("app/ui/summon/summon_act_pop", params)
|
-- UIManager:showUI("app/ui/summon/summon_act_pop", params)
|
||||||
@ -69,7 +65,7 @@ function SummonManager:onForceSummonRsp(result)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.FORCE_SUMMON, result, newHero)
|
EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.FORCE_SUMMON, result, newHero)
|
||||||
-- BIReport:postForceSummon(result.reqData.free, result.reqData.times, result.rewards, result.costs)
|
BIReport:postForceSummon(result.reqData.free, result.reqData.times, result.rewards, result.costs)
|
||||||
|
|
||||||
-- local params = {
|
-- local params = {
|
||||||
-- times = result.reqData.times,
|
-- times = result.reqData.times,
|
||||||
@ -258,5 +254,46 @@ function BIReport:postActTask(actId, taskId, rewards)
|
|||||||
self:report(BIReport.EVENT_NAME_ACT_TASK, args)
|
self:report(BIReport.EVENT_NAME_ACT_TASK, args)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--@endregion
|
||||||
|
|
||||||
|
--@region 上报
|
||||||
|
BIReport.EVENT_NAME_ACT_SUMMON_LOGIN = "client_act_summon_login"
|
||||||
|
BIReport.EVENT_NAME_ACT_SUMMON_UPGRADE = "client_act_summon_upgrade"
|
||||||
|
BIReport.EVENT_NAME_ACT_SUMMON_GEM = "client_act_summon_gem"
|
||||||
|
BIReport.EVENT_NAME_ACT_SUMMON_RECHARGE = "client_act_summon_recharge"
|
||||||
|
BIReport.EVENT_NAME_ACT_SUMMON = "client_act_summon" -- 念力觉醒
|
||||||
|
BIReport.EVENT_NAME_FORCE = "client_hero_opt" -- 士兵
|
||||||
|
BIReport.ITEM_GET_TYPE.FORCE_SUMMON_SHOP_EXCHANGE = "force_summon_shop_exchange"
|
||||||
|
|
||||||
|
BIReport.SUMMON_OP_TYPE = {
|
||||||
|
REWARD_ROUND = "RewardRound",
|
||||||
|
REWARD_ROUND_TASK = "RewardRoundTask",
|
||||||
|
REWARD_RECHARGE_TASK = "RewardRechargeTask",
|
||||||
|
SUMMON_SHOP = "SummonShop",
|
||||||
|
}
|
||||||
|
|
||||||
|
-- 士兵召唤
|
||||||
|
function BIReport:postForceSummon(isfree, count, rewards, costs, summonId)
|
||||||
|
local args = {
|
||||||
|
opt_type = BIReport.FORCE_OPT_TYPE.SUMMON,
|
||||||
|
free_summon = isfree,
|
||||||
|
count = count,
|
||||||
|
summon_id = summonId,
|
||||||
|
reward_str = rewards and GFunc.getRewardsStr(rewards) or nil,
|
||||||
|
cost_str = costs and GFunc.getRewardsStr(costs) or nil,
|
||||||
|
}
|
||||||
|
self:report(BIReport.EVENT_NAME_FORCE, args)
|
||||||
|
end
|
||||||
|
|
||||||
|
function BIReport:postSummonShopExchange(optType, id, num, rewards)
|
||||||
|
local args = {
|
||||||
|
optType = optType,
|
||||||
|
shop_id = id,
|
||||||
|
exchange_num = num,
|
||||||
|
reward_str = rewards and GFunc.getRewardsStr(rewards) or nil,
|
||||||
|
}
|
||||||
|
self:report(BIReport.EVENT_NAME_ACT_SUMMON, args)
|
||||||
|
end
|
||||||
|
|
||||||
--@endregion
|
--@endregion
|
||||||
return SummonManager
|
return SummonManager
|
||||||
|
|||||||
@ -13,7 +13,7 @@ function SideBarSevenDayCell:getIsOpen()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SideBarSevenDayCell:getSpineName()
|
function SideBarSevenDayCell:getSpineName()
|
||||||
return "ui_main_btn_shop"
|
return "ui_main_btn_act_sevenday"
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarSevenDayCell:onClick()
|
function SideBarSevenDayCell:onClick()
|
||||||
|
|||||||
@ -13,7 +13,7 @@ function SideBarSevenDayCell2:getIsOpen()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SideBarSevenDayCell2:getSpineName()
|
function SideBarSevenDayCell2:getSpineName()
|
||||||
return "ui_main_btn_shop"
|
return "ui_main_btn_act_sevenday"
|
||||||
end
|
end
|
||||||
|
|
||||||
function SideBarSevenDayCell2:onClick()
|
function SideBarSevenDayCell2:onClick()
|
||||||
|
|||||||
@ -101,7 +101,7 @@ function SummonShopCell:setCost()
|
|||||||
if haveItemNum >= costCount then
|
if haveItemNum >= costCount then
|
||||||
self.costTx:setText(costCount)
|
self.costTx:setText(costCount)
|
||||||
else
|
else
|
||||||
self.costTx:setText("<color=#FF2C2C>"..costCount.."</color>")
|
self.costTx:setText("<color=#FF5D5D>"..costCount.."</color>")
|
||||||
end
|
end
|
||||||
self.costIcon:setSprite(GFunc.getIconRes(costId))
|
self.costIcon:setSprite(GFunc.getIconRes(costId))
|
||||||
GFunc.centerImgAndTx(self.costIcon, self.costTx, -5)
|
GFunc.centerImgAndTx(self.costIcon, self.costTx, -5)
|
||||||
|
|||||||
@ -405,6 +405,17 @@ function SummonMainUI:onSummonRsp(result, newHero)
|
|||||||
self.uiNode:setActive(true)
|
self.uiNode:setActive(true)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
local rewards = {}
|
||||||
|
local qlt = 3
|
||||||
|
for _, v in ipairs(result.rewards) do
|
||||||
|
local itemType = ModuleManager.ItemManager:getItemType(v.item.id)
|
||||||
|
if itemType == GConst.ItemConst.ITEM_TYPE.HERO_FRAGMENT then
|
||||||
|
local id = v.item.id
|
||||||
|
local q = DataManager.HeroData:getHeroQlt(id)
|
||||||
|
qlt = math.max(qlt, q)
|
||||||
|
table.insert(rewards, v)
|
||||||
|
end
|
||||||
|
end
|
||||||
if self.aniSeq then
|
if self.aniSeq then
|
||||||
self.aniSeq:Kill()
|
self.aniSeq:Kill()
|
||||||
self.aniSeq = nil
|
self.aniSeq = nil
|
||||||
@ -415,19 +426,14 @@ function SummonMainUI:onSummonRsp(result, newHero)
|
|||||||
self.vfx01s[i]:setActive(false)
|
self.vfx01s[i]:setActive(false)
|
||||||
self.vfx02s[i]:setActive(false)
|
self.vfx02s[i]:setActive(false)
|
||||||
end
|
end
|
||||||
local qlt = 3
|
|
||||||
for i, v in ipairs(result.rewards) do
|
|
||||||
local id = v.item.id
|
|
||||||
local q = DataManager.HeroData:getHeroQlt(id)
|
|
||||||
qlt = math.max(qlt, q)
|
|
||||||
end
|
|
||||||
qlt = qlt - 2
|
qlt = qlt - 2
|
||||||
self.summonResult = result.rewards
|
self.summonResult = rewards
|
||||||
self.aniSeq = self.root:createBindTweenSequence()
|
self.aniSeq = self.root:createBindTweenSequence()
|
||||||
if self.vfxs[qlt] then
|
if self.vfxs[qlt] then
|
||||||
self.vfxs[qlt]:setActive(true)
|
self.vfxs[qlt]:setActive(true)
|
||||||
end
|
end
|
||||||
self.aniSeq:AppendInterval(2)
|
self.aniSeq:AppendInterval(1.5)
|
||||||
self.aniSeq:AppendCallback(function()
|
self.aniSeq:AppendCallback(function()
|
||||||
self:showHero(1, newHero)
|
self:showHero(1, newHero)
|
||||||
end)
|
end)
|
||||||
|
|||||||
@ -82,7 +82,7 @@ function SummonShopBoxUI:onLoadRootComplete()
|
|||||||
self.btnClose = uiMap["summon_shop_box_ui.content.btn_close"]
|
self.btnClose = uiMap["summon_shop_box_ui.content.btn_close"]
|
||||||
self.txTitle = uiMap["summon_shop_box_ui.content.tx_title"]
|
self.txTitle = uiMap["summon_shop_box_ui.content.tx_title"]
|
||||||
self.infoNode = uiMap["summon_shop_box_ui.content.info_node"]
|
self.infoNode = uiMap["summon_shop_box_ui.content.info_node"]
|
||||||
self.rewardCell = uiMap["summon_shop_box_ui.content.info_node.summon_shop_cell"]:addLuaComponent("app/ui/summon/cell/summon_shop_cell")
|
self.rewardCell = uiMap["summon_shop_box_ui.content.info_node.reward_cell"]:addLuaComponent(GConst.TYPEOF_LUA_CLASS.REWARD_CELL)
|
||||||
self.txName = uiMap["summon_shop_box_ui.content.info_node.data_node.tx_name"]
|
self.txName = uiMap["summon_shop_box_ui.content.info_node.data_node.tx_name"]
|
||||||
self.txCount = uiMap["summon_shop_box_ui.content.info_node.data_node.tx_count"]
|
self.txCount = uiMap["summon_shop_box_ui.content.info_node.data_node.tx_count"]
|
||||||
self.dataLayout = uiMap["summon_shop_box_ui.content.info_node.data_node"]:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_HORIZONTAL_OR_VERTICAL_LAYOUT)
|
self.dataLayout = uiMap["summon_shop_box_ui.content.info_node.data_node"]:getComponent(GConst.TYPEOF_UNITY_CLASS.BF_HORIZONTAL_OR_VERTICAL_LAYOUT)
|
||||||
@ -154,7 +154,7 @@ function SummonShopBoxUI:onLoadRootComplete()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SummonShopBoxUI:onRefresh()
|
function SummonShopBoxUI:onRefresh()
|
||||||
self.rewardCell:refresh(self.cfg, true)
|
self.rewardCell:refreshByConfig(self.cfg.hero)
|
||||||
self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_1, self.ownCount))
|
self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.ITEM_DESC_1, self.ownCount))
|
||||||
if self.remainingDiscount > 0 and self.discountLimit ~= nil then
|
if self.remainingDiscount > 0 and self.discountLimit ~= nil then
|
||||||
self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_7, self.remainingDiscount, self.discountLimit))
|
self.txCount:setText(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_7, self.remainingDiscount, self.discountLimit))
|
||||||
@ -165,8 +165,6 @@ function SummonShopBoxUI:onRefresh()
|
|||||||
end
|
end
|
||||||
self.rewardId = GFunc.getRewardId(self.cfg.hero)
|
self.rewardId = GFunc.getRewardId(self.cfg.hero)
|
||||||
self.itemType = ModuleManager.ItemManager:getItemType(self.rewardId)
|
self.itemType = ModuleManager.ItemManager:getItemType(self.rewardId)
|
||||||
|
|
||||||
local cfg = ConfigManager:getConfig("item")[self.rewardId]
|
|
||||||
self.rewards = nil
|
self.rewards = nil
|
||||||
-- if self.itemType == GConst.ItemConst.ITEM_TYPE.BOX_RANDOM then
|
-- if self.itemType == GConst.ItemConst.ITEM_TYPE.BOX_RANDOM then
|
||||||
-- -- 随机宝箱
|
-- -- 随机宝箱
|
||||||
@ -190,7 +188,11 @@ function SummonShopBoxUI:onRefresh()
|
|||||||
-- end
|
-- end
|
||||||
if self.itemType == GConst.ItemConst.ITEM_TYPE.HERO_FRAGMENT then
|
if self.itemType == GConst.ItemConst.ITEM_TYPE.HERO_FRAGMENT then
|
||||||
local heroCfg = ConfigManager:getConfig("hero")[self.rewardId]
|
local heroCfg = ConfigManager:getConfig("hero")[self.rewardId]
|
||||||
local str = string.format("<color=%s>%s</color>", GConst.QUALITY_TYPE[heroCfg.qlt], ModuleManager.ItemManager:getItemName(self.rewardId))
|
local str = GFunc.colorText(GConst.QUALITY_TYPE[heroCfg.qlt], ModuleManager.ItemManager:getItemName(self.rewardId))
|
||||||
|
self.txName:setText(str)
|
||||||
|
else
|
||||||
|
local itemCfg = ConfigManager:getConfig("item")[self.rewardId]
|
||||||
|
local str = GFunc.colorText(GConst.QUALITY_TYPE[itemCfg.qlt], ModuleManager.ItemManager:getItemName(self.rewardId))
|
||||||
self.txName:setText(str)
|
self.txName:setText(str)
|
||||||
end
|
end
|
||||||
if self.rewards ~= nil then
|
if self.rewards ~= nil then
|
||||||
|
|||||||
@ -8,7 +8,7 @@ function SummonShopUI:getCurrencyParams()
|
|||||||
local params = {}
|
local params = {}
|
||||||
params.showType = GConst.CURRENCY_TYPE.HORIZONTAL
|
params.showType = GConst.CURRENCY_TYPE.HORIZONTAL
|
||||||
params.itemIds = {
|
params.itemIds = {
|
||||||
GConst.ItemConst.ITEM_ID_GOLD,
|
self.shopItemId,
|
||||||
}
|
}
|
||||||
return params
|
return params
|
||||||
end
|
end
|
||||||
@ -49,15 +49,6 @@ function SummonShopUI:ctor(param)
|
|||||||
ModuleManager.SummonManager:reqSummonShopMarkUnlockTip(self.shopType)
|
ModuleManager.SummonManager:reqSummonShopMarkUnlockTip(self.shopType)
|
||||||
end
|
end
|
||||||
|
|
||||||
function SummonShopUI:currencyParams()
|
|
||||||
local params = {}
|
|
||||||
params.showType = GConst.CURRENCY_TYPE.HORIZONTAL
|
|
||||||
params.itemIds = {
|
|
||||||
self.shopItemId,
|
|
||||||
}
|
|
||||||
return params, true
|
|
||||||
end
|
|
||||||
|
|
||||||
function SummonShopUI:onLoadRootComplete()
|
function SummonShopUI:onLoadRootComplete()
|
||||||
local uiMap = self.root:genAllChildren()
|
local uiMap = self.root:genAllChildren()
|
||||||
self.btnMaskClose = uiMap["summon_shop_ui.btn_mask_close"]
|
self.btnMaskClose = uiMap["summon_shop_ui.btn_mask_close"]
|
||||||
@ -172,10 +163,13 @@ function SummonShopUI:_refreshScrollrect()
|
|||||||
cell:setShowType(GConst.HeroConst.PAGE_TYPE.SHOP, function()
|
cell:setShowType(GConst.HeroConst.PAGE_TYPE.SHOP, function()
|
||||||
local cfg = self.shopList[index]
|
local cfg = self.shopList[index]
|
||||||
local id = GFunc.getRewardId(cfg.hero)
|
local id = GFunc.getRewardId(cfg.hero)
|
||||||
|
local type = ModuleManager.ItemManager:getItemType(id)
|
||||||
|
if type == GConst.ItemConst.ITEM_TYPE.HERO_FRAGMENT then
|
||||||
if not DataManager.HeroData:getHeroIsUnlock(cfg.force_id) then
|
if not DataManager.HeroData:getHeroIsUnlock(cfg.force_id) then
|
||||||
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_5))
|
GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.SUMMON_DESCR_5))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
end
|
||||||
ModuleManager.SummonManager:showSummonShopBoxUI(self.shopType, self.shopList[index])
|
ModuleManager.SummonManager:showSummonShopBoxUI(self.shopType, self.shopList[index])
|
||||||
end)
|
end)
|
||||||
cell:refresh(self.shopList[index], false, self.shopType)
|
cell:refresh(self.shopList[index], false, self.shopType)
|
||||||
|
|||||||
@ -98,6 +98,7 @@ function TalentMainUI:onRefresh()
|
|||||||
else
|
else
|
||||||
self.descTx:setActive(false)
|
self.descTx:setActive(false)
|
||||||
end
|
end
|
||||||
|
self.getBtn:setActive(not DataManager.TalentData:isAllMax())
|
||||||
end
|
end
|
||||||
|
|
||||||
function TalentMainUI:onUpgrade()
|
function TalentMainUI:onUpgrade()
|
||||||
|
|||||||
@ -263,7 +263,7 @@ function SignWeekData:getSeason()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function SignWeekData:getReSignCost()
|
function SignWeekData:getReSignCost()
|
||||||
return GFunc.getConstCost("act_bounty_buy_cost", true)
|
return GFunc.getConstCost("act_bounty_buy_cost")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 解锁高级奖励
|
-- 解锁高级奖励
|
||||||
|
|||||||
@ -80,15 +80,14 @@ function TalentData:getUpData()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function TalentData:isAllMax()
|
function TalentData:isAllMax()
|
||||||
for id = 1, #TalentCfg do
|
-- for id = 1, #TalentCfg do
|
||||||
local cfg = TalentCfg[id]
|
-- local cfg = TalentCfg[id]
|
||||||
local lv = self:getLevels(id)
|
-- local lv = self:getLevels(id)
|
||||||
if lv and lv > 0 and cfg.attr then
|
-- if not lv or lv < cfg.max_level then
|
||||||
for _, v in ipairs(cfg.attr) do
|
-- return false
|
||||||
self.allAttr[v.type] = (self.allAttr[v.type] or 0) + v.num * lv
|
-- end
|
||||||
end
|
-- end
|
||||||
end
|
return true
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
--@region 属性
|
--@region 属性
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user