|
@@ -28,6 +28,27 @@ namespace GFGGame
|
|
|
{
|
|
|
_decomposeData[rarity].Add(itemId);
|
|
|
}
|
|
|
+
|
|
|
+ //套装拥有的时候需要让材料重新加进列表
|
|
|
+ int[][] syntheticMateriarsArr = ItemDataManager.GetItemSyntheticSuitArr(itemId);
|
|
|
+ if (syntheticMateriarsArr.Length > 0) {
|
|
|
+ foreach (int[] materiars in syntheticMateriarsArr)
|
|
|
+ {
|
|
|
+ int materialId = materiars[0];
|
|
|
+ int materialItemType = ItemDataManager.GetItemType(materialId);
|
|
|
+ if (materialItemType == ConstItemType.DRESS_UP) {
|
|
|
+ long materiarsCount = ItemCanDecomposeCount(materialId);
|
|
|
+ if (materiarsCount> 0 && (materiarsCount + materiars[1] - DeductSynthesisNeedNum(materialId)) > 0)
|
|
|
+ {
|
|
|
+ rarity = ItemDataManager.GetItemRarity(materialId);
|
|
|
+ if (_decomposeData[rarity].IndexOf(materialId) < 0)
|
|
|
+ {
|
|
|
+ _decomposeData[rarity].Add(materialId);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public void Remove(int itemId)
|