diff --git a/lua/app/module/hero/hero_manager.lua b/lua/app/module/hero/hero_manager.lua index 24dd5fae..a19a4c1f 100644 --- a/lua/app/module/hero/hero_manager.lua +++ b/lua/app/module/hero/hero_manager.lua @@ -143,6 +143,14 @@ function HeroManager:getSkillRogueDesc(skillId, value) return I18N:getText("skill_rogue", skillId, "desc", str) end +function HeroManager:getSkillRogueDescEntry(skillId, entry) + local cfg = ConfigManager:getConfig("skill_rogue")[skillId] + if not cfg then + return GConst.EMPTY_STRING + end + return I18N:getText("skill_rogue", skillId, "entry_" .. entry) +end + function HeroManager:showValueRogue(skillId) local cfg = ConfigManager:getConfig("skill_rogue")[skillId] if cfg and cfg.toast_mark then diff --git a/lua/app/ui/hero/hero_skill_info_ui.lua b/lua/app/ui/hero/hero_skill_info_ui.lua index 41aa20b2..23f48774 100644 --- a/lua/app/ui/hero/hero_skill_info_ui.lua +++ b/lua/app/ui/hero/hero_skill_info_ui.lua @@ -104,7 +104,12 @@ function HeroSkillInfoUI:refreshSkillDesc() local skillUnlcokLv = skillInfo[i][1] local skillId = skillInfo[i][2] local lvStr = I18N:getGlobalText(I18N.GlobalConst.HERO_DESC_14, skillUnlcokLv) - local skillStr = ModuleManager.HeroManager:getSkillRogueDesc(skillId) + local skillStr + if i == 1 then + skillStr = ModuleManager.HeroManager:getSkillRogueDesc(skillId) + else + skillStr = ModuleManager.HeroManager:getSkillRogueDescEntry(skillId, i - 1) + end if currIdx >= i then self.skillDescTxs[i]:setText("" .. lvStr .. " " .. skillStr .. "") else