试玩功能属性加成

This commit is contained in:
xiekaidong 2023-09-20 15:16:23 +08:00
parent cbbccaaa63
commit 5112645d9d

View File

@ -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,