Merge branch 'master' into dev_20230919

This commit is contained in:
xiekaidong 2023-09-18 14:50:51 +08:00
commit 45174e1f9f
6 changed files with 28 additions and 2 deletions

View File

@ -521,6 +521,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)

View File

@ -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
-- 怪物攻击力加成

View File

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

View File

@ -172,12 +172,19 @@ 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
if DataManager:getRegisterTs() <= self:getConditionDay() then -- 前14天的号看不到
if Time:getServerTime() <= DataManager:getRegisterTs() + self:getConditionDay() then -- 前14天的号看不到
if self.fightCount > 0 or self.proBounght or self.utralBounght then
-- 兼容已参与的玩家
else
return false
end
end
local time = Time:getServerTime()
return self.endTime > time and time > self.startTime
end

View File

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

View File

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