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

Commit

Permalink
fix: add traits.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Aug 19, 2023
1 parent f58f73d commit 2058198
Show file tree
Hide file tree
Showing 38 changed files with 478 additions and 320 deletions.
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Actions/IAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// The action.
/// </summary>
public interface IAction : ITexture, IEnouthLevel
public interface IAction : ITexture, IEnoughLevel
{
/// <summary>
/// ID of this action.
Expand Down
2 changes: 1 addition & 1 deletion RotationSolver.Basic/Configuration/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ [Serializable] public class GlobalConfig

{ PluginConfigVector4.TargetColor, new (1f, 0.2f, 0f, 0.8f)},
{ PluginConfigVector4.SubTargetColor, new (1f, 0.9f, 0f, 0.8f)},
{ PluginConfigVector4.ControlWindowLockBg, new (0, 0, 0, 0.6f)},
{ PluginConfigVector4.ControlWindowLockBg, new (0, 0, 0, 0.5f)},
{ PluginConfigVector4.ControlWindowUnlockBg, new (0, 0, 0, 0.75f)},
{ PluginConfigVector4.InfoWindowBg, new (0, 0, 0, 0.4f)},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/// <summary>
/// The interface about Enough Level.
/// </summary>
public interface IEnouthLevel
public interface IEnoughLevel
{
/// <summary>
/// Player's level is enough for this action's usage.
Expand Down
32 changes: 16 additions & 16 deletions RotationSolver.Basic/Rotations/Basic/AST_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,82 +255,82 @@ public abstract class AST_Base : CustomRotation
/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend { get; } = new BaseTrait(122);
public static IBaseTrait MaimAndMend { get; } = new BaseTrait(122);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedBenefic { get; } = new BaseTrait(124);
public static IBaseTrait EnhancedBenefic { get; } = new BaseTrait(124);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend2 { get; } = new BaseTrait(125);
public static IBaseTrait MaimAndMend2 { get; } = new BaseTrait(125);

/// <summary>
///
/// </summary>
protected static IBaseTrait CombustMastery { get; } = new BaseTrait(186);
public static IBaseTrait CombustMastery { get; } = new BaseTrait(186);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaleficMastery { get; } = new BaseTrait(187);
public static IBaseTrait MaleficMastery { get; } = new BaseTrait(187);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaleficMastery2 { get; } = new BaseTrait(188);
public static IBaseTrait MaleficMastery2 { get; } = new BaseTrait(188);

/// <summary>
///
/// </summary>
protected static IBaseTrait HyperLightspeed { get; } = new BaseTrait(189);
public static IBaseTrait HyperLightspeed { get; } = new BaseTrait(189);

/// <summary>
///
/// </summary>
protected static IBaseTrait CombustMastery2 { get; } = new BaseTrait(314);
public static IBaseTrait CombustMastery2 { get; } = new BaseTrait(314);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaleficMastery3 { get; } = new BaseTrait(315);
public static IBaseTrait MaleficMastery3 { get; } = new BaseTrait(315);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedEssentialDignity { get; } = new BaseTrait(316);
public static IBaseTrait EnhancedEssentialDignity { get; } = new BaseTrait(316);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedDraw { get; } = new BaseTrait(495);
public static IBaseTrait EnhancedDraw { get; } = new BaseTrait(495);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedDraw2 { get; } = new BaseTrait(496);
public static IBaseTrait EnhancedDraw2 { get; } = new BaseTrait(496);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaleficMastery4 { get; } = new BaseTrait(497);
public static IBaseTrait MaleficMastery4 { get; } = new BaseTrait(497);

/// <summary>
///
/// </summary>
protected static IBaseTrait GravityMastery { get; } = new BaseTrait(498);
public static IBaseTrait GravityMastery { get; } = new BaseTrait(498);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedHealingMagic { get; } = new BaseTrait(499);
public static IBaseTrait EnhancedHealingMagic { get; } = new BaseTrait(499);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedCelestialIntersection { get; } = new BaseTrait(500);
public static IBaseTrait EnhancedCelestialIntersection { get; } = new BaseTrait(500);

#endregion

Expand Down
42 changes: 21 additions & 21 deletions RotationSolver.Basic/Rotations/Basic/BLM_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -385,107 +385,107 @@ public override bool CanUse(out IAction act, CanUseOption option = CanUseOption.
/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend { get; } = new BaseTrait(29);
public static IBaseTrait MaimAndMend { get; } = new BaseTrait(29);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend2 { get; } = new BaseTrait(31);
public static IBaseTrait MaimAndMend2 { get; } = new BaseTrait(31);

/// <summary>
///
/// </summary>
protected static IBaseTrait Firestarter { get; } = new BaseTrait(32);
public static IBaseTrait Firestarter { get; } = new BaseTrait(32);

/// <summary>
///
/// </summary>
protected static IBaseTrait Thundercloud { get; } = new BaseTrait(33);
public static IBaseTrait Thundercloud { get; } = new BaseTrait(33);

/// <summary>
///
/// </summary>
protected static IBaseTrait ThunderMastery { get; } = new BaseTrait(171);
public static IBaseTrait ThunderMastery { get; } = new BaseTrait(171);

/// <summary>
///
/// </summary>
protected static IBaseTrait ThunderMastery2 { get; } = new BaseTrait(172);
public static IBaseTrait ThunderMastery2 { get; } = new BaseTrait(172);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedEnochian {get; } = new BaseTrait(174);
public static IBaseTrait EnhancedEnochian {get; } = new BaseTrait(174);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedFreeze {get; } = new BaseTrait(295);
public static IBaseTrait EnhancedFreeze {get; } = new BaseTrait(295);

/// <summary>
///
/// </summary>
protected static IBaseTrait AspectMastery {get; } = new BaseTrait(296);
public static IBaseTrait AspectMastery {get; } = new BaseTrait(296);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedPolyglot {get; } = new BaseTrait(297);
public static IBaseTrait EnhancedPolyglot {get; } = new BaseTrait(297);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedSharpcast { get; } = new BaseTrait(321);
public static IBaseTrait EnhancedSharpcast { get; } = new BaseTrait(321);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedEnochian2 { get; } = new BaseTrait(322);
public static IBaseTrait EnhancedEnochian2 { get; } = new BaseTrait(322);

/// <summary>
///
/// </summary>
protected static IBaseTrait AspectMastery2 { get; } = new BaseTrait(458);
public static IBaseTrait AspectMastery2 { get; } = new BaseTrait(458);

/// <summary>
///
/// </summary>
protected static IBaseTrait AspectMastery3 { get; } = new BaseTrait(459);
public static IBaseTrait AspectMastery3 { get; } = new BaseTrait(459);

/// <summary>
///
/// </summary>
protected static IBaseTrait Enochian { get; } = new BaseTrait(460);
public static IBaseTrait Enochian { get; } = new BaseTrait(460);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedFoul { get; } = new BaseTrait(461);
public static IBaseTrait EnhancedFoul { get; } = new BaseTrait(461);

/// <summary>
///
/// </summary>
protected static IBaseTrait AspectMastery4 { get; } = new BaseTrait(462);
public static IBaseTrait AspectMastery4 { get; } = new BaseTrait(462);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedManafont { get; } = new BaseTrait(463);
public static IBaseTrait EnhancedManafont { get; } = new BaseTrait(463);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedSharpcast2 { get; } = new BaseTrait(464);
public static IBaseTrait EnhancedSharpcast2 { get; } = new BaseTrait(464);

/// <summary>
///
/// </summary>
protected static IBaseTrait AspectMastery5 { get; } = new BaseTrait(465);
public static IBaseTrait AspectMastery5 { get; } = new BaseTrait(465);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedEnochian3 { get; } = new BaseTrait(509);
public static IBaseTrait EnhancedEnochian3 { get; } = new BaseTrait(509);

#endregion
/// <summary>
Expand Down
12 changes: 6 additions & 6 deletions RotationSolver.Basic/Rotations/Basic/BLU_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -951,32 +951,32 @@ public override bool CanUse(out IAction act, CanUseOption option = CanUseOption.
/// <summary>
///
/// </summary>
protected static IBaseTrait Learning { get; } = new BaseTrait(219);
public static IBaseTrait Learning { get; } = new BaseTrait(219);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend { get; } = new BaseTrait(220);
public static IBaseTrait MaimAndMend { get; } = new BaseTrait(220);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend2 { get; } = new BaseTrait(221);
public static IBaseTrait MaimAndMend2 { get; } = new BaseTrait(221);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend3 { get; } = new BaseTrait(222);
public static IBaseTrait MaimAndMend3 { get; } = new BaseTrait(222);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend4 { get; } = new BaseTrait(223);
public static IBaseTrait MaimAndMend4 { get; } = new BaseTrait(223);

/// <summary>
///
/// </summary>
protected static IBaseTrait MaimAndMend5 { get; } = new BaseTrait(224);
public static IBaseTrait MaimAndMend5 { get; } = new BaseTrait(224);
#endregion

/// <summary>
Expand Down
32 changes: 16 additions & 16 deletions RotationSolver.Basic/Rotations/Basic/BRD_Base.cs
Original file line number Diff line number Diff line change
Expand Up @@ -241,82 +241,82 @@ protected static bool SongEndAfterGCD(uint gctCount = 0, float offset = 0)
/// <summary>
///
/// </summary>
protected static IBaseTrait HeavierShot { get; } = new BaseTrait(17);
public static IBaseTrait HeavierShot { get; } = new BaseTrait(17);

/// <summary>
///
/// </summary>
protected static IBaseTrait IncreasedActionDamage { get; } = new BaseTrait(18);
public static IBaseTrait IncreasedActionDamage { get; } = new BaseTrait(18);

/// <summary>
///
/// </summary>
protected static IBaseTrait IncreasedActionDamage2 { get; } = new BaseTrait(20);
public static IBaseTrait IncreasedActionDamage2 { get; } = new BaseTrait(20);

/// <summary>
///
/// </summary>
protected static IBaseTrait BiteMastery { get; } = new BaseTrait(168);
public static IBaseTrait BiteMastery { get; } = new BaseTrait(168);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedEmpyrealArrow { get; } = new BaseTrait(169);
public static IBaseTrait EnhancedEmpyrealArrow { get; } = new BaseTrait(169);

/// <summary>
///
/// </summary>
protected static IBaseTrait StraightShotMastery { get; } = new BaseTrait(282);
public static IBaseTrait StraightShotMastery { get; } = new BaseTrait(282);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedQuickNock { get; } = new BaseTrait(283);
public static IBaseTrait EnhancedQuickNock { get; } = new BaseTrait(283);

/// <summary>
///
/// </summary>
protected static IBaseTrait BiteMastery2 { get; } = new BaseTrait(284);
public static IBaseTrait BiteMastery2 { get; } = new BaseTrait(284);

/// <summary>
///
/// </summary>
protected static IBaseTrait HeavyShotMastery { get; } = new BaseTrait(285);
public static IBaseTrait HeavyShotMastery { get; } = new BaseTrait(285);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedArmysPaeon { get; } = new BaseTrait(286);
public static IBaseTrait EnhancedArmysPaeon { get; } = new BaseTrait(286);

/// <summary>
///
/// </summary>
protected static IBaseTrait SoulVoiceTraits { get; } = new BaseTrait(287);
public static IBaseTrait SoulVoiceTraits { get; } = new BaseTrait(287);

/// <summary>
///
/// </summary>
protected static IBaseTrait QuickNockMastery { get; } = new BaseTrait(444);
public static IBaseTrait QuickNockMastery { get; } = new BaseTrait(444);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedBloodletter { get; } = new BaseTrait(445);
public static IBaseTrait EnhancedBloodletter { get; } = new BaseTrait(445);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedApexArrow { get; } = new BaseTrait(446);
public static IBaseTrait EnhancedApexArrow { get; } = new BaseTrait(446);

/// <summary>
///
/// </summary>
protected static IBaseTrait EnhancedTroubadour { get; } = new BaseTrait(447);
public static IBaseTrait EnhancedTroubadour { get; } = new BaseTrait(447);

/// <summary>
///
/// </summary>
protected static IBaseTrait MinstrelsCoda { get; } = new BaseTrait(448);
public static IBaseTrait MinstrelsCoda { get; } = new BaseTrait(448);

#endregion

Expand Down
Loading

0 comments on commit 2058198

Please sign in to comment.