DESKTOP-MMO982B\User 2026-04-12 16:03:56 +08:00
parent bc04d70008
commit b5fb685a67
2 changed files with 7 additions and 3 deletions

View File

@ -39,7 +39,7 @@ function this.GetCollectLvAndNum()
collect=collect+HeroManager.ReturnGiftCount()
end
for k, v in ConfigPairs(giftConfig) do
if collect>=v.Gift then
if if collect>=v.Gift and HarmonyManager.GetSingleAdditionsData(HarmonyAddType.AddLv).value >= v.Harmony then
lv=v.Id
curNum=v.Box
else

View File

@ -235,7 +235,9 @@ function this.RefreshWindowData()
curNum=12
maxNum=12
--end
this.lvTxt.text="收集度"..lv..""
--this.lvTxt.text="收集度"..lv.."级"
local giftConfig = ConfigManager.GetConfig(ConfigName.GiftConfig)
this.lvTxt.text = "伙伴共鸣" .. giftConfig[lv].Harmony .. ""
LogError("lv========="..lv.." curnum=="..curNum.." maxNum=="..maxNum)
--maxNum=0
local giftDatas={}
@ -357,7 +359,9 @@ function this.SingleUpItemShow(_go,data,_index)
add:SetActive(false)
red:SetActive(false)
lockText.gameObject:SetActive(true)
lockText.text="收集度"..lv+1 .."级解锁"
--lockText.text="收集度"..lv+1 .."级解锁"
local giftConfig = ConfigManager.GetConfig(ConfigName.GiftConfig)
lockText.text = "伙伴共鸣" .. giftConfig[lv + 1].Harmony .."级解锁"
else
lockObj:SetActive(false)
lockText.gameObject:SetActive(false)