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

Commit

Permalink
fix: add an option for omen.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Mar 3, 2024
1 parent ff2fd04 commit 5032cd5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
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>net7.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Authors>ArchiTed</Authors>
<Version>4.1.2.2</Version>
<Version>4.1.2.3</Version>
<PlatformTarget>x64</PlatformTarget>
<Platforms>AnyCPU</Platforms>
<LangVersion>latest</LangVersion>
Expand Down
4 changes: 2 additions & 2 deletions RotationSolver.Basic/Configuration/Configs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ public const string
Filter = AutoActionCondition, Section = 1)]
private static readonly bool _healWhenNothingTodo = true;

//[ConditionBool, UI("Use actions that use resources", Filter = AutoActionUsage)]
//private static readonly bool _useResourcesAction = true;
[ConditionBool, UI("Show The Omen things.", Filter = Extra)]
private static readonly bool _showOmen = false;

[ConditionBool, UI("Say hello to all users of Rotation Solver.",
Filter =BasicParams)]
Expand Down
4 changes: 3 additions & 1 deletion RotationSolver/Localization/Localization.json
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,7 @@
"UseGroundBeneficialAbilityWhenMovingName": "Use beneficial AoE actions when moving.",
"RotationSolver.Data.UiString.SpecialCommandType_TankStance": "Tank Stance",
"RotationSolver.Data.UiString.ConfigWindow_Actions_TTU": "Time to untargetable that this action needs the timeline be.",
"TargetDelayName": "The range of random delay for finding a target."
"TargetDelayName": "The range of random delay for finding a target.",
"ShowOmenName": "Show The Omen things.",
"AutoCloseChestWindowName": "Auto close the loot window when auto opened the chest."
}
8 changes: 4 additions & 4 deletions RotationSolver/RotationSolverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public RotationSolverPlugin(DalamudPluginInterface pluginInterface)
#if DEBUG
if (Player.Available)
{
_ = new ActorVfx(Player.Object, Player.Object,
"vfx/ws/2rp_ws_s06/eff/2rp_ws06c0h.avfx")
{
};
//_ = new ActorVfx(Player.Object, Player.Object,
// "vfx/ws/2rp_ws_s06/eff/2rp_ws06c0h.avfx")
//{
//};
//_ = new StaticVfx("vfx/lockon/eff/com_share0c.avfx", Player.Object, Vector3.One)
//{
// //DeadTime = DateTime.Now.AddSeconds(5),
Expand Down
2 changes: 2 additions & 0 deletions RotationSolver/Updaters/RaidTimeUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,8 @@ private static void OnCast(IntPtr dataPtr, uint targetActorId)

private static void OmenCastingAction(IntPtr dataPtr, uint targetActorId, ushort actionId)
{
if (!Service.Config.ShowOmen) return;

var tar = DataCenter.AllHostileTargets.FirstOrDefault(t => t.ObjectId == targetActorId);
if (tar == null) return;

Expand Down

0 comments on commit 5032cd5

Please sign in to comment.