Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
Update MCH Beta
Browse files Browse the repository at this point in the history
Wildfire drift protections for mch beta
  • Loading branch information
Toshi committed Apr 7, 2024
1 parent efc4bd6 commit 7a10c6d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 18 deletions.
46 changes: 29 additions & 17 deletions BasicRotations/Ranged/MCH_Beta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ protected override bool AttackAbility(out IAction? act)
}
}

if (!CombatElapsedLess(12) && CanUseHyperchargePvE(out act)) return true;
if (!WildfirePvE.Cooldown.WillHaveOneCharge(30))
{
return (CanUseHyperchargePvE(out act));
}
if (CanUseRookAutoturretPvE(out act)) return true;

if (BarrelStabilizerPvE.CanUse(out act)) return true;
Expand Down Expand Up @@ -138,27 +141,36 @@ private bool CanUseRookAutoturretPvE(out IAction? act)


// Logic for Hypercharge
const float REST_TIME = 6f;
private bool CanUseHyperchargePvE(out IAction? act)
{
act = null;

// Checks if AOE is false and at least 12 seconds of combat has elapsed
if (!SpreadShotPvE.CanUse(out _) && !CombatElapsedLess(12) &&
// AirAnchor Charge Detection
((AirAnchorPvE.EnoughLevel && AirAnchorPvE.Cooldown.WillHaveOneCharge(REST_TIME)) ||
// HotShot Charge Detection
(!AirAnchorPvE.EnoughLevel && HotShotPvE.EnoughLevel && HotShotPvE.Cooldown.WillHaveOneCharge(REST_TIME))) ||
// Drill Charge Detection
(DrillPvE.EnoughLevel && DrillPvE.Cooldown.WillHaveOneCharge(REST_TIME)) ||
// Chainsaw Charge Detection
(ChainSawPvE.EnoughLevel && ChainSawPvE.Cooldown.WillHaveOneCharge(REST_TIME)))
float REST_TIME = 6f;
if
//Cannot AOE
((!SpreadShotPvE.CanUse(out _))
&&
//Combat elapsed 12 seconds
(!CombatElapsedLess(12))
&&
// AirAnchor Enough Level % AirAnchor
((AirAnchorPvE.EnoughLevel && AirAnchorPvE.Cooldown.WillHaveOneCharge(REST_TIME))
||
// HotShot Charge Detection
(!AirAnchorPvE.EnoughLevel && HotShotPvE.EnoughLevel && HotShotPvE.Cooldown.WillHaveOneCharge(REST_TIME))
||
// Drill Charge Detection
(DrillPvE.EnoughLevel && DrillPvE.Cooldown.WillHaveOneCharge(REST_TIME))
||
// Chainsaw Charge Detection
(ChainSawPvE.EnoughLevel && ChainSawPvE.Cooldown.WillHaveOneCharge(REST_TIME))))
{
act = null;
return false;
}

// Use Hypercharge
return HyperchargePvE.CanUse(out act);
else
{
// Use Hypercharge
return HyperchargePvE.CanUse(out act);
}
}

#endregion
Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFramework>net8.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Authors>LTS</Authors>
<Version>6.5.8.22</Version>
<Version>6.5.8.28</Version>
<PlatformTarget>x64</PlatformTarget>
<Platforms>AnyCPU</Platforms>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit 7a10c6d

Please sign in to comment.