【灵兽系统】召唤修改

jiaoyangna 2020-10-26 17:14:24 +08:00
parent 37259287a4
commit db98590cf3
3 changed files with 11 additions and 11 deletions

View File

@ -126,17 +126,16 @@ function PokemonSingleResultPanel:TenOpenPanel()
end end
function PokemonSingleResultPanel:UpdataPanelData(_heroData) function PokemonSingleResultPanel:UpdataPanelData(_heroData)
if heroStaticData and testLiveGO then
poolManager:UnLoadLive(GetResourcePath(heroStaticData.Live), testLiveGO)
heroStaticData, testLiveGO = nil, nil
end
--赋值展示界面数据 --赋值展示界面数据
LogGreen("_heroData.tempId:".._heroData.tempId)
-- local time2 = Timer.New(function () -- local time2 = Timer.New(function ()
heroStaticData = heroConfigData[_heroData.tempId] heroStaticData = heroConfigData[_heroData.tempId]
this.UI_Effect_appear:SetActive(false) this.UI_Effect_appear:SetActive(false)
SoundManager.PlaySound(SoundConfig.Sound_Recruit3) SoundManager.PlaySound(SoundConfig.Sound_Recruit3)
if heroStaticData and testLiveGO then
poolManager:UnLoadLive(GetResourcePath(heroStaticData.Live), testLiveGO)
heroStaticData, testLiveGO = nil, nil
end
--不同星级开启不同特效 --不同星级开启不同特效
this.UI_Effect_choukaSSR:SetActive(true) this.UI_Effect_choukaSSR:SetActive(true)
--TODO:动态加载立绘 --TODO:动态加载立绘

View File

@ -45,7 +45,7 @@ function PokemonSummonOneResultPanel:BindEvent()
end) end)
Util.AddClick(this.openOneAgainButton, function () Util.AddClick(this.openOneAgainButton, function ()
--是否超过每日最大上限 --是否超过每日最大上限
if PrivilegeManager.GetPrivilegeUsedTimes(RecruitMaxtimesId) < 1 then if PrivilegeManager.GetPrivilegeRemainValue(RecruitMaxtimesId) < 1 then
PopupTipPanel.ShowTip(Language[11760]) PopupTipPanel.ShowTip(Language[11760])
return return
end end

View File

@ -58,10 +58,11 @@ function PokemonSummonTenResultPanel:BindEvent()
self:ClosePanel() self:ClosePanel()
end) end)
Util.AddClick(this.openTenAgainButton, function () Util.AddClick(this.openTenAgainButton, function ()
local maxTimesId = lotterySetting[RecruitType.LingShowSingle].maxTimesId local maxTimesId = lotterySetting[RecruitType.LingShowSingle].MaxTimes
local freeTimesId = lotterySetting[RecruitType.LingShowSingle].FreeTimesId local freeTimesId = lotterySetting[RecruitType.LingShowSingle].FreeTimes
--是否超过每日最大上限 --是否超过每日最大上限
if PrivilegeManager.GetPrivilegeUsedTimes(maxTimesId) < 10 then if PrivilegeManager.GetPrivilegeRemainValue(maxTimesId) < 10 then
LogGreen("maxTimesId:"..maxTimesId.." times"..PrivilegeManager.GetPrivilegeRemainValue(maxTimesId))
PopupTipPanel.ShowTip(Language[11760]) PopupTipPanel.ShowTip(Language[11760])
return return
end end
@ -81,7 +82,7 @@ function PokemonSummonTenResultPanel:BindEvent()
if itemId == 16 then if itemId == 16 then
PrivilegeManager.RefreshPrivilegeUsedTimes(YaojingCallPrivilegeId,10)--记录妖晶抽卡次数 PrivilegeManager.RefreshPrivilegeUsedTimes(YaojingCallPrivilegeId,10)--记录妖晶抽卡次数
end end
UIManager.OpenPanel(UIName.PokemonSingleResultPanel,this.recruitType,msg.drop) UIManager.OpenPanel(UIName.PokemonSingleResultPanel,this.recruitType,msg.drop)
--CheckRedPointStatus(RedPointType.QianKunBox) --CheckRedPointStatus(RedPointType.QianKunBox)
end,freeTimesId,itemId,itemNum) end,freeTimesId,itemId,itemNum)
end) end)