From 1d8ac73a44dba8fea8ff2030b9f16985969f5b2d Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Mon, 19 Oct 2020 20:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8B=8D=E8=84=B8commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Expert/PatFaceManager.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua b/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua index 887c388fb5..31650ca65d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua @@ -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