public Stat(string name, Range<float> range, ItemType itemType, ItemModTier parentTier) { Name = name; Range = range; ParentTier = parentTier; ItemType = itemType; }
public Stat(XmlStat xmlStat, ItemType itemType, ItemModTier parentTier = null) { Name = xmlStat.Name; // RangeTrees don't like from > to. Range = new Range<float>(Math.Min(xmlStat.From, xmlStat.To), Math.Max(xmlStat.From, xmlStat.To)); ParentTier = parentTier; ItemType = itemType; }
public ModWrapper(string mod, ItemModTier imod) { this.Mod = mod; this.ItemMod = imod; }
public string TiersString(ItemModTier[] tiers) { if (tiers == null || tiers.Length == 0) return ""; return string.Join("/", tiers.Select(s => string.Format("T{0}:{1}", s.Tier, s.Name))); }