【山河设计图】====购买玉衡龙魂丹消耗修改

wangzhenxing 2022-11-07 16:19:03 +08:00
parent 3409394233
commit aea73aecec
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ function this.Refresh()
else else
this.costIcon.gameObject:SetActive(true) this.costIcon.gameObject:SetActive(true)
this.costIcon.sprite = this.spLoader:LoadSprite(GetResourcePath(itemConfig[storeData.Cost[1][1]].ResourceID)) this.costIcon.sprite = this.spLoader:LoadSprite(GetResourcePath(itemConfig[storeData.Cost[1][1]].ResourceID))
local needNum = storeData.Cost[2][PrivilegeManager.GetPrivilegeUsedTimes(buyPriId) + 1] or storeData.Cost[2][#storeData.Cost[2]] local needNum = CalculateCostCount(PrivilegeManager.GetPrivilegeUsedTimes(buyPriId),storeData.Cost[2]) --storeData.Cost[2][PrivilegeManager.GetPrivilegeUsedTimes(buyPriId) + 1] or storeData.Cost[2][#storeData.Cost[2]]
if BagManager.GetItemCountById(storeData.Cost[1][1]) >= needNum then if BagManager.GetItemCountById(storeData.Cost[1][1]) >= needNum then
this.costNum.text = string.format("<color=#ffffff><size=36>×%s</size></color>",needNum) this.costNum.text = string.format("<color=#ffffff><size=36>×%s</size></color>",needNum)
else else