|
@@ -96,12 +96,13 @@ namespace Fort23.Mono
|
|
|
|
|
|
ItemConfig itemConfig =
|
|
|
ConfigComponent.Instance.Get<ItemConfig>(selectedFaBaoInfo.FabaoConfig.ItemID);
|
|
|
- if (selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum != null && selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig.quality-1] != -1)
|
|
|
+ ItemConfig itemConfig2 = ConfigComponent.Instance.Get<ItemConfig>(itemConfig.associateVlaue[0]);
|
|
|
+ if (selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum != null && selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig2.quality-1] != -1)
|
|
|
{
|
|
|
|
|
|
- if (!PlayerManager.Instance.BagController.IsEnough(selectedFaBaoInfo.FabaoConfig.ItemID, selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig.quality-1]))
|
|
|
+ if (!PlayerManager.Instance.BagController.IsEnough(itemConfig.associateVlaue[0], selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig2.quality-1]))
|
|
|
{
|
|
|
- ItemSourcePanel.OpenPanel(selectedFaBaoInfo.FabaoConfig.ItemID);
|
|
|
+ ItemSourcePanel.OpenPanel(itemConfig.associateVlaue[0]);
|
|
|
TipMessagePanel.OpenTipMessagePanel("道具不足");
|
|
|
return;
|
|
|
}
|
|
@@ -481,11 +482,12 @@ namespace Fort23.Mono
|
|
|
|
|
|
ItemConfig itemConfig =
|
|
|
ConfigComponent.Instance.Get<ItemConfig>(selectedFaBaoInfo.FabaoConfig.ItemID);
|
|
|
+ ItemConfig itemConfig2 = ConfigComponent.Instance.Get<ItemConfig>(itemConfig.associateVlaue[0]);
|
|
|
//大突破需要消耗对应的法宝碎片
|
|
|
- if (faBaoInfo.FabaoPowerupConfig.PromotePieceNum != null && faBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig.quality - 1] != -1)
|
|
|
+ if (faBaoInfo.FabaoPowerupConfig.PromotePieceNum != null && faBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig2.quality - 1] != -1)
|
|
|
{
|
|
|
ItemWidgetType1 itemWidgetType1 = await UIManager.Instance.CreateGComponentForObject<ItemWidgetType1>(ItemWidgetType1Game,null, ItemRoot);
|
|
|
- itemWidgetType1.CustomInit(faBaoInfo.FabaoConfig.ItemID, faBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig.quality - 1]);
|
|
|
+ itemWidgetType1.CustomInit(itemConfig.associateVlaue[0], faBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig2.quality - 1]);
|
|
|
itemWidgetType1s.Add(itemWidgetType1);
|
|
|
}
|
|
|
}
|