Пример #1
0
 public ItemStats(Poe.Entity item)
 {
     this.item = item;
     if (ItemStats.translate == null)
     {
         ItemStats.translate = new ItemStats.StatTranslator();
     }
     this.stats = new float[Enum.GetValues(typeof(ItemStat)).Length];
     this.ParseSockets();
     this.ParseExplicitMods();
     if (item.HasComponent<Weapon>())
     {
         this.ParseWeaponStats();
     }
 }
Пример #2
0
 public ItemStats(Poe.Entity item)
 {
     this.item = item;
     if (ItemStats.translate == null)
     {
         ItemStats.translate = new ItemStats.StatTranslator();
     }
     this.stats = new float[Enum.GetValues(typeof(ItemStat)).Length];
     this.ParseSockets();
     this.ParseExplicitMods();
     if (item.HasComponent <Weapon>())
     {
         this.ParseWeaponStats();
     }
 }