【山河设计图】====购买玉衡龙魂丹消耗修改
parent
3409394233
commit
aea73aecec
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue