From 6f5077803bf4df81c0d56d99e30effe31270c35d Mon Sep 17 00:00:00 2001
From: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
Date: Wed, 17 Jul 2024 20:25:19 +0200
Subject: [PATCH] Fix formatting warnings (#30122)
---
Content.Server/Botany/Components/SeedComponent.cs | 2 +-
Content.Server/Botany/Systems/MutationSystem.cs | 8 ++++----
Content.Server/Botany/Systems/SeedExtractorSystem.cs | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Content.Server/Botany/Components/SeedComponent.cs b/Content.Server/Botany/Components/SeedComponent.cs
index f475ec3cfc..ffa1b7ef4e 100644
--- a/Content.Server/Botany/Components/SeedComponent.cs
+++ b/Content.Server/Botany/Components/SeedComponent.cs
@@ -24,7 +24,7 @@ namespace Content.Server.Botany.Components
///
/// Name of a base seed prototype that is used if is null.
///
- [DataField("seedId", customTypeSerializer:typeof(PrototypeIdSerializer))]
+ [DataField("seedId", customTypeSerializer: typeof(PrototypeIdSerializer))]
public string? SeedId;
}
}
diff --git a/Content.Server/Botany/Systems/MutationSystem.cs b/Content.Server/Botany/Systems/MutationSystem.cs
index c7ce5d47ef..474859823a 100644
--- a/Content.Server/Botany/Systems/MutationSystem.cs
+++ b/Content.Server/Botany/Systems/MutationSystem.cs
@@ -2,10 +2,8 @@ using Robust.Shared.Prototypes;
using Robust.Shared.Random;
using Content.Shared.Random;
using Content.Shared.Random.Helpers;
-using Content.Shared.Chemistry.Reagent;
using System.Linq;
using Content.Shared.Atmos;
-using FastAccessors;
namespace Content.Server.Botany;
@@ -42,6 +40,7 @@ public sealed class MutationSystem : EntitySystem
// Add up everything in the bits column and put the number here.
const int totalbits = 275;
+ #pragma warning disable IDE0055 // disable formatting warnings because this looks more readable
// Tolerances (55)
MutateFloat(ref seed.NutrientConsumption , 0.05f, 1.2f, 5, totalbits, severity);
MutateFloat(ref seed.WaterConsumption , 3f , 9f , 5, totalbits, severity);
@@ -75,6 +74,7 @@ public sealed class MutationSystem : EntitySystem
MutateBool(ref seed.TurnIntoKudzu , true , 10, totalbits, severity);
MutateBool(ref seed.CanScream , true , 10, totalbits, severity);
seed.BioluminescentColor = RandomColor(seed.BioluminescentColor, 10, totalbits, severity);
+ #pragma warning restore IDE0055
// ConstantUpgade (10)
MutateHarvestType(ref seed.HarvestRepeat, 10, totalbits, severity);
@@ -261,7 +261,7 @@ public sealed class MutationSystem : EntitySystem
{
var pick = _randomChems.Pick(_robustRandom);
string chemicalId = pick.reagent;
- int amount = _robustRandom.Next(1, ((int)pick.quantity));
+ int amount = _robustRandom.Next(1, (int)pick.quantity);
SeedChemQuantity seedChemQuantity = new SeedChemQuantity();
if (chemicals.ContainsKey(chemicalId))
{
@@ -274,7 +274,7 @@ public sealed class MutationSystem : EntitySystem
seedChemQuantity.Max = 1 + amount;
seedChemQuantity.Inherent = false;
}
- int potencyDivisor = (int) Math.Ceiling(100.0f / seedChemQuantity.Max);
+ int potencyDivisor = (int)Math.Ceiling(100.0f / seedChemQuantity.Max);
seedChemQuantity.PotencyDivisor = potencyDivisor;
chemicals[chemicalId] = seedChemQuantity;
}
diff --git a/Content.Server/Botany/Systems/SeedExtractorSystem.cs b/Content.Server/Botany/Systems/SeedExtractorSystem.cs
index f1ae6c9f11..9a5e70762e 100644
--- a/Content.Server/Botany/Systems/SeedExtractorSystem.cs
+++ b/Content.Server/Botany/Systems/SeedExtractorSystem.cs
@@ -29,12 +29,12 @@ public sealed class SeedExtractorSystem : EntitySystem
return;
if (!_botanySystem.TryGetSeed(produce, out var seed) || seed.Seedless)
{
- _popupSystem.PopupCursor(Loc.GetString("seed-extractor-component-no-seeds",("name", args.Used)),
+ _popupSystem.PopupCursor(Loc.GetString("seed-extractor-component-no-seeds", ("name", args.Used)),
args.User, PopupType.MediumCaution);
return;
}
- _popupSystem.PopupCursor(Loc.GetString("seed-extractor-component-interact-message",("name", args.Used)),
+ _popupSystem.PopupCursor(Loc.GetString("seed-extractor-component-interact-message", ("name", args.Used)),
args.User, PopupType.Medium);
QueueDel(args.Used);