XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

DeathMod

【Terraria】DeathMod (now aka Soul Harvest)

公开
关注 0 Fork 0 Star 0
UTF-8
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<MyPlayer>().ResetReaperTreeForDebug();
        caller.Reply(Language.GetTextValue("Mods.SoulHarvest.Commands.ResetSuccess"),
            new Color(210, 115, 245));
    }
}