What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Items auto upgrade rules fix

plsfixbugs

Member
Joined
Feb 16, 2016
Messages
80
Reaction score
1
There is pretty nice feature (Items -> Item List -> Misc -> Enable Auto-Upgrade) where bot auto upgrades item list rules when better item found.

But there is a bug if u are using sockets/ancient rules it changes it to 0/false, maybe more, but i had problems only with those.

So if u are using this like me, u can fix it by changing this lines in Trinity/items/ItemList.cs

From
Code:
        private static void UpgradeRules(Dictionary<LRule, float> ruleUpgrades)
        {
            if (!TrinityPlugin.Settings.Loot.ItemList.UpgradeRules)
                return;

            foreach (var pair in ruleUpgrades)
            {
                Logger.Log($"Upgraded Rule {pair.Key.Name} from {pair.Key.Value} to {pair.Value}");
                pair.Key.Value = pair.Value;
            }
        }
To
Code:
        private static void UpgradeRules(Dictionary<LRule, float> ruleUpgrades)
        {
            if (!TrinityPlugin.Settings.Loot.ItemList.UpgradeRules)
                return;

            foreach (var pair in ruleUpgrades.Where(x => x.Key.Name != "Sockets" && x.Key.Name != "Ancient"))
            {
                Logger.Log($"Upgraded Rule {pair.Key.Name} from {pair.Key.Value} to {pair.Value}");
                pair.Key.Value = pair.Value;
            }
        }
 
So, one if this checks if (itemSetting.Type != LItem.ILType.Slot) or maybe both of them in ItemList.cs broke this feature and now its now working at all.
 
Are you wanting it to work for Item Type?
 
Back
Top