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(); } }
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(); } }