Skip to content

Commit

Permalink
Optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
JamzOJamz committed Jan 10, 2025
1 parent cdf996b commit 29d4724
Show file tree
Hide file tree
Showing 33 changed files with 23 additions and 94 deletions.
13 changes: 4 additions & 9 deletions Content/Commands/DexEditCommand.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
using System;
using Terraria.Localization;

namespace Terramon.Content.Commands;

public class DexEditCommand : DebugCommand
{
public override CommandType Type
=> CommandType.Chat;
public override CommandType Type => CommandType.Chat;

public override string Command
=> "dexedit";
public override string Command => "dexedit";

public override string Description
=> Language.GetTextValue("Mods.Terramon.Commands.DexEdit.Description");
public override string Description => Language.GetTextValue("Mods.Terramon.Commands.DexEdit.Description");

public override string Usage
=> Language.GetTextValue("Mods.Terramon.Commands.DexEdit.Usage");
public override string Usage => Language.GetTextValue("Mods.Terramon.Commands.DexEdit.Usage");

protected override int MinimumArgumentCount => 2;

Expand Down
12 changes: 4 additions & 8 deletions Content/Commands/NicknameCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,13 @@ public class NicknameCommand : TerramonCommand
/// </summary>
private const int MaxNicknameLength = 12;

public override CommandType Type
=> CommandType.Chat;
public override CommandType Type => CommandType.Chat;

public override string Command
=> "nickname";
public override string Command => "nickname";

public override string Description
=> Language.GetTextValue("Mods.Terramon.Commands.Nickname.Description");
public override string Description => Language.GetTextValue("Mods.Terramon.Commands.Nickname.Description");

public override string Usage
=> Language.GetTextValue("Mods.Terramon.Commands.Nickname.Usage");
public override string Usage => Language.GetTextValue("Mods.Terramon.Commands.Nickname.Usage");

public override void Action(CommandCaller caller, string input, string[] args)
{
Expand Down
13 changes: 4 additions & 9 deletions Content/Commands/PartyClearCommand.cs
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
using System;
using Terraria.Localization;

namespace Terramon.Content.Commands;

public class PartyClearCommand : DebugCommand
{
public override CommandType Type
=> CommandType.Chat;
public override CommandType Type => CommandType.Chat;

public override string Command
=> "partyclear";
public override string Command => "partyclear";

public override string Description
=> Language.GetTextValue("Mods.Terramon.Commands.PartyClear.Description");
public override string Description => Language.GetTextValue("Mods.Terramon.Commands.PartyClear.Description");

public override string Usage
=> Language.GetTextValue("Mods.Terramon.Commands.PartyClear.Usage");
public override string Usage => Language.GetTextValue("Mods.Terramon.Commands.PartyClear.Usage");

public override void Action(CommandCaller caller, string input, string[] args)
{
Expand Down
12 changes: 4 additions & 8 deletions Content/Commands/PartyDataCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ namespace Terramon.Content.Commands;

public class PartyDataCommand : DebugCommand
{
public override CommandType Type
=> CommandType.Chat;
public override CommandType Type => CommandType.Chat;

public override string Command
=> "partydata";
public override string Command => "partydata";

public override string Description
=> Language.GetTextValue("Mods.Terramon.Commands.PartyData.Description");
public override string Description => Language.GetTextValue("Mods.Terramon.Commands.PartyData.Description");

public override string Usage
=> Language.GetTextValue("Mods.Terramon.Commands.PartyData.Usage");
public override string Usage => Language.GetTextValue("Mods.Terramon.Commands.PartyData.Usage");

public override void Action(CommandCaller caller, string input, string[] args)
{
Expand Down
13 changes: 4 additions & 9 deletions Content/Commands/PokeClearCommand.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.IO;
using EasyPacketsLib;
using Terramon.Content.NPCs;
using Terraria.Localization;
Expand All @@ -7,17 +6,13 @@ namespace Terramon.Content.Commands;

public class PokeClearCommand : DebugCommand
{
public override CommandType Type
=> CommandType.World;
public override CommandType Type => CommandType.World;

public override string Command
=> "pokeclear";
public override string Command => "pokeclear";

public override string Description
=> Language.GetTextValue("Mods.Terramon.Commands.PokeClear.Description");
public override string Description => Language.GetTextValue("Mods.Terramon.Commands.PokeClear.Description");

public override string Usage
=> Language.GetTextValue("Mods.Terramon.Commands.PokeClear.Usage");
public override string Usage => Language.GetTextValue("Mods.Terramon.Commands.PokeClear.Usage");

protected override int MinimumArgumentCount => 0;

Expand Down
1 change: 0 additions & 1 deletion Content/GUI/Common/BetterUIText.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Terraria.GameContent;
using Terraria.Localization;
using Terraria.UI;
Expand Down
3 changes: 0 additions & 3 deletions Content/GUI/PartyDisplay.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReLogic.Content;
using Terramon.Content.Configs;
Expand Down
2 changes: 0 additions & 2 deletions Content/GUI/TooltipOverlay.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Collections.Generic;
using ReLogic.Content;
using Terramon.Core.Loaders.UILoading;
using Terraria.GameContent;
Expand Down
2 changes: 0 additions & 2 deletions Content/Items/PokeBalls/BasePkballTile.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System.Collections.Generic;
using System.IO;
using EasyPacketsLib;
using Terramon.Content.Packets;
using Terramon.Helpers;
Expand Down
1 change: 0 additions & 1 deletion Content/NPCs/NPCBounceBehaviour.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Terramon.Core.NPCComponents;

// ReSharper disable FieldCanBeMadeReadOnly.Global
Expand Down
1 change: 0 additions & 1 deletion Content/NPCs/NPCWalkingBehaviour.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using Terramon.Core.NPCComponents;

// ReSharper disable FieldCanBeMadeReadOnly.Global
Expand Down
2 changes: 0 additions & 2 deletions Content/NPCs/NPCWanderingHoverBehaviour.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.IO;
using Terramon.Core.NPCComponents;
using Terraria.ModLoader.IO;

Expand Down
3 changes: 0 additions & 3 deletions Content/Packets/PartySyncRpc.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System;
using System.IO;
using EasyPacketsLib;


namespace Terramon.Content.Packets;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions Content/Packets/PlacedPkballTileRpc.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System.IO;
using EasyPacketsLib;
using Terramon.Content.Items.PokeBalls;
using Terraria.Audio;
using Terraria.DataStructures;


namespace Terramon.Content.Packets;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions Content/Packets/PlayerFlagsRpc.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.IO;
using EasyPacketsLib;


namespace Terramon.Content.Packets;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions Content/Packets/SyncPkballTileRpc.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using System.IO;
using EasyPacketsLib;
using Terramon.Content.Items.PokeBalls;
using Terramon.Helpers;
using Terraria.Audio;
using Terraria.DataStructures;


namespace Terramon.Content.Packets;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions Content/Packets/UpdateActivePokemonRpc.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System.IO;
using EasyPacketsLib;


namespace Terramon.Content.Packets;

/// <summary>
Expand Down
2 changes: 0 additions & 2 deletions Content/Packets/UpdateWorldDexRpc.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
using System.IO;
using EasyPacketsLib;
using Terramon.Content.GUI;
using Terramon.Core.Loaders.UILoading;


namespace Terramon.Content.Packets;

/// <summary>
Expand Down
1 change: 0 additions & 1 deletion Content/Tiles/MusicBoxes/MusicBoxCenter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using Terramon.Content.Items.PokeBalls;


namespace Terramon.Content.Tiles.MusicBoxes;

public class MusicBoxCenter : MusicTile
Expand Down
1 change: 0 additions & 1 deletion Content/WorldGeneration/WorldgenWorld.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using Terraria.WorldBuilding;

namespace Terramon.Core;
Expand Down
1 change: 0 additions & 1 deletion Core/Loaders/UILoading/SmartUIState.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using Terraria.UI;

namespace Terramon.Core.Loaders.UILoading;
Expand Down
3 changes: 0 additions & 3 deletions Core/Loaders/UILoading/UILoader.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Terramon.Helpers;
using Terraria.UI;

Expand Down
1 change: 0 additions & 1 deletion Core/PCService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using Terraria.ModLoader.IO;

namespace Terramon.Core;
Expand Down
1 change: 0 additions & 1 deletion Core/Systems/AnimatedIconSystem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using System.Reflection;
using ReLogic.Content;
using Terramon.Content.Configs;
Expand Down
2 changes: 0 additions & 2 deletions Core/Systems/TreeDropsSystem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Linq;
using System.Runtime.CompilerServices;
using MonoMod.Cil;
using Terramon.Content.Items;
Expand Down
1 change: 0 additions & 1 deletion Core/TerramonGlobalItem.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using Terraria.Localization;

namespace Terramon.Core;
Expand Down
3 changes: 0 additions & 3 deletions Core/Tweening.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;

namespace Terramon.Core;

public class Tween
Expand Down
1 change: 0 additions & 1 deletion Helpers/BallAssets.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System;
using ReLogic.Content;
using Terramon.ID;

Expand Down
5 changes: 1 addition & 4 deletions Helpers/ChestGen.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
using System.Collections.Generic;


// ReSharper disable InconsistentNaming
// ReSharper disable InconsistentNaming

namespace Terramon.Helpers;

Expand Down
1 change: 0 additions & 1 deletion Helpers/LocalizationHelper.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using System.Collections.Generic;
using System.Reflection;
using Terraria.Localization;

Expand Down
3 changes: 0 additions & 3 deletions Helpers/PrettySharp.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

Expand Down
3 changes: 2 additions & 1 deletion ID/PokemonType.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Globalization;
using Terramon.Helpers;

namespace Terramon.ID;
Expand Down Expand Up @@ -64,6 +65,6 @@ public static string GetHexColor(this PokemonType type)
/// </summary>
public static Color GetColor(this PokemonType type)
{
return ColorUtils.FromHex(int.Parse(type.GetHexColor(), System.Globalization.NumberStyles.HexNumber));
return ColorUtils.FromHex(int.Parse(type.GetHexColor(), NumberStyles.HexNumber));
}
}
2 changes: 0 additions & 2 deletions Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
using System;
using System.Linq;
using System.Reflection;
using System.Reflection.Metadata;
using System.Runtime.CompilerServices;
Expand Down

0 comments on commit 29d4724

Please sign in to comment.