From 3529351b8297285e7c13ca190fcd3fa5f95f9b05 Mon Sep 17 00:00:00 2001 From: Jacob Keller Date: Thu, 23 Feb 2023 19:04:10 -0800 Subject: [PATCH] Add Revert command to /glamour The /glamour command can be used to apply a glamor to character, but there's no way to remove a glamour and revert to default without using the GUI. Introduce a Revert command that can be used to revert a player back to their default. --- Glamourer/Glamourer.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Glamourer/Glamourer.cs b/Glamourer/Glamourer.cs index a39172b..28f9ba4 100644 --- a/Glamourer/Glamourer.cs +++ b/Glamourer/Glamourer.cs @@ -18,7 +18,7 @@ namespace Glamourer { public class Glamourer : IDalamudPlugin { - private const string HelpString = "[Copy|Apply|Save],[Name or PlaceHolder],"; + private const string HelpString = "[Copy|Apply|Save|Revert],[Name or PlaceHolder],"; public string Name => "Glamourer"; @@ -132,6 +132,11 @@ namespace Glamourer } } + public void RevertCommand(Character player) + { + GlamourerIpc.Revert(player); + } + public void OnGlamour(string command, string arguments) { static void PrintHelp() @@ -193,6 +198,11 @@ namespace Glamourer SaveCommand(player, split[2]); return; } + case "revert": + { + RevertCommand(player); + return; + } default: PrintHelp(); return;