新章节未开启,奖励与地图已经更改问题修改
parent
05496217f7
commit
934b6e8bb0
|
@ -541,7 +541,12 @@ end
|
|||
|
||||
|
||||
function this.IntiReward()
|
||||
local rewardData = fightLevelConfig[FightPointPassManager.curOpenFight].RewardShowMin
|
||||
local rewardData
|
||||
if FightPointPassManager.isOpenNewChapter then
|
||||
rewardData = fightLevelConfig[FightPointPassManager.curOpenFight].RewardShowMin
|
||||
else
|
||||
rewardData = fightLevelConfig[FightPointPassManager.lastPassFightId].RewardShowMin
|
||||
end
|
||||
for i = 1, #rewardData do
|
||||
if not this.rewardList[i] then
|
||||
local go = {}
|
||||
|
|
|
@ -347,6 +347,9 @@ end
|
|||
-- 获取当前章节数
|
||||
function this.GetCurChapterIndex()
|
||||
local curChapterId = math.floor(this.curOpenFight / 1000)
|
||||
if not FightPointPassManager.isOpenNewChapter then
|
||||
curChapterId = curChapterId-1
|
||||
end
|
||||
return curChapterId
|
||||
end
|
||||
|
||||
|
|
|
@ -188,6 +188,7 @@ function this:LoadMapData()
|
|||
local index = 1
|
||||
index = math.floor((curChapter + 1) % 3 + 1)
|
||||
m_curMapId = mapIdList[index]
|
||||
-- LogPink("#mapIdList:"..#mapIdList.." m_curMapId:"..m_curMapId.." curChapter:"..curChapter.." index:"..index.." State:"..tostring(FightPointPassManager.isOpenNewChapter))
|
||||
TileMapView.AwakeInit(this.mapRoot, m_curMapId, nil, Vector2.New(180, 180))
|
||||
TileMapView.isShowFog = false
|
||||
|
||||
|
|
Loading…
Reference in New Issue