|
|
@@ -129,6 +129,20 @@ namespace Fort23.Mono
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ for (var i = 0; i < selectedFaBaoInfo.FabaoPowerupConfig.PowerupItemIDs.Length; i++)
|
|
|
+ {
|
|
|
+ PlayerManager.Instance.BagController.DeductItem(
|
|
|
+ selectedFaBaoInfo.FabaoPowerupConfig.PowerupItemIDs[i],
|
|
|
+ selectedFaBaoInfo.FabaoPowerupConfig.PowerupItemCosts[i]);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum != null &&
|
|
|
+ selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig2.quality - 1] != -1)
|
|
|
+ {
|
|
|
+ PlayerManager.Instance.BagController.DeductItem(itemConfig.associateVlaue[0],
|
|
|
+ selectedFaBaoInfo.FabaoPowerupConfig.PromotePieceNum[itemConfig2.quality - 1]);
|
|
|
+ }
|
|
|
+
|
|
|
selectedFaBaoInfo.UpGrade();
|
|
|
PlayerManager.Instance.myHero.ComputeHeroInfo();
|
|
|
fx_ui_fabao_shengji.gameObject.SetActive(true);
|
|
|
@@ -519,7 +533,7 @@ namespace Fort23.Mono
|
|
|
{
|
|
|
ItemWidgetType1 itemWidgetType1 =
|
|
|
await UIManager.Instance.CreateGComponentForObject<ItemWidgetType1>(ItemWidgetType1Game, null,
|
|
|
- ItemRoot);
|
|
|
+ ItemRoot, isInstance: true);
|
|
|
itemWidgetType1.CustomInit(faBaoInfo.FabaoPowerupConfig.PowerupItemIDs[i],
|
|
|
faBaoInfo.FabaoPowerupConfig.PowerupItemCosts[i]);
|
|
|
itemWidgetType1s.Add(itemWidgetType1);
|