【宝物】精炼,弹服务器开小差
parent
1482d308cb
commit
a6e3ddcd7d
|
@ -78,7 +78,7 @@ function this.OpenTreasure(star)
|
||||||
end
|
end
|
||||||
|
|
||||||
--获取当前宝物升级数据
|
--获取当前宝物升级数据
|
||||||
function this.GetCurrTreasureLvConfig(_type, _id, _lv)
|
function this.jGetCurrTreasureLvConfig(_type, _id, _lv)
|
||||||
for _, configInfo in ConfigPairs(jewerLevelUpConfig) do
|
for _, configInfo in ConfigPairs(jewerLevelUpConfig) do
|
||||||
if configInfo.Type == _type and configInfo.PoolID == _id and configInfo.Level == _lv then
|
if configInfo.Type == _type and configInfo.PoolID == _id and configInfo.Level == _lv then
|
||||||
return configInfo
|
return configInfo
|
||||||
|
@ -334,7 +334,6 @@ function this.GetEnoughRefineTreasure(_id, _idDyn)
|
||||||
else
|
else
|
||||||
isUpHero = true
|
isUpHero = true
|
||||||
end
|
end
|
||||||
|
|
||||||
if v.id == _id and v.idDyn ~= _idDyn and v.lv == 0 and v.refineLv == 0 and isUpHero == false then
|
if v.id == _id and v.idDyn ~= _idDyn and v.lv == 0 and v.refineLv == 0 and isUpHero == false then
|
||||||
list[i] = v
|
list[i] = v
|
||||||
num = num + 1
|
num = num + 1
|
||||||
|
|
|
@ -173,6 +173,7 @@ end
|
||||||
function this.SetWindShow(_index)
|
function this.SetWindShow(_index)
|
||||||
haveTreasures = {}
|
haveTreasures = {}
|
||||||
type=_index
|
type=_index
|
||||||
|
LogBlue("curEquipData.idDyn:"..curEquipData.idDyn)
|
||||||
curEquipData = EquipTreasureManager.GetSingleEquipTreasreData(curEquipData.idDyn)
|
curEquipData = EquipTreasureManager.GetSingleEquipTreasreData(curEquipData.idDyn)
|
||||||
isMatEnough=true
|
isMatEnough=true
|
||||||
isCoinEnough=true
|
isCoinEnough=true
|
||||||
|
@ -378,7 +379,7 @@ function this.GetCostItems(_config)
|
||||||
if config then
|
if config then
|
||||||
item.icon=GetResourcePath(config.ResourceID)
|
item.icon=GetResourcePath(config.ResourceID)
|
||||||
item.frame=GetQuantityImageByquality(config.Quantity)
|
item.frame=GetQuantityImageByquality(config.Quantity)
|
||||||
local equips,num=EquipTreasureManager.GetEnoughRefineTreasure(type,"cxvcbvbvnbn")
|
local equips,num=EquipTreasureManager.GetEnoughRefineTreasure(type,curEquipData.idDyn)
|
||||||
if equips then
|
if equips then
|
||||||
item.haveNum= num
|
item.haveNum= num
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue