Merge branch 'dev' of http://git.juzugame.com/b6-client/b6-lua into dev
This commit is contained in:
commit
d281a2261d
@ -28,7 +28,7 @@ local const = {
|
|||||||
["value"]=200
|
["value"]=200
|
||||||
},
|
},
|
||||||
["crit_dmg"]={
|
["crit_dmg"]={
|
||||||
["value"]=1500
|
["value"]=15000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
local config = {
|
local config = {
|
||||||
|
|||||||
@ -562,10 +562,7 @@ local skill = {
|
|||||||
["link"]=1,
|
["link"]=1,
|
||||||
["position"]=2,
|
["position"]=2,
|
||||||
["method"]=2,
|
["method"]=2,
|
||||||
["skill_type"]=2,
|
["skill_type"]=1,
|
||||||
["skill_type_parameter"]={
|
|
||||||
2
|
|
||||||
},
|
|
||||||
["boardrange"]={
|
["boardrange"]={
|
||||||
{
|
{
|
||||||
["type"]=5,
|
["type"]=5,
|
||||||
|
|||||||
@ -661,7 +661,7 @@ local skill_rogue = {
|
|||||||
[200101]={
|
[200101]={
|
||||||
["limit_times"]=1,
|
["limit_times"]=1,
|
||||||
["weight"]=1000,
|
["weight"]=1000,
|
||||||
["qlt"]=4,
|
["qlt"]=3,
|
||||||
["type"]=12,
|
["type"]=12,
|
||||||
["skill_position"]=3,
|
["skill_position"]=3,
|
||||||
["effect"]={
|
["effect"]={
|
||||||
@ -870,11 +870,11 @@ local skill_rogue = {
|
|||||||
["skill_position"]=1,
|
["skill_position"]=1,
|
||||||
["boardrange"]={
|
["boardrange"]={
|
||||||
{
|
{
|
||||||
["type"]=3,
|
["type"]=1,
|
||||||
["range"]=1
|
["range"]=1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
["type"]=4,
|
["type"]=2,
|
||||||
["range"]=1
|
["range"]=1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -183,7 +183,7 @@ local skill_rogue = {
|
|||||||
["desc"]="舞步消散:将左右<color=#3cff28>2</color>格元素进行消除"
|
["desc"]="舞步消散:将左右<color=#3cff28>2</color>格元素进行消除"
|
||||||
},
|
},
|
||||||
[200501]={
|
[200501]={
|
||||||
["desc"]="舞步消散左右可多消<color=#3cff28>1</color>格"
|
["desc"]="舞步消散上下可多消<color=#3cff28>1</color>格"
|
||||||
},
|
},
|
||||||
[200502]={
|
[200502]={
|
||||||
["desc"]="跟舞步消散连接线上的元素伤害增加<color=#3cff28>10%</color>"
|
["desc"]="跟舞步消散连接线上的元素伤害增加<color=#3cff28>10%</color>"
|
||||||
|
|||||||
@ -26,13 +26,13 @@ local tutorial = {
|
|||||||
["txt"]="tutorial_txt_1",
|
["txt"]="tutorial_txt_1",
|
||||||
["txt_offset"]={
|
["txt_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
110
|
||||||
},
|
},
|
||||||
["target_name"]="battle_skill_select_ui(Clone)/skill_node/skill_select_cell_1",
|
["target_name"]="battle_skill_select_ui(Clone)/skill_node/skill_select_cell_1",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-50
|
||||||
},
|
},
|
||||||
["show_mask"]=1,
|
["show_mask"]=1,
|
||||||
["square_size"]={
|
["square_size"]={
|
||||||
@ -59,6 +59,7 @@ local tutorial = {
|
|||||||
},
|
},
|
||||||
[10060]={
|
[10060]={
|
||||||
["next_id"]=10070,
|
["next_id"]=10070,
|
||||||
|
["delay"]=1.0,
|
||||||
["type"]=6,
|
["type"]=6,
|
||||||
["finish"]=4,
|
["finish"]=4,
|
||||||
["target_element"]={
|
["target_element"]={
|
||||||
@ -75,6 +76,7 @@ local tutorial = {
|
|||||||
["finish"]=3
|
["finish"]=3
|
||||||
},
|
},
|
||||||
[10080]={
|
[10080]={
|
||||||
|
["delay"]=1.0,
|
||||||
["type"]=6,
|
["type"]=6,
|
||||||
["finish"]=4,
|
["finish"]=4,
|
||||||
["target_element"]={
|
["target_element"]={
|
||||||
@ -91,13 +93,13 @@ local tutorial = {
|
|||||||
["txt"]="tutorial_txt_2",
|
["txt"]="tutorial_txt_2",
|
||||||
["txt_offset"]={
|
["txt_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
180
|
||||||
},
|
},
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_1",
|
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_1",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-50
|
||||||
},
|
},
|
||||||
["show_mask"]=2,
|
["show_mask"]=2,
|
||||||
["circle_r"]=100,
|
["circle_r"]=100,
|
||||||
@ -144,7 +146,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-100
|
||||||
},
|
},
|
||||||
["show_mask"]=1,
|
["show_mask"]=1,
|
||||||
["square_size"]={
|
["square_size"]={
|
||||||
@ -163,7 +165,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-50
|
||||||
},
|
},
|
||||||
["show_mask"]=1,
|
["show_mask"]=1,
|
||||||
["square_size"]={
|
["square_size"]={
|
||||||
@ -192,7 +194,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-100
|
||||||
},
|
},
|
||||||
["show_mask"]=1,
|
["show_mask"]=1,
|
||||||
["square_size"]={
|
["square_size"]={
|
||||||
@ -238,13 +240,13 @@ local tutorial = {
|
|||||||
["txt"]="tutorial_txt_3",
|
["txt"]="tutorial_txt_3",
|
||||||
["txt_offset"]={
|
["txt_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
180
|
||||||
},
|
},
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_1",
|
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_1",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-50
|
||||||
},
|
},
|
||||||
["show_mask"]=2,
|
["show_mask"]=2,
|
||||||
["circle_r"]=100,
|
["circle_r"]=100,
|
||||||
@ -272,7 +274,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-100
|
||||||
},
|
},
|
||||||
["show_mask"]=1,
|
["show_mask"]=1,
|
||||||
["square_size"]={
|
["square_size"]={
|
||||||
@ -290,7 +292,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-50
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[40000]={
|
[40000]={
|
||||||
@ -299,13 +301,13 @@ local tutorial = {
|
|||||||
["txt"]="tutorial_txt_4",
|
["txt"]="tutorial_txt_4",
|
||||||
["txt_offset"]={
|
["txt_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
180
|
||||||
},
|
},
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_2",
|
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_2",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-50
|
||||||
},
|
},
|
||||||
["show_mask"]=2,
|
["show_mask"]=2,
|
||||||
["circle_r"]=100,
|
["circle_r"]=100,
|
||||||
@ -352,7 +354,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-100
|
||||||
},
|
},
|
||||||
["show_mask"]=1,
|
["show_mask"]=1,
|
||||||
["square_size"]={
|
["square_size"]={
|
||||||
@ -371,7 +373,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-50
|
||||||
},
|
},
|
||||||
["show_mask"]=1,
|
["show_mask"]=1,
|
||||||
["square_size"]={
|
["square_size"]={
|
||||||
@ -400,7 +402,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-100
|
||||||
},
|
},
|
||||||
["show_mask"]=1,
|
["show_mask"]=1,
|
||||||
["square_size"]={
|
["square_size"]={
|
||||||
@ -418,7 +420,7 @@ local tutorial = {
|
|||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
0
|
-50
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,7 @@ BattleFormula.calculateFormula = {
|
|||||||
local crit = unitComp.unitEntity:getCrit()
|
local crit = unitComp.unitEntity:getCrit()
|
||||||
if crit > 0 then
|
if crit > 0 then
|
||||||
if BattleHelper:random(1, DEFAULT_FACTOR) <= crit then -- 暴击了
|
if BattleHelper:random(1, DEFAULT_FACTOR) <= crit then -- 暴击了
|
||||||
result = result * (DEFAULT_FACTOR + unitComp.unitEntity:getCrittime()) // DEFAULT_FACTOR
|
result = result * (BattleHelper:getDefaultCrittime() + unitComp.unitEntity:getCrittime()) // DEFAULT_FACTOR
|
||||||
hurtState = HURT_STATE_CRIT
|
hurtState = HURT_STATE_CRIT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -62,6 +62,13 @@ function BattleHelper:getSupportInterval()
|
|||||||
return self.supportInterval
|
return self.supportInterval
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BattleHelper:getDefaultCrittime()
|
||||||
|
if self.defaultCrittime == nil then
|
||||||
|
self.defaultCrittime = GFunc.getConstIntValue("crit_dmg")
|
||||||
|
end
|
||||||
|
return self.defaultCrittime
|
||||||
|
end
|
||||||
|
|
||||||
function BattleHelper:loadBattleHeroModel(id, parent, callback)
|
function BattleHelper:loadBattleHeroModel(id, parent, callback)
|
||||||
local pool = self.characterPools[id]
|
local pool = self.characterPools[id]
|
||||||
if pool and #pool > 0 then
|
if pool and #pool > 0 then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user