Skip to content

Commit

Permalink
Fix darklit (#228)
Browse files Browse the repository at this point in the history
* [fix] stack pos

* [fix] typo

* Update P4 Darklit.cs

---------

Co-authored-by: Limiana <[email protected]>
  • Loading branch information
Garume and Limiana authored Dec 8, 2024
1 parent 30b82b4 commit 70dd989
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ public enum State

public uint WaterId = 0x99D;
public override HashSet<uint>? ValidTerritories => [1238];
public override Metadata? Metadata => new(1, "Garume");
public override Metadata? Metadata => new(2, "Garume");
public Config C => Controller.GetConfig<Config>();

public override void OnStartingCast(uint source, uint castId)
{
if (castId == 40239) _state = State.Start;
if (_holyWingIds.Contains(castId))
{
var x = castId == _holyWingIds[0] ? 105f : 95f;
var x = castId == _holyWingIds[0] ? 106.5f : 93.5f;

if (Controller.TryGetElementByName("StackBaitNorth", out var northElement)) northElement.refX = x;

Expand Down Expand Up @@ -460,7 +460,7 @@ public override void OnSettingsDraw()
ImGuiEx.EnumCombo("Mode", ref C.Mode);
ImGuiEx.Text("Priority");
ImGuiEx.Text(C.Mode == Mode.Vertical
? "NorthWest -> SouthWest -> NorthEast -> SouthWest"
? "NorthWest -> SouthWest -> NorthEast -> SouthEast"
: "NorthWest -> NorthEast -> SouthWest -> SouthEast");
C.PriorityData.Draw();
ImGuiEx.EnumCombo("Box Swap Type", ref C.BoxSwapType);
Expand Down Expand Up @@ -510,4 +510,4 @@ public class Config : IEzConfig
public PriorityData PriorityData = new();
public bool ShowOther = true;
}
}
}

0 comments on commit 70dd989

Please sign in to comment.