Beispiel #1
0
 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"]));
 }
Beispiel #2
0
 public BaseEquipment(BaseItem item)
     : base(item)
 {
     subType = ((BaseEquipment)item).subType;
     Stats = new EquipmentStatCollection();
     Stats.AddStat<LinkableStat>(StatType.ARMOR, item.Stats.GetStat(StatType.ARMOR).BaseValue);
 }