Exemplo n.º 1
0
        public static string GetSetForLegendaryItem(LegendaryInfo legendary)
        {
            if (legendary != null && legendary.IsSetItem && !string.IsNullOrEmpty(legendary.ID))
            {
                _itemsToSetMap.TryGetValue(legendary.ID, out var setInfo);
                return(setInfo?.ID);
            }

            return(null);
        }
Exemplo n.º 2
0
 public static bool IsGenericLegendary(LegendaryInfo legendaryInfo)
 {
     return(legendaryInfo == GenericLegendaryInfo);
 }
Exemplo n.º 3
0
 public static bool TryGetLegendaryInfo(string legendaryID, out LegendaryInfo legendaryInfo)
 {
     return(LegendaryInfo.TryGetValue(legendaryID, out legendaryInfo));
 }