using SoulHarvest.Common; using SoulHarvest.Items; using Microsoft.Xna.Framework; using System; using Terraria; using Terraria.ID; using Terraria.Localization; using Terraria.ModLoader; namespace SoulHarvest.Commands; public sealed class ReaperDebugResetCommand : ModCommand { public override string Command => "reaperdebugreset"; public override CommandType Type => CommandType.World; public override string Usage => "/reaperdebugreset"; public override string Description => Language.GetTextValue("Mods.SoulHarvest.Commands.ResetDescription"); public override void Action(CommandCaller caller, string input, string[] args) { if (!ReaperDebugMode.TryGetPlayer(caller, out Player player)) return; player.GetModPlayer().ResetReaperTreeForDebug(); caller.Reply(Language.GetTextValue("Mods.SoulHarvest.Commands.ResetSuccess"), new Color(210, 115, 245)); } }