摘星阁红点修改提交
parent
847a90f43f
commit
5ab37aa2a9
|
@ -288,7 +288,13 @@ function this.CheckEquipUpgrade()
|
||||||
if this.BuildData[5].level >= HomeLand[6].UnlockLevel[2] then
|
if this.BuildData[5].level >= HomeLand[6].UnlockLevel[2] then
|
||||||
if this.GetAllCanUpgrade() then
|
if this.GetAllCanUpgrade() then
|
||||||
local configData = EquipRankUp[this.levelProId]
|
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
|
return true
|
||||||
else
|
else
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in New Issue