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