-
Member
BuffRuleFactory - How to add new DH GoD Momentum Stacks?
BuffRuleFactory - How to add new DH GoD Momentum Stacks? Thank you
-
Active Member
Add this to your PluginEnablerDisabler.cs
Code:
Hud.TogglePlugin<PlayerBottomBuffListPlugin>(true);
Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin =>
{
plugin.BuffPainter.ShowTimeLeftNumbers = true;
plugin.RuleCalculator.Rules.Add(new BuffRule(484289) { IconIndex = 10, MinimumIconCount = 1, ShowStacks = false, ShowTimeLeft = true, IconSizeMultiplier = 1.0f }); // Gears of Dreadland / 2pc: Momentum 20sec Cap
plugin.RuleCalculator.Rules.Add(new BuffRule(134030) { IconIndex = 8, MinimumIconCount = 1, ShowStacks = false, ShowTimeLeft = true, IconSizeMultiplier = 1.0f }); // Gears of Dreadland / 4pc: 60% DmgReduction, 5sec
});
Last edited by Saico; 06-29-2020 at 10:53 AM.
-
Post Thanks / Like - 1 Thanks
Colmans (1 members gave Thanks to Saico for this useful post)
-
Member
Thank you, while this works perfectly fine in PlayerBottomBuffList plugin, I'm looking for a way to add it to BuffRuleFactory which is part of gigi's PartyBuffPlugin
-
Member
How i do? i am a little rookies whit pluging
-
Contributor
Originally Posted by
alternate_
I'm looking for a way to add it to BuffRuleFactory which is part of gigi's PartyBuffPlugin
Unfortunately, you cannot add it just as a config option, it must be edited into BuffRuleFactory.cs. Based on Saico's code, you'd need to add the following to BuffRuleFactory.cs right below the last pwr definitions that are already there:
Code:
if (pwr == 484289) { // Gears of Dreadland / 2pc
yield return new BuffRule(pwr) { IconIndex = 10, MinimumIconCount = 1, ShowStacks = false, ShowTimeLeft = true };
}
if (pwr == 134030) { // Gears of Dreadland / 4pc
yield return new BuffRule(pwr) { IconIndex = 8, MinimumIconCount = 1, ShowStacks = false, ShowTimeLeft = true };
}
Then you add those pwr numbers to your PartyBuffConfigPlugin.cs as desired.
Last edited by Razorfish; 07-10-2020 at 12:18 PM.
-
Post Thanks / Like - 3 Thanks
-
Member
thank you this is what I was looking for!!
-
Member
Hud.Sno.SnoPowers.Generic_P69ItemPassiveUniqueRing010,
-
Post Thanks / Like - 1 Thanks
alternate_ (1 members gave Thanks to rambo99jose for this useful post)