From 59dd604cf2905adf5fce7e9bb7b97886891aae81 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Fri, 27 Oct 2017 03:18:48 -0400 Subject: rename TrainerMod to Console Commands to clarify purpose --- .../Commands/World/DownMineLevelCommand.cs | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/TrainerMod/Framework/Commands/World/DownMineLevelCommand.cs (limited to 'src/TrainerMod/Framework/Commands/World/DownMineLevelCommand.cs') diff --git a/src/TrainerMod/Framework/Commands/World/DownMineLevelCommand.cs b/src/TrainerMod/Framework/Commands/World/DownMineLevelCommand.cs deleted file mode 100644 index 4e62cf77..00000000 --- a/src/TrainerMod/Framework/Commands/World/DownMineLevelCommand.cs +++ /dev/null @@ -1,28 +0,0 @@ -using StardewModdingAPI; -using StardewValley; -using StardewValley.Locations; - -namespace TrainerMod.Framework.Commands.World -{ - /// A command which moves the player to the next mine level. - internal class DownMineLevelCommand : TrainerCommand - { - /********* - ** Public methods - *********/ - /// Construct an instance. - public DownMineLevelCommand() - : base("world_downminelevel", "Goes down one mine level.") { } - - /// Handle the command. - /// Writes messages to the console and log file. - /// The command name. - /// The command arguments. - public override void Handle(IMonitor monitor, string command, ArgumentParser args) - { - int level = (Game1.currentLocation as MineShaft)?.mineLevel ?? 0; - monitor.Log($"OK, warping you to mine level {level + 1}.", LogLevel.Info); - Game1.enterMine(false, level + 1, ""); - } - } -} -- cgit