Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private uint GetItemScore(MyWoW.Helpers.ClientDB.DBCacheItem.ItemInfo ItemInfo)
- {
- UInt32 Result = 0;
- UInt32 CurrentScoreToEarn = 100;
- foreach (String StatType in Forms.AllForms.Settings.AutoEquip_StatsPriority.Lines)
- {
- UInt32 StatValue = 0;
- if (StatType == "Stamina")
- StatValue = ItemInfo.Stamina;
- else if (StatType == "Intellect")
- StatValue = ItemInfo.Intellect;
- else if (StatType == "Agility")
- StatValue = ItemInfo.Agility;
- else if (StatType == "Spirit")
- StatValue = ItemInfo.Spirit;
- else if (StatType == "Strength")
- StatValue = ItemInfo.Strength;
- Result += CurrentScoreToEarn * StatValue;
- CurrentScoreToEarn -= 10;
- }
- return Result;
- }
Add Comment
Please, Sign In to add comment