From 5112645d9d2ae22f07ebabb76ca7c515942c8aec Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Wed, 20 Sep 2023 15:16:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E7=8E=A9=E5=8A=9F=E8=83=BD=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=8A=A0=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../battle_controller_full_moon_skin.lua | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lua/app/module/battle/controller/battle_controller_full_moon_skin.lua b/lua/app/module/battle/controller/battle_controller_full_moon_skin.lua index 35864b71..b6602dfb 100644 --- a/lua/app/module/battle/controller/battle_controller_full_moon_skin.lua +++ b/lua/app/module/battle/controller/battle_controller_full_moon_skin.lua @@ -13,6 +13,30 @@ function BattleControllerFullMoonSkin:getChapterId() return DataManager.FullMoonData:getCurSkinChallengeId() end +function BattleControllerFullMoonSkin:initOther() + local chapterId = DataManager.ChapterData:getMaxChapterId() + if chapterId <= 0 then + chapterId = DataManager.ChapterData.MIN_CHAPTER_ID + end + local cfg = ConfigManager:getConfig("chapter")[chapterId] + self.monsterAtkAddition = 0 + self.monsterHpAddition = 0 + if cfg and cfg.daily_challenge_difficulty then + self.monsterAtkAddition = cfg.daily_challenge_difficulty[2] + self.monsterHpAddition = cfg.daily_challenge_difficulty[1] + end +end + +-- 怪物攻击力加成 +function BattleControllerFullMoonSkin:getMonsterAtkAddition() + return self.monsterAtkAddition +end + +-- 怪物血量加成 +function BattleControllerFullMoonSkin:getMonsterHpAddition() + return self.monsterHpAddition +end + function BattleControllerFullMoonSkin:controllBattleEnd() self.combatReport = { battleType = GConst.BattleConst.BATTLE_TYPE.FULL_MOON_SKIN,