More Helpful Help Command (#5)

* Deleted TestCommand.cs

No longer needed.

* Update AbyssCommand.cs

Added a command to adjust the player's bracket at will.

* Update User.cs

Added Abyss Group Value

* Update Command.cs

Added Examples[] to the constructor and handler.

* Update HelpCommand.cs

Made the Help command more helpful!

* Update AbyssCommand.cs

Added Help Examples

* Update GiveCommand.cs

Added help examples,
handles negative inputs again,
added more aliases,
can add or remove materials by ID,
can now for add all skipped characters with `give avatars-scuffed`

* Update AbyssCommand.cs

missed a quote

* Update UltraEndlessGetMainDataReqHandler.cs

Bracket can now be set with commands.

Need to unscuff the fight cycle.

* Update GiveCommand.cs

Cheeky give gold command

* Further refined the Help Command

---------

Co-authored-by: TerminalAide0017 <Sucks@code>
This commit is contained in:
TerminalAide0017
2023-06-09 00:23:54 -07:00
committed by GitHub
parent d784bee5fa
commit f2e83c93dd
10 changed files with 108 additions and 51 deletions

View File

@@ -1,4 +1,4 @@
using Common.Utils;
using Common.Utils;
using System.Reflection;
using PemukulPaku.GameServer.Game;
@@ -16,6 +16,7 @@ namespace PemukulPaku.GameServer.Commands
public static readonly Logger c = new("Command", ConsoleColor.Cyan, false);
public string Name = string.Empty;
public string Description = string.Empty;
public string[] Examples = Array.Empty<string>();
public CommandType CmdType = CommandType.Player;
/// <summary>
@@ -63,13 +64,15 @@ namespace PemukulPaku.GameServer.Commands
{
public string Name { get; }
public string Description { get; }
public string[] Examples { get; }
public CommandType CmdType { get; }
public CommandHandler(string name, string description, CommandType type = CommandType.Player)
public CommandHandler(string name, string description, CommandType type = CommandType.Player, params string[] examples)
{
Name = name;
Description = description;
CmdType = type;
Examples = examples;
}
}
@@ -98,6 +101,7 @@ namespace PemukulPaku.GameServer.Commands
cmd.Name = attr.Name;
cmd.Description = attr.Description;
cmd.CmdType = attr.CmdType;
cmd.Examples = attr.Examples;
Commands.Add(cmd);
#if DEBUG