I've changed the BuffRuleCalculator.cs 77 to this:
Code:
if (rule.MaximumIconCount > 0)
{
if (buff.IconCounts[iconIndex] > rule.MaximumIconCount)
{
continue;;
}
}
else if (buff.IconCounts[iconIndex] < rule.MinimumIconCount)
{
continue;
}
and added this line to BuffRule.cs
Code:
public int MaximumIconCount { get; set; }
I am now able to use it like this:
Code:
//Show Sweeping Wind only when >0 <=3 Stacks
top.Add(new BuffRule(96090) { IconIndex = 0, MaximumIconCount = 3, ShowStacks = true, ShowTimeLeft = false, IconSizeMultiplier = 1.25f }); //Sweeping Wind
Which will result in showing the buff icon only, when I have between 1-3 Stacks.
This customization will be overriden with a new THud version tho. How can I change the behaviour properly so new versions will not undo my code?
The purpose is: I don't care for having Sweeping Winds at >3 Stacks, because the exact stackcount doesn't matter. I use it as a warning, that I have to carefully consume my stacks before it will run out.