bossrush阵容
This commit is contained in:
parent
24a88cf05a
commit
d7f60f5002
@ -65,8 +65,17 @@ function ActBossRushData:init(data)
|
||||
self.activity_id = data.activity_id
|
||||
-- 战斗
|
||||
if data.heroes then
|
||||
local update = false
|
||||
for _, heroId in ipairs(data.heroes) do
|
||||
if heroId > 0 then
|
||||
update = true
|
||||
break
|
||||
end
|
||||
end
|
||||
if update then
|
||||
DataManager.FormationData:initFormationByType(GConst.BattleConst.FORMATION_TYPE.BOSS_RUSH, data.heroes)
|
||||
end
|
||||
end
|
||||
self.todayFightCount = data.fight_count or 0
|
||||
self.fightCount = data.total_fight_count or 0
|
||||
self.todayMaxWave = data.max_wave or 0
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user