protopally
Member
- Joined
- Jan 15, 2010
- Messages
- 391
thanks guys will double check power tech as its a port of vanguard i dont have power tech to test i do have a merc lol
Neo, with the bot release do we still need to update via SVN or will the bot update them when it detects changes? Sorry if this is a stupid question, it's my first time using a bot.
wondering this myself
The bot will update WingIt automatically. For most of June there will be updates several times a week![]()
A couple of snippet updates for WingIt.cs for your consideration. These snippets do two things:
- Keeps the companion healthy
The companion's health was not a primary concern with the existing code. Previously, the companion only gets healed as a side-effect of some other intermittently-used action. This becomes a problem if the companion regularly takes a lot more beating than the toon, and eventually results in companion death which cascades into toon death.- Eliminates a few boundary conditions
For instance, occasionally getting stuck trying to heal a dead companion
cheers & thanks for considering the changes,
chinajade
Around Wingit.cs:line 62:
new Decorator(ret => IsMeOrCompanionHealingNeeded(),
CreateUseClassRegainHealth()),
And around Wingit.cs:line 153:
new Decorator(ret => BuddyTor.Me.ResourceStat < 95 || IsMeOrCompanionHealingIncomplete(),
new Sequence(
CommonBehaviors.MoveStop(),
Spell.WaitForCast())),
new Switch<CharacterClass>(
ret => Class,
// Republic
new SwitchArgument<CharacterClass>(CharacterClass.Knight, Cast("Introspection", ret => BuddyTor.Me, ret => IsMeOrCompanionHealingIncomplete())),
new SwitchArgument<CharacterClass>(CharacterClass.Consular, Cast("Meditation", ret => BuddyTor.Me, ret => BuddyTor.Me.ResourceStat <= 50 || IsMeOrCompanionHealingIncomplete())),
new SwitchArgument<CharacterClass>(CharacterClass.Smuggler, Cast("Recuperate", ret => BuddyTor.Me, ret => BuddyTor.Me.ResourceStat <= 50 || IsMeOrCompanionHealingIncomplete())),
new SwitchArgument<CharacterClass>(CharacterClass.Trooper, Cast("Recharge and Reload", ret => BuddyTor.Me, ret => BuddyTor.Me.ResourceStat < 5 || IsMeOrCompanionHealingIncomplete())),
// Empire
new SwitchArgument<CharacterClass>(CharacterClass.Warrior, Cast("Channel Hatred", ret => BuddyTor.Me, ret => IsMeOrCompanionHealingIncomplete())),
new SwitchArgument<CharacterClass>(CharacterClass.Inquisitor, Cast("Seethe", ret => BuddyTor.Me, ret => BuddyTor.Me.ResourceStat <= 50 || IsMeOrCompanionHealingIncomplete())),
new SwitchArgument<CharacterClass>(CharacterClass.Agent, Cast("Recuperate", ret => BuddyTor.Me, ret => BuddyTor.Me.ResourceStat <= 50 || IsMeOrCompanionHealingIncomplete())),
new SwitchArgument<CharacterClass>(CharacterClass.BountyHunter, Cast("Recharge and Reload", ret => BuddyTor.Me, ret => BuddyTor.Me.ResourceStat >= 50 || IsMeOrCompanionHealingIncomplete()))
));
private bool IsCompanionInUse()
{
return ((BuddyTor.Me.CompanionUnlocked > 0) && (Helpers.Companion != null));
}
private bool IsMeOrCompanionHealingIncomplete()
{
return ((BuddyTor.Me.HealthPercent < 95.0f)
||
(IsCompanionInUse() && !Helpers.Companion.IsDead && (Helpers.Companion.HealthPercent < 95.0f)));
}
private bool IsMeOrCompanionHealingNeeded()
{
return ((BuddyTor.Me.HealthPercent < 70.0f)
||
(IsCompanionInUse() && !Helpers.Companion.IsDead && (Helpers.Companion.HealthPercent < 70.0f)));
}
Committed to the WingIt SVN
Also, #.0f is a range, it's never a health percent
Also, range in BW is x10
so 1f = 10 meters (don't ask me why)
0.4f is melee range (4 meters)
2.8f is ranged range (28 meters - minor issues at the 30 meters so we moved it to 2.8f)
Not atm. That spec would be currently seen as lightning.