muffin v7.38.8
This commit is contained in:
parent
5e2d8f648b
commit
3e10cbbbf2
51 changed files with 2585 additions and 1972 deletions
|
|
@ -0,0 +1,39 @@
|
|||
using System.Collections.Generic;
|
||||
using Dalamud.Plugin.Services;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game;
|
||||
|
||||
namespace Questionable.Controller.DebugCommands;
|
||||
|
||||
internal sealed class FestivalsCommandHandler : IDebugCommandHandler
|
||||
{
|
||||
private readonly IChatGui _chatGui;
|
||||
|
||||
public string CommandName => "festivals";
|
||||
|
||||
public FestivalsCommandHandler(IChatGui chatGui)
|
||||
{
|
||||
_chatGui = chatGui;
|
||||
}
|
||||
|
||||
public unsafe void Execute(string[] arguments)
|
||||
{
|
||||
List<string> list = new List<string>();
|
||||
for (byte b = 0; b < 4; b++)
|
||||
{
|
||||
GameMain.Festival festival = GameMain.Instance()->ActiveFestivals[b];
|
||||
if (festival.Id == 0)
|
||||
{
|
||||
list.Add($"Slot {b}: None");
|
||||
}
|
||||
else
|
||||
{
|
||||
list.Add($"Slot {b}: {festival.Id}({festival.Phase})");
|
||||
}
|
||||
}
|
||||
_chatGui.Print("Festival slots:", "Questionable", 576);
|
||||
foreach (string item in list)
|
||||
{
|
||||
_chatGui.Print(" " + item, "Questionable", 576);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue