拍脸commit
parent
a4dd2ffd38
commit
61a07de094
|
@ -2,7 +2,7 @@
|
|||
local this = PatFaceManager
|
||||
this.isFirstLog = 0--0当天第一次登陆
|
||||
this.isLogin = false
|
||||
|
||||
local fightLevelConfig = ConfigManager.GetConfig(ConfigName.MainLevelConfig)
|
||||
function this.Initialize()
|
||||
Game.GlobalEvent:AddEvent(GameEvent.PatFace.PatFaceSend, this.OnAddPatFaceData)
|
||||
end
|
||||
|
@ -29,12 +29,12 @@ function this.SetisFirstLogVal(isDayFirst,setPatFaceFinishTabs)
|
|||
RedPointManager.PlayerPrefsSetStr(setPatFaceFinishTabs[i].Id..PlayerManager.level.."PatFace","1")
|
||||
end
|
||||
elseif setPatFaceFinishTabs[i].Type == 9 then
|
||||
if RedPointManager.PlayerPrefsGetStr(setPatFaceFinishTabs[i].Id.."MonsterWavePatFace") == "0" then
|
||||
RedPointManager.PlayerPrefsSetStr(setPatFaceFinishTabs[i].Id.."MonsterWavePatFace","1")
|
||||
if RedPointManager.PlayerPrefsGetStr(setPatFaceFinishTabs[i].Id..MonsterCampManager.monsterWave.."MonsterWavePatFace") == "0" then
|
||||
RedPointManager.PlayerPrefsSetStr(setPatFaceFinishTabs[i].Id..MonsterCampManager.monsterWave.."MonsterWavePatFace","1")
|
||||
end
|
||||
elseif setPatFaceFinishTabs[i].Type == 10 then
|
||||
if RedPointManager.PlayerPrefsGetStr(setPatFaceFinishTabs[i].Id.."MainLevelPatFace") == "0" then
|
||||
RedPointManager.PlayerPrefsSetStr(setPatFaceFinishTabs[i].Id.."MainLevelPatFace","1")
|
||||
if RedPointManager.PlayerPrefsGetStr(setPatFaceFinishTabs[i].Id..(fightLevelConfig[FightPointPassManager.lastPassFightId].SortId - 1).."MainLevelPatFace") == "0" then
|
||||
RedPointManager.PlayerPrefsSetStr(setPatFaceFinishTabs[i].Id..(fightLevelConfig[FightPointPassManager.lastPassFightId].SortId - 1).."MainLevelPatFace","1")
|
||||
end
|
||||
else
|
||||
if setPatFaceFinishTabs[i].ShowType ~= 2 then--触发就拍不用赋值
|
||||
|
@ -192,13 +192,12 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum)
|
|||
canGet = true
|
||||
end
|
||||
if canGet then
|
||||
if RedPointManager.PlayerPrefsGetStr(v.Id.."MonsterWavePatFace") == "0" then
|
||||
if RedPointManager.PlayerPrefsGetStr(v.Id..MonsterCampManager.monsterWave.."MonsterWavePatFace") == "0" then
|
||||
table.insert(patFaceAllData,v)
|
||||
end
|
||||
end
|
||||
elseif v.Type == 10 then--主线关卡限时礼包
|
||||
local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value
|
||||
local fightLevelConfig = ConfigManager.GetConfig(ConfigName.MainLevelConfig)
|
||||
local num = tonumber(specialConfig)
|
||||
local canGet = false
|
||||
local value = fightLevelConfig[FightPointPassManager.lastPassFightId].SortId
|
||||
|
@ -206,7 +205,7 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum)
|
|||
canGet = true
|
||||
end
|
||||
if canGet then
|
||||
if RedPointManager.PlayerPrefsGetStr(v.Id.."MainLevelPatFace") == "0" then
|
||||
if RedPointManager.PlayerPrefsGetStr(v.Id..(fightLevelConfig[FightPointPassManager.lastPassFightId].SortId - 1).."MainLevelPatFace") == "0" then
|
||||
table.insert(patFaceAllData,v)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue