Merge branch 'master' into dev_20230919
This commit is contained in:
commit
45174e1f9f
@ -521,6 +521,7 @@ function BattleBaseController:init(params, snapshot)
|
|||||||
self.delayEffectTextList = {}
|
self.delayEffectTextList = {}
|
||||||
self.delayEffectTextCount = 0
|
self.delayEffectTextCount = 0
|
||||||
self.time = 0
|
self.time = 0
|
||||||
|
self.battleData:setTimeScaleBase(nil) -- 还原
|
||||||
if snapshot then -- 处理战斗快照
|
if snapshot then -- 处理战斗快照
|
||||||
self:dealSnapshotBattleBaseInfo(snapshot)
|
self:dealSnapshotBattleBaseInfo(snapshot)
|
||||||
self.battleData:init(params, snapshot.battledataShopInfo)
|
self.battleData:init(params, snapshot.battledataShopInfo)
|
||||||
|
|||||||
@ -90,6 +90,8 @@ function BattleControllerBossRush:initOther()
|
|||||||
self.monsterAtkAddition3 = GFunc.getConstIntValue("activity_boss_rush_atk_add_3")
|
self.monsterAtkAddition3 = GFunc.getConstIntValue("activity_boss_rush_atk_add_3")
|
||||||
self.monsterHpAddition3 = GFunc.getConstIntValue("activity_boss_rush_hp_add_3")
|
self.monsterHpAddition3 = GFunc.getConstIntValue("activity_boss_rush_hp_add_3")
|
||||||
self.battleData:setMaxBattleLv(MAX_LV)
|
self.battleData:setMaxBattleLv(MAX_LV)
|
||||||
|
|
||||||
|
self.battleData:setTimeScaleBase(1.5, true) -- 设置倍速
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 怪物攻击力加成
|
-- 怪物攻击力加成
|
||||||
|
|||||||
@ -9,6 +9,9 @@ function RankRewardcell:refresh(ranking1, ranking2, rewards, totalIndex)
|
|||||||
else
|
else
|
||||||
rankStr = rankStr .. "-"
|
rankStr = rankStr .. "-"
|
||||||
end
|
end
|
||||||
|
if ranking1 == ranking2 then
|
||||||
|
rankStr = ranking1
|
||||||
|
end
|
||||||
if self:getIndex() == totalIndex then
|
if self:getIndex() == totalIndex then
|
||||||
rankStr = ranking1 .. "+"
|
rankStr = ranking1 .. "+"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -172,11 +172,18 @@ function ActBossRushData:getConditionDay()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ActBossRushData:getIsOpen()
|
function ActBossRushData:getIsOpen()
|
||||||
|
if GFunc.isShenhe() then
|
||||||
|
return false
|
||||||
|
end
|
||||||
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ACTIVITY, true) then
|
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.ACTIVITY, true) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
if DataManager:getRegisterTs() <= self:getConditionDay() then -- 前14天的号,看不到
|
if Time:getServerTime() <= DataManager:getRegisterTs() + self:getConditionDay() then -- 前14天的号,看不到
|
||||||
return false
|
if self.fightCount > 0 or self.proBounght or self.utralBounght then
|
||||||
|
-- 兼容已参与的玩家
|
||||||
|
else
|
||||||
|
return false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
local time = Time:getServerTime()
|
local time = Time:getServerTime()
|
||||||
return self.endTime > time and time > self.startTime
|
return self.endTime > time and time > self.startTime
|
||||||
|
|||||||
@ -136,6 +136,9 @@ function HeroFundData:setDirty()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function HeroFundData:getIsOpen()
|
function HeroFundData:getIsOpen()
|
||||||
|
if GFunc.isShenhe() then
|
||||||
|
return false
|
||||||
|
end
|
||||||
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.SEVEN_DAY, true) then
|
if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.SEVEN_DAY, true) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
@ -24,8 +24,18 @@ function BattleBaseData:getRowCount()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function BattleBaseData:getTimeScaleBase()
|
function BattleBaseData:getTimeScaleBase()
|
||||||
|
if self.customTimeScaleBase then
|
||||||
|
return self.customTimeScaleBase
|
||||||
|
end
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BattleBaseData:setTimeScaleBase(timeScale, needResetTimeScale)
|
||||||
|
self.customTimeScaleBase = timeScale
|
||||||
|
if needResetTimeScale then
|
||||||
|
self.timeScale = BattleConst.TIME_SCALE.LEVEL_1 * self.customTimeScaleBase
|
||||||
|
end
|
||||||
|
end
|
||||||
---------------------------------end按需重写的方法-------------------------------
|
---------------------------------end按需重写的方法-------------------------------
|
||||||
|
|
||||||
function BattleBaseData:init(params, snapInfo)
|
function BattleBaseData:init(params, snapInfo)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user