ItemCfg.cs 757 B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using ET;
  4. using GFGGame;
  5. namespace cfg.GfgCfg
  6. {
  7. public partial class ItemCfg
  8. {
  9. // 获取合成套装中的其他物品 ID 列表
  10. public List<int> SyntheticSuit
  11. {
  12. get
  13. {
  14. if (ItemCfgArray.Instance.SyntheticSuitDic.Count == 0)
  15. {
  16. return new List<int>();
  17. }
  18. if (ItemType == ConstItemType.DRESS_UP)
  19. {
  20. ItemCfgArray.Instance.SyntheticSuitDic.TryGetValue(Id, out var syntheticSuit);
  21. return syntheticSuit ?? new List<int>();
  22. }
  23. return new List<int>();
  24. }
  25. }
  26. }
  27. }