摘星阁红点修改提交

dev_chengFeng
wangzhenxing 2022-08-08 18:13:14 +08:00
parent 847a90f43f
commit 5ab37aa2a9
1 changed files with 7 additions and 1 deletions

View File

@ -288,7 +288,13 @@ function this.CheckEquipUpgrade()
if this.BuildData[5].level >= HomeLand[6].UnlockLevel[2] then
if this.GetAllCanUpgrade() then
local configData = EquipRankUp[this.levelProId]
if configData.Cost and BagManager.GetTotalItemNum(configData.Cost[1]) >= configData.Cost[2] then
local isEnough=true
for i = 1, #configData.Cost do
if BagManager.GetTotalItemNum(configData.Cost[i][1]) < configData.Cost[i][2] then
isEnough=false
end
end
if configData.Cost and isEnough then
return true
else
return false