public BaseEquipment(Dictionary<string, string> itemDictionary) : base(itemDictionary) { subType = (EquipmentType)Enum.Parse(typeof(EquipmentType), itemDictionary["SubType"]); Stats = new EquipmentStatCollection(); Stats.AddStat<LinkableStat>(StatType.ARMOR, int.Parse(itemDictionary["BaseStat1"])); }
public BaseEquipment(BaseItem item) : base(item) { subType = ((BaseEquipment)item).subType; Stats = new EquipmentStatCollection(); Stats.AddStat<LinkableStat>(StatType.ARMOR, item.Stats.GetStat(StatType.ARMOR).BaseValue); }