Here is exactly copy/pasted from my weighting.cs file:
// Weight Health Globes
bool witchDoctorManaLow =
Player.ActorClass == ActorClass.Crusader &&
Player.PrimaryResourcePct <= 0.40[COLOR="#FF0000"];[/COLOR]
[COLOR="#FF0000"]//[/COLOR] if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))
[COLOR="#FF0000"]//[/COLOR] {
[COLOR="#FF0000"]//[/COLOR] cacheObject.Weight = 0;
[COLOR="#FF0000"]//[/COLOR] }
I am not sure if it's because of the bool witchDoctorManaLow =, I assume it's class specific?
Does anyone else know how to change health globes so that I can force the bot to pickup health under 50% health and under 40% resources for all classes?
[COLOR="#B22222"][B]Search "CollectHealthGlobe" (8 hits in 3 files)[/B][/COLOR]
[COLOR="#0000CD"][B] ...\Plugins\Trinity\Combat\[/COLOR][COLOR="#B22222"]TargetUtil.cs[/COLOR][/B] (1 hit)
[B]Line 396:[/B][COLOR="#008080"] Trinity.Settings.Combat.Misc.CollectHealthGlobe &&[/COLOR]
[COLOR="#0000CD"][B] ...\Plugins\Trinity\Combat\[/COLOR][COLOR="#B22222"]Weighting.cs[/COLOR][/B] (1 hit)
[B]Line 656:[/B] [COLOR="#008080"]if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))[/COLOR]
[COLOR="#0000CD"][B] ...\Plugins\Trinity\Settings\Combat\[/COLOR][COLOR="#B22222"]MiscCombatSetting.cs[/COLOR][/B] (6 hits)
[B]Line 16:[/B] [COLOR="#008080"]private bool _CollectHealthGlobe;[/COLOR]
[B]Line 216:[/B] [COLOR="#008080"]public bool CollectHealthGlobe[/COLOR]
[B]Line 220:[/B] [COLOR="#008080"]return _CollectHealthGlobe;[/COLOR]
[B]Line 224:[/B] [COLOR="#008080"]if (_CollectHealthGlobe != value)[/COLOR]
[B]Line 226:[/B] [COLOR="#008080"]_CollectHealthGlobe = value;[/COLOR]
[B]Line 227:[/B] [COLOR="#008080"]OnPropertyChanged("CollectHealthGlobe");[/COLOR]
// Weight Health Globes
bool witchDoctorManaLow =
Player.ActorClass == [B]ActorClass.Witchdoctor[/B] &&
Player.PrimaryResourcePct <= 0.15 &&
HotbarSkills.PassiveSkills.Contains(SNOPower.Witchdoctor_Passive_GruesomeFeast);
if ((Player.CurrentHealthPct >= 1 || !Settings.Combat.Misc.CollectHealthGlobe))
{
cacheObject.Weight = 0;
}
bool includeHealthGlobes = false;
switch (Trinity.Player.ActorClass)
{
case [B]ActorClass.Barbarian[/B]:
includeHealthGlobes = CombatBase.Hotbar.Contains(SNOPower.Barbarian_Whirlwind) &&
Trinity.Settings.Combat.Misc.CollectHealthGlobe &&
ObjectCache.Any(g => g.Type == GObjectType.HealthGlobe && g.Weight > 0);
break;
}
Does anyone else know how to change health globes so that I can force the bot to pickup health under 50% health and under 40% resources for all classes?