法相manager修改提交

dev_chengFeng
wangzhenxing 2023-02-18 15:57:20 +08:00
parent 7276228e94
commit dd7394cc29
2 changed files with 13 additions and 8 deletions

View File

@ -228,7 +228,12 @@ function RewardTalismanSingleShowPopup2:BindEvent()
end)
Util.AddClick(self.btnUpstar, function()
UIManager.OpenPanel(UIName.EquipTreasureStrongPopup,self.equipData,2)
if self.position>6 then
UIManager.OpenPanel(UIName.FaXiangStrongPopup,self.equipData,2)
else
UIManager.OpenPanel(UIName.EquipTreasureStrongPopup,self.equipData,2)
end
self:ClosePanel()
end)

View File

@ -38,15 +38,15 @@ function this.InitSingleTreasureData(_singleData,notAdd)
single.maxRefineLv = currJewel.StarMax
single.upHeroDid = ""
-- single.race = currJewel.Race
-- single.name = GetLanguageStrById(itemConfig[staticId].Name)
single.itemConfig = itemConfig[staticId]
single.quantity = single.itemConfig.Quantity
single.name = GetLanguageStrById(itemConfig[staticId].Name)
single.frame = GetQuantityImageByquality(itemConfig[staticId].Quantity)
single.levelPool = currJewel.LevelUpPool
single.refinePool = currJewel.Star
single.equipType = currJewel.Type
local quantity = currJewel.Level
single.quantity = single.itemConfig.Quantity
-- if currJewel.Location == 1 then
-- single.type = Language[10552]
-- else
@ -246,7 +246,7 @@ end
--获取法相升级消耗
function this.GetFaXiangLevelCost(_pool,_lv)
local levelConfig=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.FaxiangStarConfig,"PoolId",_pool,"Level",_lv)
local levelConfig=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.FaxiangLevelConfig,"PoolId",_pool,"Level",_lv)
if levelConfig then
local items={}
for i = 1,#levelConfig.PropList do
@ -276,7 +276,7 @@ end
--获取法相升级消耗
function this.GetFaXiangStarCost(_poolId,_star,_data)
local config=ConfigManager.GetConfigDataByDoubleKey(ConfigName.FaxiangLevelConfig,"PoolId",_poolId,"Level",_star)
local config=ConfigManager.GetConfigDataByDoubleKey(ConfigName.FaxiangStarConfig,"PoolId",_poolId,"Level",_star)
local items={}
if config and config.PropList then
for i = 1, #config.PropList do
@ -284,7 +284,7 @@ function this.GetFaXiangStarCost(_poolId,_star,_data)
local item={}
--同类型宝物
local type=id[1]
if type==1 then
if type==0 then
item.id=_data.id
item.icon=_data.icon
item.frame=_data.frame
@ -307,7 +307,7 @@ function this.GetFaXiangStarCost(_poolId,_star,_data)
if config then
item.icon=GetResourcePath(config.ResourceID)
item.frame=GetQuantityImageByquality(config.Quantity)
item.haveNum=BagManager.GetItemById(type)
item.haveNum=BagManager.GetItemCountById(type)
item.needNum=id[2]
if item.haveNum>=item.needNum then
item.isEnough=true