Skip to content

Commit

Permalink
update debug print skinslots in order with copyable format
Browse files Browse the repository at this point in the history
  • Loading branch information
InfernoDragon0 committed Aug 29, 2024
1 parent 709b07c commit adf1f8e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions COTL_API/Plugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,12 @@ public void Update()
}

// ReSharper disable once InvertIf
if (Input.GetKeyDown(KeyCode.F2))
foreach (var x in PlayerFarming.Instance.Spine.Skeleton.Skin.Attachments)
LogDebug($"{{ \"{x.Name}\", Tuple.Create({x.SlotIndex}, \"{x.Name}\") }}");
if (Input.GetKeyDown(KeyCode.F2)) {
var slots = PlayerFarming.Instance.Spine.Skeleton.Skin.Attachments;
var sortedSlots = slots.OrderBy(x => x.SlotIndex).ToList();
var jsonOutput = sortedSlots.Select(x => $"{{ \"{x.Name}\", Tuple.Create({x.SlotIndex}, \"{x.Name}\") }}");
LogDebug(string.Join(",\n", jsonOutput));
}

// ReSharper disable once InvertIf
if (Input.GetKeyDown(KeyCode.F3))
Expand Down

0 comments on commit adf1f8e

Please sign in to comment.