1
0
Fork 0
forked from aly/qstbak

muffin v6.27

This commit is contained in:
alydev 2025-10-18 23:54:48 +10:00
parent 1bcbf18654
commit 44d33a0b56
6 changed files with 59 additions and 21 deletions

View file

@ -215,18 +215,40 @@ internal sealed class CommandHandler : IDisposable
List<string> list3 = new List<string>();
ExcelSheet<ChocoboTaxiStand> excelSheet = _dataManager.GetExcelSheet<ChocoboTaxiStand>();
UIState* ptr = UIState.Instance();
for (byte b2 = 0; b2 < ptr->UnlockedChocoboTaxiStandsBitmask.Length * 8; b2++)
if (ptr == null)
{
if (ptr->IsChocoboTaxiStandUnlocked(b2))
_chatGui.PrintError("UIState is null", "Questionable", 576);
break;
}
for (int i = 0; i < 192; i++)
{
uint num = (uint)(i + 1179648);
try
{
if (excelSheet.HasRow(num) && ptr->IsChocoboTaxiStandUnlocked(num))
{
string value = excelSheet.GetRow(num).PlaceName.ToString();
if (string.IsNullOrEmpty(value))
{
value = "Unknown";
}
list3.Add($"{value} (ID: {i}, Row: 0x{num:X})");
}
}
catch
{
list3.Add($"{excelSheet.GetRow((uint)(b2 + 1179648)).PlaceName} ({b2})");
}
}
_chatGui.Print("Unlocked taxi stands:", "Questionable", 576);
_chatGui.Print($"Unlocked taxi stands ({list3.Count}):", "Questionable", 576);
if (list3.Count == 0)
{
_chatGui.Print(" (No unlocked taxi stands found)", "Questionable", 576);
break;
}
{
foreach (string item in list3)
{
_chatGui.Print("- " + item, "Questionable", 576);
_chatGui.Print(" - " + item, "Questionable", 576);
}
break;
}
@ -237,13 +259,23 @@ internal sealed class CommandHandler : IDisposable
for (byte b = 0; b < 4; b++)
{
GameMain.Festival festival = GameMain.Instance()->ActiveFestivals[b];
if (festival.Id != 0)
if (festival.Id == 0)
{
list.Add($"{festival.Id}({festival.Phase})");
list.Add($"Slot {b}: None");
}
else
{
list.Add($"Slot {b}: {festival.Id}({festival.Phase})");
}
}
_chatGui.Print("Active festivals: " + string.Join(", ", list), "Questionable", 576);
break;
_chatGui.Print("Festival slots:", "Questionable", 576);
{
foreach (string item2 in list)
{
_chatGui.Print(" " + item2, "Questionable", 576);
}
break;
}
}
}
}