一些优化和审核模式处理
This commit is contained in:
parent
4cf830d917
commit
ed65ae452b
@ -509,6 +509,7 @@ function BattleBaseController:init(params, snapshot)
|
||||
self.delayEffectTextList = {}
|
||||
self.delayEffectTextCount = 0
|
||||
self.time = 0
|
||||
self.battleData:setTimeScaleBase(nil) -- 还原
|
||||
if snapshot then -- 处理战斗快照
|
||||
self:dealSnapshotBattleBaseInfo(snapshot)
|
||||
self.battleData:init(params, snapshot.battledataShopInfo)
|
||||
|
||||
@ -90,6 +90,8 @@ function BattleControllerBossRush:initOther()
|
||||
self.monsterAtkAddition3 = GFunc.getConstIntValue("activity_boss_rush_atk_add_3")
|
||||
self.monsterHpAddition3 = GFunc.getConstIntValue("activity_boss_rush_hp_add_3")
|
||||
self.battleData:setMaxBattleLv(MAX_LV)
|
||||
|
||||
self.battleData:setTimeScaleBase(1.5, true) -- 设置倍速
|
||||
end
|
||||
|
||||
-- 怪物攻击力加成
|
||||
|
||||
@ -9,6 +9,9 @@ function RankRewardcell:refresh(ranking1, ranking2, rewards, totalIndex)
|
||||
else
|
||||
rankStr = rankStr .. "-"
|
||||
end
|
||||
if ranking1 == ranking2 then
|
||||
rankStr = ranking1
|
||||
end
|
||||
if self:getIndex() == totalIndex then
|
||||
rankStr = ranking1 .. "+"
|
||||
end
|
||||
|
||||
@ -172,6 +172,9 @@ function ActBossRushData:getConditionDay()
|
||||
end
|
||||
|
||||
function ActBossRushData:getIsOpen()
|
||||
if GFunc.isShenhe() then
|
||||
return false
|
||||
end
|
||||
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ACTIVITY, true) then
|
||||
return false
|
||||
end
|
||||
|
||||
@ -136,6 +136,9 @@ function HeroFundData:setDirty()
|
||||
end
|
||||
|
||||
function HeroFundData:getIsOpen()
|
||||
if GFunc.isShenhe() then
|
||||
return false
|
||||
end
|
||||
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.SEVEN_DAY, true) then
|
||||
return false
|
||||
end
|
||||
|
||||
@ -24,8 +24,18 @@ function BattleBaseData:getRowCount()
|
||||
end
|
||||
|
||||
function BattleBaseData:getTimeScaleBase()
|
||||
if self.customTimeScaleBase then
|
||||
return self.customTimeScaleBase
|
||||
end
|
||||
return 1
|
||||
end
|
||||
|
||||
function BattleBaseData:setTimeScaleBase(timeScale, needResetTimeScale)
|
||||
self.customTimeScaleBase = timeScale
|
||||
if needResetTimeScale then
|
||||
self.timeScale = BattleConst.TIME_SCALE.LEVEL_1 * self.customTimeScaleBase
|
||||
end
|
||||
end
|
||||
---------------------------------end按需重写的方法-------------------------------
|
||||
|
||||
function BattleBaseData:init(params, snapInfo)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user