From 4c55e3f1f0dbdb7f24f870275f874230010aeddd Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Tue, 13 Oct 2020 18:39:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81=E7=A4=BC=E5=8C=85=20special?= =?UTF-8?q?=E8=A1=A8id=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Expert/PatFaceManager.lua | 7 ++++--- .../~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua b/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua index a5977791a4..507a8b801f 100644 --- a/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua @@ -174,13 +174,14 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum) end end elseif v.Type == 9 then--心魔试炼限时礼包 - local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,90).Value + local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,92).Value local str = string.split(specialConfig,"|") local nums = string.split(str[1],"#") local canGet = false local value = MonsterCampManager.monsterWave + LogRed("nums"..#nums) if value == tonumber(nums[1]) or value == tonumber(nums[2]) or value == tonumber(nums[3]) or - ((value - tonumber(nums[3]))%(tonumber(str[2]))) == 0 then + ((value - tonumber(nums[3])) % tonumber(str[2]) == 0) then canGet = true end if canGet then @@ -189,7 +190,7 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum) end end elseif v.Type == 10 then--主线关卡限时礼包 - local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,91).Value + local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value local fightLevelConfig = ConfigManager.GetConfig(ConfigName.MainLevelConfig) local num = tonumber(specialConfig) local canGet = false diff --git a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua index 7be45f659d..3326921d76 100644 --- a/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/UpGradePackage/UpGradePackagePanel.lua @@ -188,13 +188,13 @@ function this:Refresh() if curType == 1 then this.tip.text = Language[12000]..level..Language[12001] or "" elseif curType == 3 then - local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,91).Value + local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,93).Value local num = tonumber(specialConfig) local value = fightLevelConfig[FightPointPassManager.lastPassFightId].SortId local value2 = ConfigManager.GetConfigDataByKey(ConfigName.MainLevelConfig,"SortId",math.floor(value/num)*num).Name this.tip.text ="恭喜您通关"..value2..",我们为您准备了超值礼包,帮助您快速通关" elseif curType == 4 then - local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,90).Value + local specialConfig = ConfigManager.GetConfigData(ConfigName.SpecialConfig,92).Value local str = string.split(specialConfig,"|") local nums = string.split(str[1],"#") local canGet = false