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

Commit

Permalink
fix: remove in burst condition, use auto burst instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Oct 24, 2023
1 parent 40200be commit 1a97362
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public Dictionary<uint, ConditionSet> DisableConditionDict
public ConditionSet MoveForwardConditionSet { get; set; } = new ConditionSet();
public ConditionSet MoveBackConditionSet { get; set; } = new ConditionSet();
public ConditionSet AntiKnockbackConditionSet { get; set; } = new ConditionSet();
public ConditionSet BurstConditionSet { get; set; } = new ConditionSet();
public ConditionSet SpeedConditionSet { get; set; } = new ConditionSet();

public string Name;
Expand Down
4 changes: 2 additions & 2 deletions RotationSolver.Basic/DataCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static MajorConditionSet RightSet
}

var index = Service.Config.GetValue(PluginConfigInt.ActionSequencerIndex);
if(index < 0 || index >= ConditionSets.Count())
if(index < 0 || index >= ConditionSets.Length)
{
index = 0;
Service.Config.SetValue(PluginConfigInt.ActionSequencerIndex, index);
Expand Down Expand Up @@ -223,7 +223,7 @@ public static float AbilityRemain
public static bool IsMoveForward => SpecialType == SpecialCommandType.MoveForward || RightSet.MoveForwardConditionSet.IsTrue(RightNowRotation);
public static bool IsMoveBack => SpecialType == SpecialCommandType.MoveBack || RightSet.MoveBackConditionSet.IsTrue(RightNowRotation);
public static bool IsAntiKnockback => SpecialType == SpecialCommandType.AntiKnockback || RightSet.AntiKnockbackConditionSet.IsTrue(RightNowRotation);
public static bool IsBurst => SpecialType == SpecialCommandType.Burst || RightSet.BurstConditionSet.IsTrue(RightNowRotation);
public static bool IsBurst => SpecialType == SpecialCommandType.Burst;
public static bool IsSpeed => SpecialType == SpecialCommandType.Speed || RightSet.SpeedConditionSet.IsTrue(RightNowRotation);

public static bool State { get; set; } = false;
Expand Down
1 change: 0 additions & 1 deletion RotationSolver/Localization/Strings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,6 @@ internal class Strings
public string ConfigWindow_Auto_MoveForwardConditionSet { get; set; } = "Move Forward Forced Condition";
public string ConfigWindow_Auto_MoveBackConditionSet { get; set; } = "Move Back Forced Condition";
public string ConfigWindow_Auto_AntiKnockbackConditionSet { get; set; } = "Anti Knockback Forced Condition";
public string ConfigWindow_Auto_BurstConditionSet { get; set; } = "Burst Forced Condition";
public string ConfigWindow_Auto_SpeedConditionSet { get; set; } = "Speed Forced Condition";
public string ConfigWindow_ConditionSetDesc { get; set; } = "The Condition set you chose, click to modify.";
public string ConfigWindow_Basic_UseAdditionalConditions { get; set; } = "Use additional conditions";
Expand Down
3 changes: 0 additions & 3 deletions RotationSolver/UI/RotationConfigWindow_Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,6 @@ private static void DrawAuto()
{ () => LocalizationManager.RightLang.ConfigWindow_Auto_AntiKnockbackConditionSet,
() => DataCenter.RightSet.AntiKnockbackConditionSet?.DrawMain(DataCenter.RightNowRotation) },

{ () => LocalizationManager.RightLang.ConfigWindow_Auto_BurstConditionSet,
() => DataCenter.RightSet.BurstConditionSet?.DrawMain(DataCenter.RightNowRotation) },

{ () => LocalizationManager.RightLang.ConfigWindow_Auto_SpeedConditionSet,
() => DataCenter.RightSet.SpeedConditionSet?.DrawMain(DataCenter.RightNowRotation) },
})
Expand Down

0 comments on commit 1a97362

Please sign in to comment.