From ba04ea8e7129803cddcb5c48340e715bd8a497c3 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Wed, 2 Jun 2021 11:29:26 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BF=83=E6=84=BF=E6=8A=BD=E5=8D=A1?= =?UTF-8?q?=E3=80=91=3D=3D=3D=3D=E4=BF=AE=E6=94=B9=E6=A6=82=E7=8E=87?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=EF=BC=8C=E5=BF=85=E5=BE=97=E5=89=A9=E4=BD=99?= =?UTF-8?q?=E6=AC=A1=E6=95=B0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Battle/Logic/Misc/BattleDefine.lua | 1 + .../DynamicActivity/TimeLimitUpHero.lua | 25 +++++++++---------- .../View/GeneralBigPopup_RecrutDetail.lua | 8 +++--- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleDefine.lua b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleDefine.lua index fcab345054..cbc5735773 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleDefine.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/Logic/Misc/BattleDefine.lua @@ -167,6 +167,7 @@ BattleEventName = { RoleBeExile = indexAdd(),--角色被放逐 RoleExileEnd = indexAdd(),--角色放逐结束 RoleAddBuffFail = indexAdd(),--角色添加buff失败 + RecordRageChange = indexAdd(), -- 怒气改变时 } BattleMaxFrame = 1000000 diff --git a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/TimeLimitUpHero.lua b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/TimeLimitUpHero.lua index 67da1ba79f..cfb31a1711 100644 --- a/Assets/ManagedResources/~Lua/Modules/DynamicActivity/TimeLimitUpHero.lua +++ b/Assets/ManagedResources/~Lua/Modules/DynamicActivity/TimeLimitUpHero.lua @@ -174,7 +174,19 @@ function TimeLimitUpHero:RefreshHeroData() end lastLiveName=GetResourcePath(curConfig.Live) heroLiveObj=HeroManager.LoadHerolive1(curConfig,self.heroPar) + local reMaintimes = ActivityGiftManager.GetActivityValueInfo(self.actId) + local totalTimes = 0 + for i = 1, #wishConfig.UpList do + if wishConfig.UpList[i][1]==curHeroId then + totalTimes=wishConfig.UpList[i][4] + end + end + reMaintimes = totalTimes - reMaintimes + if reMaintimes <= 0 then + reMaintimes = 1 + end + self.callTimeTxt.text=reMaintimes end local freeTime = 0 @@ -249,19 +261,6 @@ function TimeLimitUpHero:RefreshGetHeroTimes() end Util.AddOnceClick(m.btn,sureFunc) end - local reMaintimes = ActivityGiftManager.GetActivityValueInfo(self.actId) - local totalTimes = 0 - for i = 1, #wishConfig.UpList do - if wishConfig.UpList[i][1]==curHeroId then - totalTimes=wishConfig.UpList[i][4] - end - end - reMaintimes = totalTimes - reMaintimes - if reMaintimes == 0 then - reMaintimes = totalTimes - end - - self.callTimeTxt.text=reMaintimes end function TimeLimitUpHero:Recruit(actId,type,itemId) diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua index be5bf46762..b88524fac6 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_RecrutDetail.lua @@ -123,7 +123,7 @@ function this:ShowUpItem(config,actId) end end hero:OnOpen(false,{config.Id,1},1.1,true) - hero.name:GetComponent("Text").text=""..string.format("%.2f", (num/100000)*100) .."%" + hero.name:GetComponent("Text").text=""..string.format("%.2f", 5 ).."%" hero.gameObject:SetActive(true) for k,v in ipairs(this.ratePreList) do @@ -134,11 +134,11 @@ function this:ShowUpItem(config,actId) -- return a.GetRate>b.GetRate -- end) local rateList={} - local hero={tag="5星神将UP",name=config.ReadingName,value=num,Color=1} + local hero={tag="5星神将UP",name=config.ReadingName,value=0.05,Color=1} for key, value in ConfigPairs(pool) do local id=value.ItemId[1] local itemConfig=ConfigManager.TryGetConfigData(ConfigName.ItemConfig,id) - local data={tag=itemConfig.Name,name=value.ItemId[2],value=value.GetRate,Color=0,sort=value.Sort} + local data={tag=itemConfig.Name,name=value.ItemId[2],value=value.FakeRate,Color=0,sort=value.Sort} table.insert(rateList,data) end table.sort(rateList,function(a,b) @@ -165,7 +165,7 @@ function this:ShowUpItem(config,actId) this.ratePreList[n].rate.color=Color.New(0.66, 0.62,0.54, 1) end this.ratePreList[n].name.text=m.name - this.ratePreList[n].rate.text=string.format((m.value/100000)*100).."%" + this.ratePreList[n].rate.text=(m.value*100).."%" end end