Skip to content

Commit

Permalink
Add <pct> and <vpr>
Browse files Browse the repository at this point in the history
  • Loading branch information
UnknownX7 committed Jun 30, 2024
1 parent 81189d1 commit b14554c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 40 deletions.
38 changes: 1 addition & 37 deletions Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,37 +17,6 @@ public class Action
public class ActionStackItem
{
public uint ID = 0;

[Obsolete]
public uint Target
{
set
{
TargetID = value switch
{
0 => 10_000,
1 => 10_001,
2 => (uint)PronounID.FocusTarget,
3 => 10_002,
4 => 10_003,
5 => (uint)PronounID.TargetsTarget,
6 => (uint)PronounID.Me,
7 => (uint)PronounID.LastTarget,
8 => (uint)PronounID.LastEnemy,
9 => (uint)PronounID.LastAttacker,
10 => (uint)PronounID.P2,
11 => (uint)PronounID.P3,
12 => (uint)PronounID.P4,
13 => (uint)PronounID.P5,
14 => (uint)PronounID.P6,
15 => (uint)PronounID.P7,
16 => (uint)PronounID.P8,
17 => 10_010,
_ => 10_000
};
}
}

public uint TargetID = 10_000;
}

Expand Down Expand Up @@ -115,7 +84,6 @@ public override void BindToName(Type serializedType, out string assemblyName, ou
public bool EnableCameraRelativeDashes = false;
public bool EnableNormalBackwardDashes = false;
public bool EnableQueuingMore = false;
[Obsolete] public bool EnableFPSAlignment { internal get; set; } // TODO: Remove in 6.4
public bool EnableFrameAlignment = false;
public bool EnableAutoRefocusTarget = false;
public bool EnableMacroQueue = false;
Expand Down Expand Up @@ -145,11 +113,7 @@ public override void BindToName(Type serializedType, out string assemblyName, ou
public bool EnableDecomboMinorArcana = false;
public bool EnableDecomboGeirskogul = false;

public override void Initialize()
{
if (EnableFPSAlignment)
EnableFrameAlignment = true;
}
public override void Initialize() { }

private static readonly StackSerializer serializer = new ();

Expand Down
2 changes: 1 addition & 1 deletion Hypostasis
Submodule Hypostasis updated 1 files
+4 −1 Game/PronounID.cs
24 changes: 22 additions & 2 deletions PronounManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,16 @@ public class ReaperPronoun : IGamePronoun
public unsafe GameObject* GetGameObject() => PronounHelpers.GetPartyMemberByClassJobID(ClassJobID);
}

public class ViperPronoun : IGamePronoun
{
private const byte ClassJobID = 41;

public string Name => "Viper";
public string Placeholder => "<vpr>";
public uint ID => 10_220 + ClassJobID;
public unsafe GameObject* GetGameObject() => PronounHelpers.GetPartyMemberByClassJobID(ClassJobID);
}

public class BardPronoun : IGamePronoun
{
private const byte ClassJobID = 23;
Expand Down Expand Up @@ -402,6 +412,16 @@ public class RedMagePronoun : IGamePronoun
public unsafe GameObject* GetGameObject() => PronounHelpers.GetPartyMemberByClassJobID(ClassJobID);
}

public class PictomancerPronoun : IGamePronoun
{
private const byte ClassJobID = 42;

public string Name => "Pictomancer";
public string Placeholder => "<pct>";
public uint ID => 10_220 + ClassJobID;
public unsafe GameObject* GetGameObject() => PronounHelpers.GetPartyMemberByClassJobID(ClassJobID);
}

public class BlueMagePronoun : IGamePronoun
{
private const byte ClassJobID = 36;
Expand All @@ -416,8 +436,8 @@ public static class PronounManager
{
public const int MinimumCustomPronounID = 10_000;

public static Dictionary<uint, IGamePronoun> CustomPronouns { get; set; } = new();
public static Dictionary<string, IGamePronoun> CustomPlaceholders { get; set; } = new();
public static Dictionary<uint, IGamePronoun> CustomPronouns { get; set; } = [];
public static Dictionary<string, IGamePronoun> CustomPlaceholders { get; set; } = [];
public static List<uint> OrderedIDs { get; set; } =
[
10_000, // Target
Expand Down

0 comments on commit b14554c

Please sign in to comment.