Skip to content

Commit

Permalink
AdminGump: added option 'Do everything'.
Browse files Browse the repository at this point in the history
  • Loading branch information
nerun committed Jun 3, 2024
1 parent 04a15e9 commit ddd115f
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions Projects/UOContent/Gumps/AdminGump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ public class AdminGump : Gump
AddButtonLabeled(220, 300, GetButtonID(3, 112), "Doom");

AddButtonLabeled(20, 325, GetButtonID(3, 113), "Khaldun Puzzles");
AddButtonLabeled(220, 325, GetButtonID(3, 114), "Do everything");

goto case AdminGumpPage.Administer;
}
Expand Down Expand Up @@ -2102,6 +2103,83 @@ public override void OnResponse(NetState sender, in RelayInfo info)
notice = "Khaldun puzzles have been generated.";
break;
}

case 114:
{
// 101
InvokeCommand("TelGen");

// 102
InvokeCommand("MoonGen");

// 103
InvokeCommand("DoorGen");

// 104
var folder = Core.SA ? "post-uoml" : "uoml";

var availableMaps = ExpansionInfo.CoreExpansion.MapSelectionFlags;
if (Core.SA && availableMaps.Includes(MapSelectionFlags.TerMur))
{
InvokeCommand($"GenerateSpawners Data/Spawns/post-uoml/termur/*.json");
}

if (availableMaps.Includes(MapSelectionFlags.Malas))
{
InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/malas/*.json");
}

if (availableMaps.Includes(MapSelectionFlags.Tokuno))
{
InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/tokuno/*.json");
}

if (availableMaps.Includes(MapSelectionFlags.Ilshenar))
{
InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/ilshenar/*.json");
}

if (availableMaps.Includes(MapSelectionFlags.Trammel))
{
InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/trammel/*.json");
}

if (availableMaps.Includes(MapSelectionFlags.Felucca))
{
InvokeCommand($"GenerateSpawners Data/Spawns/{folder}/felucca/*.json");
}

// 105
InvokeCommand("SignGen");

// 106
InvokeCommand("Decorate");

// 107
InvokeCommand("GenChamps");

// 108
InvokeCommand("DecorateMag");

// 109
InvokeCommand("GenStealArties");

// 110
InvokeCommand("SHTelGen");

// 111
InvokeCommand("SecretLocGen");

// 112
InvokeCommand("GenLeverPuzzle");
InvokeCommand("GenGauntlet");

// 113
InvokeCommand("GenKhaldun");

notice = "All the above options have been generated at once.";
break;
}

case 200:
{
Expand Down

0 comments on commit ddd115f

Please sign in to comment.