From f01edc8f5a62c792284dcc3beb685b90af6fe069 Mon Sep 17 00:00:00 2001 From: chenxi Date: Mon, 24 Apr 2023 21:46:39 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=9A=B4=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/battle/helper/battle_formula.lua | 2 +- lua/app/module/battle/helper/battle_helper.lua | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lua/app/module/battle/helper/battle_formula.lua b/lua/app/module/battle/helper/battle_formula.lua index d26bdd4a..03f9e73e 100644 --- a/lua/app/module/battle/helper/battle_formula.lua +++ b/lua/app/module/battle/helper/battle_formula.lua @@ -24,7 +24,7 @@ BattleFormula.calculateFormula = { local crit = unitComp.unitEntity:getCrit() if crit > 0 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 end end diff --git a/lua/app/module/battle/helper/battle_helper.lua b/lua/app/module/battle/helper/battle_helper.lua index deb59cf9..6000eb26 100644 --- a/lua/app/module/battle/helper/battle_helper.lua +++ b/lua/app/module/battle/helper/battle_helper.lua @@ -62,6 +62,13 @@ function BattleHelper:getSupportInterval() return self.supportInterval 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) local pool = self.characterPools[id] if pool and #pool > 0 then From 39e5879e705c16bbc8ecd7cfbc94fb58487a3114 Mon Sep 17 00:00:00 2001 From: chenxi Date: Mon, 24 Apr 2023 21:50:57 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/config/const.lua | 2 +- lua/app/config/skill_rogue.lua | 6 ++-- lua/app/config/strings/cn/skill_rogue.lua | 2 +- lua/app/config/tutorial.lua | 36 ++++++++++++----------- 4 files changed, 24 insertions(+), 22 deletions(-) diff --git a/lua/app/config/const.lua b/lua/app/config/const.lua index 5d73b562..4e804ad8 100644 --- a/lua/app/config/const.lua +++ b/lua/app/config/const.lua @@ -28,7 +28,7 @@ local const = { ["value"]=200 }, ["crit_dmg"]={ - ["value"]=1500 + ["value"]=15000 } } local config = { diff --git a/lua/app/config/skill_rogue.lua b/lua/app/config/skill_rogue.lua index 9fe44cca..6e9a1adc 100644 --- a/lua/app/config/skill_rogue.lua +++ b/lua/app/config/skill_rogue.lua @@ -661,7 +661,7 @@ local skill_rogue = { [200101]={ ["limit_times"]=1, ["weight"]=1000, - ["qlt"]=4, + ["qlt"]=3, ["type"]=12, ["skill_position"]=3, ["effect"]={ @@ -870,11 +870,11 @@ local skill_rogue = { ["skill_position"]=1, ["boardrange"]={ { - ["type"]=3, + ["type"]=1, ["range"]=1 }, { - ["type"]=4, + ["type"]=2, ["range"]=1 } }, diff --git a/lua/app/config/strings/cn/skill_rogue.lua b/lua/app/config/strings/cn/skill_rogue.lua index 5cb79d9d..f7ae9083 100644 --- a/lua/app/config/strings/cn/skill_rogue.lua +++ b/lua/app/config/strings/cn/skill_rogue.lua @@ -183,7 +183,7 @@ local skill_rogue = { ["desc"]="舞步消散:将左右2格元素进行消除" }, [200501]={ - ["desc"]="舞步消散左右可多消1格" + ["desc"]="舞步消散上下可多消1格" }, [200502]={ ["desc"]="跟舞步消散连接线上的元素伤害增加10%" diff --git a/lua/app/config/tutorial.lua b/lua/app/config/tutorial.lua index 22686200..71556c5c 100644 --- a/lua/app/config/tutorial.lua +++ b/lua/app/config/tutorial.lua @@ -26,13 +26,13 @@ local tutorial = { ["txt"]="tutorial_txt_1", ["txt_offset"]={ 0, - 0 + 110 }, ["target_name"]="battle_skill_select_ui(Clone)/skill_node/skill_select_cell_1", ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -50 }, ["show_mask"]=1, ["square_size"]={ @@ -59,6 +59,7 @@ local tutorial = { }, [10060]={ ["next_id"]=10070, + ["delay"]=1.0, ["type"]=6, ["finish"]=4, ["target_element"]={ @@ -75,6 +76,7 @@ local tutorial = { ["finish"]=3 }, [10080]={ + ["delay"]=1.0, ["type"]=6, ["finish"]=4, ["target_element"]={ @@ -91,13 +93,13 @@ local tutorial = { ["txt"]="tutorial_txt_2", ["txt_offset"]={ 0, - 0 + 180 }, ["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_1", ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -50 }, ["show_mask"]=2, ["circle_r"]=100, @@ -144,7 +146,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -100 }, ["show_mask"]=1, ["square_size"]={ @@ -163,7 +165,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -50 }, ["show_mask"]=1, ["square_size"]={ @@ -192,7 +194,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -100 }, ["show_mask"]=1, ["square_size"]={ @@ -238,13 +240,13 @@ local tutorial = { ["txt"]="tutorial_txt_3", ["txt_offset"]={ 0, - 0 + 180 }, ["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_1", ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -50 }, ["show_mask"]=2, ["circle_r"]=100, @@ -272,7 +274,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -100 }, ["show_mask"]=1, ["square_size"]={ @@ -290,7 +292,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -50 } }, [40000]={ @@ -299,13 +301,13 @@ local tutorial = { ["txt"]="tutorial_txt_4", ["txt_offset"]={ 0, - 0 + 180 }, ["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/chapter/progress_bg/box_2", ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -50 }, ["show_mask"]=2, ["circle_r"]=100, @@ -352,7 +354,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -100 }, ["show_mask"]=1, ["square_size"]={ @@ -371,7 +373,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -50 }, ["show_mask"]=1, ["square_size"]={ @@ -400,7 +402,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -100 }, ["show_mask"]=1, ["square_size"]={ @@ -418,7 +420,7 @@ local tutorial = { ["arrow_direction"]=1, ["arrow_offset"]={ 0, - 0 + -50 } } } From d88e267558f12f8881096f2203fc8b912ccf4965 Mon Sep 17 00:00:00 2001 From: chenxi Date: Mon, 24 Apr 2023 22:02:01 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/config/skill.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lua/app/config/skill.lua b/lua/app/config/skill.lua index 9610ebe0..9fd6b27b 100644 --- a/lua/app/config/skill.lua +++ b/lua/app/config/skill.lua @@ -562,10 +562,7 @@ local skill = { ["link"]=1, ["position"]=2, ["method"]=2, - ["skill_type"]=2, - ["skill_type_parameter"]={ - 2 - }, + ["skill_type"]=1, ["boardrange"]={ { ["type"]=5,