Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upstream20240904 #26

Merged
merged 81 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
49e0933
Move IgnitionEvent to shared (#30985)
DrSmugleaf Sep 2, 2024
7b82317
Cleanup railings yml (#31618)
lzk228 Sep 2, 2024
f710b34
Roundstart Grappling Gun (#31737)
EmoGarbage404 Sep 2, 2024
6712724
Automatic changelog update
PJBot Sep 2, 2024
a112c24
Added in-hand sprite for Smile the Slime (#31731)
godisdeadLOL Sep 2, 2024
a4333da
Lite Magnet Rebalancing (#31726)
EmoGarbage404 Sep 2, 2024
aab4556
Adds a salvage jobspawn to reach (#31712)
Boaz1111 Sep 2, 2024
265feeb
Devmap crew monitor fix (#31677)
Errant-4 Sep 2, 2024
440845b
updated cog (#31699)
Spessmann Sep 2, 2024
738e0cf
Automatic changelog update
PJBot Sep 2, 2024
9a51d37
Add ERT time stats (#31629)
poeMota Sep 2, 2024
e266a6f
Automatic changelog update
PJBot Sep 2, 2024
1e4220b
box update (#31741)
Emisse Sep 2, 2024
d1f882e
fland update (#31742)
Emisse Sep 2, 2024
36943dd
marathon update (#31743)
Emisse Sep 2, 2024
f94d84c
meta update (#31744)
Emisse Sep 2, 2024
972e0e8
omega update (#31745)
Emisse Sep 2, 2024
6ce2e64
packed update (#31746)
Emisse Sep 2, 2024
7de79fb
bagel update (#31748)
Emisse Sep 2, 2024
05d29c8
Fix CS0642 - Possible mistaken empty statement (#31740)
Mervill Sep 2, 2024
63ad627
Throw the book at em! The space law book now does 1 blunt projectile …
Moomoobeef Sep 2, 2024
ef1fadf
Replace instances of SolutionContainerSystem with SharedSolutionConta…
Cojoke-dot Sep 2, 2024
7820110
Add Donk Co. microwave board to Combat Bakery Kit (#31239)
themias Sep 2, 2024
10877eb
Automatic changelog update
PJBot Sep 2, 2024
a25132e
Actions bar dynamic resizing (#31759)
godisdeadLOL Sep 2, 2024
0c83b19
Automatic changelog update
PJBot Sep 2, 2024
de13ff9
Fix warnings related to non-exhaustive pattern matching. (#31763)
Mervill Sep 2, 2024
ee5ebef
ats update (#31766)
Emisse Sep 3, 2024
34c90cf
Ninja throwing star ability fix (#31684)
godisdeadLOL Sep 3, 2024
7a6eb4c
Automatic changelog update
PJBot Sep 3, 2024
2914389
Oasis Update (AI) (#31767)
IProduceWidgets Sep 3, 2024
7040f2f
Remove duplicate using from FoodSystem (#31769)
Mervill Sep 3, 2024
6c8f85a
added AI to cog (#31772)
Spessmann Sep 3, 2024
58cc6b2
boxstation AI update (#31771)
Flareguy Sep 3, 2024
77c759e
Update Core (#31774)
UbaserB Sep 3, 2024
f7ea8bc
Oasis Update. I forgor law boards (#31775)
IProduceWidgets Sep 3, 2024
301fc31
vox voices revamp (#31679)
Errant-4 Sep 3, 2024
0d460de
Automatic changelog update
PJBot Sep 3, 2024
0583a5d
bagel update (#31778)
Emisse Sep 3, 2024
93728e4
fixed broken pipe sprites (#31773)
Moomoobeef Sep 3, 2024
0c01876
Return Long2 and Long3 hairstyles (#30963)
JustArt1m Sep 3, 2024
54d1d3b
Automatic changelog update
PJBot Sep 3, 2024
7832436
Added many old ion lawsets for borgs and AI. (#31664)
ScarKy0 Sep 3, 2024
bc06179
Automatic changelog update
PJBot Sep 3, 2024
a5d7bf4
bagel update (#31783)
Emisse Sep 3, 2024
6290377
lox update (#31784)
Emisse Sep 3, 2024
aaae1f1
Meta (#31785)
Emisse Sep 3, 2024
c8e59eb
Add Snails (#30765)
IProduceWidgets Sep 3, 2024
e2e8f7e
Automatic changelog update
PJBot Sep 3, 2024
894d498
Remove testbed command (#31793)
metalgearsloth Sep 3, 2024
6380a9a
feat: now when research is unlocked in console, approver of reasearch…
Fildrance Sep 3, 2024
03869ce
Automatic changelog update
PJBot Sep 3, 2024
cb88750
New chemical based artifact nodes (#30873)
Lyroth001 Sep 3, 2024
23a5fc4
Automatic changelog update
PJBot Sep 3, 2024
aaed026
Add Red Neck Gaiter To Secdrobe (#30106)
DieselMohawk Sep 3, 2024
6502b4e
Automatic changelog update
PJBot Sep 3, 2024
2031d57
fland update (#31803)
Emisse Sep 3, 2024
c23857d
marathon update (#31804)
Emisse Sep 3, 2024
bb42525
meta update (#31805)
Emisse Sep 3, 2024
8de83d8
Bagel (#31806)
Emisse Sep 3, 2024
b91a648
omega update (#31808)
Emisse Sep 3, 2024
c1614a8
packed update (#31807)
Emisse Sep 3, 2024
3c38f04
Fixed typos (#31811)
ScarKy0 Sep 3, 2024
0f1d852
Automatic changelog update
PJBot Sep 3, 2024
6068c23
Station AI has their name displayed in announcements now. (#31802)
ScarKy0 Sep 3, 2024
4239c54
Automatic changelog update
PJBot Sep 3, 2024
160dd2b
Updated Cog (library time) (#31815)
Spessmann Sep 4, 2024
7ce7b9e
Add disabled station anchors version (#31794)
lzk228 Sep 4, 2024
f0d3b68
add structural damage taken to a lot of prototypes (#30790)
Ilya246 Sep 4, 2024
998f46b
Automatic changelog update
PJBot Sep 4, 2024
3f3ef56
No Mr.Snail, I expect you to die! (fix sprite) (#31834)
IProduceWidgets Sep 4, 2024
2185f3a
Allow some mobs to walk slowly (#31360)
lzk228 Sep 4, 2024
f63d789
Automatic changelog update
PJBot Sep 4, 2024
fce7abb
Delete nonsense solar assembly construction through the Construction …
Hreno Sep 4, 2024
7fd92ab
Improvements to hand labeler UI (#31833)
eoineoineoin Sep 4, 2024
ce893d9
make tesla brighter (#31357)
qwerltaz Sep 4, 2024
a0c5510
Automatic changelog update
PJBot Sep 4, 2024
4f1518c
CorrectContraband levels on each type of magboots (#30960)
TyAshley Sep 4, 2024
7b92b1d
Automatic changelog update
PJBot Sep 4, 2024
8588517
Morgue system refactor remove unused VVs and into Entity (#31835)
TokenStyle Sep 4, 2024
3226ca4
Merge for September 4, 2024
invalid-email-address Sep 4, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Linq;
using Content.Client.Chemistry.Containers.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Atmos.Prototypes;
using Content.Shared.Body.Part;
using Content.Shared.Chemistry;
Expand All @@ -16,7 +16,7 @@ namespace Content.Client.Chemistry.EntitySystems;
/// <inheritdoc/>
public sealed class ChemistryGuideDataSystem : SharedChemistryGuideDataSystem
{
[Dependency] private readonly SolutionContainerSystem _solutionContainer = default!;
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!;

[ValidatePrototypeId<MixingCategoryPrototype>]
private const string DefaultMixingCategory = "DummyMix";
Expand Down
5 changes: 5 additions & 0 deletions Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ protected override void Open()

_window = this.CreateWindow<HandLabelerWindow>();

if (_entManager.TryGetComponent(Owner, out HandLabelerComponent? labeler))
{
_window.SetMaxLabelLength(labeler!.MaxLabelChars);
}

_window.OnLabelChanged += OnLabelChanged;
Reload();
}
Expand Down
11 changes: 10 additions & 1 deletion Content.Client/Labels/UI/HandLabelerWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public HandLabelerWindow()
{
RobustXamlLoader.Load(this);

LabelLineEdit.OnTextEntered += e =>
LabelLineEdit.OnTextChanged += e =>
{
_label = e.Text;
OnLabelChanged?.Invoke(_label);
Expand All @@ -33,6 +33,10 @@ public HandLabelerWindow()
_focused = false;
LabelLineEdit.Text = _label;
};

// Give the editor keybard focus, since that's the only
// thing the user will want to be doing with this UI
LabelLineEdit.GrabKeyboardFocus();
}

public void SetCurrentLabel(string label)
Expand All @@ -44,5 +48,10 @@ public void SetCurrentLabel(string label)
if (!_focused)
LabelLineEdit.Text = label;
}

public void SetMaxLabelLength(int maxLength)
{
LabelLineEdit.IsValid = s => s.Length <= maxLength;
}
}
}
10 changes: 4 additions & 6 deletions Content.Client/Physics/JointVisualsOverlay.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
using System.Numerics;
using Content.Shared.Physics;
using Robust.Client.GameObjects;
using Robust.Client.Graphics;
using Robust.Shared.Enums;
using Robust.Shared.Physics;
using Robust.Shared.Physics.Dynamics.Joints;

namespace Content.Client.Physics;

Expand All @@ -16,29 +15,28 @@ public sealed class JointVisualsOverlay : Overlay

private IEntityManager _entManager;

private HashSet<Joint> _drawn = new();

public JointVisualsOverlay(IEntityManager entManager)
{
_entManager = entManager;
}

protected override void Draw(in OverlayDrawArgs args)
{
_drawn.Clear();
var worldHandle = args.WorldHandle;

var spriteSystem = _entManager.System<SpriteSystem>();
var xformSystem = _entManager.System<SharedTransformSystem>();
var joints = _entManager.EntityQueryEnumerator<JointVisualsComponent, TransformComponent>();
var xformQuery = _entManager.GetEntityQuery<TransformComponent>();

args.DrawingHandle.SetTransform(Matrix3x2.Identity);

while (joints.MoveNext(out var visuals, out var xform))
{
if (xform.MapID != args.MapId)
continue;

var other = visuals.Target;
var other = _entManager.GetEntity(visuals.Target);

if (!xformQuery.TryGetComponent(other, out var otherXform))
continue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,15 @@ public DefaultGameScreen()

Chat.OnResized += ChatOnResized;
Chat.OnChatResizeFinish += ChatOnResizeFinish;
Actions.ActionsContainer.Columns = 1;

MainViewport.OnResized += ResizeActionContainer;
Inventory.OnResized += ResizeActionContainer;
}

private void ResizeActionContainer()
{
float indent = Inventory.Size.Y + TopBar.Size.Y + 40;
Actions.ActionsContainer.MaxGridHeight = MainViewport.Size.Y - indent;
}

private void ChatOnResizeFinish(Vector2 _)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ public SeparatedChatGameScreen()

ScreenContainer.OnSplitResizeFinished += () =>
OnChatResized?.Invoke(new Vector2(ScreenContainer.SplitFraction, 0));

ViewportContainer.OnResized += ResizeActionContainer;
}

private void ResizeActionContainer()
{
float indent = 20;
Actions.ActionsContainer.MaxGridWidth = ViewportContainer.Size.X - indent;
}

public override ChatBox ChatBox => GetWidget<ChatBox>()!;
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Access/Systems/IdCardSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public sealed class IdCardSystem : SharedIdCardSystem
public override void Initialize()
{
base.Initialize();

SubscribeLocalEvent<IdCardComponent, BeingMicrowavedEvent>(OnMicrowaved);
}

Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Administration/Commands/AddReagent.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Administration;
using Content.Shared.Chemistry.Components.SolutionManager;
using Content.Shared.Chemistry.Reagent;
Expand Down Expand Up @@ -42,7 +42,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
return;
}

var solutionContainerSystem = _entManager.System<SolutionContainerSystem>();
var solutionContainerSystem = _entManager.System<SharedSolutionContainerSystem>();
if (!solutionContainerSystem.TryGetSolution((uid.Value, man), args[1], out var solution))
{
var validSolutions = string.Join(", ", solutionContainerSystem.EnumerateSolutions((uid.Value, man)).Select(s => s.Name));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Administration;
using Content.Shared.Chemistry.Components.SolutionManager;
using Content.Shared.FixedPoint;
Expand Down Expand Up @@ -36,7 +36,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
return;
}

var solutionContainerSystem = _entManager.System<SolutionContainerSystem>();
var solutionContainerSystem = _entManager.System<SharedSolutionContainerSystem>();
if (!solutionContainerSystem.TryGetSolution((uid.Value, man), args[1], out var solution))
{
var validSolutions = string.Join(", ", solutionContainerSystem.EnumerateSolutions((uid.Value, man)).Select(s => s.Name));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Administration;
using Content.Shared.Chemistry.Components.SolutionManager;
using Robust.Shared.Console;
Expand Down Expand Up @@ -35,7 +35,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
return;
}

var solutionContainerSystem = _entManager.System<SolutionContainerSystem>();
var solutionContainerSystem = _entManager.System<SharedSolutionContainerSystem>();
if (!solutionContainerSystem.TryGetSolution((uid.Value, man), args[1], out var solution))
{
var validSolutions = string.Join(", ", solutionContainerSystem.EnumerateSolutions((uid.Value, man)).Select(s => s.Name));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Administration;
using Content.Shared.Chemistry.Components.SolutionManager;
using Robust.Shared.Console;
Expand Down Expand Up @@ -35,7 +35,7 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
return;
}

var solutionContainerSystem = _entManager.System<SolutionContainerSystem>();
var solutionContainerSystem = _entManager.System<SharedSolutionContainerSystem>();
if (!solutionContainerSystem.TryGetSolution((uid.Value, man), args[1], out var solutionEnt, out var solution))
{
var validSolutions = string.Join(", ", solutionContainerSystem.EnumerateSolutions((uid.Value, man)).Select(s => s.Name));
Expand Down
7 changes: 4 additions & 3 deletions Content.Server/Administration/Toolshed/SolutionCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.Reagent;
using Content.Shared.FixedPoint;
using Content.Shared.Chemistry.EntitySystems;
using Robust.Shared.Toolshed;
using Robust.Shared.Toolshed.Syntax;
using Robust.Shared.Toolshed.TypeParsers;
Expand All @@ -13,7 +14,7 @@ namespace Content.Server.Administration.Toolshed;
[ToolshedCommand, AdminCommand(AdminFlags.Debug)]
public sealed class SolutionCommand : ToolshedCommand
{
private SolutionContainerSystem? _solutionContainer;
private SharedSolutionContainerSystem? _solutionContainer;

[CommandImplementation("get")]
public SolutionRef? Get(
Expand All @@ -22,7 +23,7 @@ public sealed class SolutionCommand : ToolshedCommand
[CommandArgument] ValueRef<string> name
)
{
_solutionContainer ??= GetSys<SolutionContainerSystem>();
_solutionContainer ??= GetSys<SharedSolutionContainerSystem>();

if (_solutionContainer.TryGetSolution(input, name.Evaluate(ctx)!, out var solution))
return new SolutionRef(solution.Value);
Expand All @@ -48,7 +49,7 @@ public SolutionRef AdjReagent(
[CommandArgument] ValueRef<FixedPoint2> amountRef
)
{
_solutionContainer ??= GetSys<SolutionContainerSystem>();
_solutionContainer ??= GetSys<SharedSolutionContainerSystem>();

var amount = amountRef.Evaluate(ctx);
if (amount > 0)
Expand Down
5 changes: 3 additions & 2 deletions Content.Server/Administration/UI/EditSolutionsEui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Content.Shared.Administration;
using Content.Shared.Chemistry.Components.SolutionManager;
using Content.Shared.Eui;
using Content.Shared.Chemistry.EntitySystems;
using JetBrains.Annotations;
using Robust.Shared.Timing;

Expand All @@ -17,13 +18,13 @@ public sealed class EditSolutionsEui : BaseEui
{
[Dependency] private readonly IEntityManager _entityManager = default!;
[Dependency] private readonly IGameTiming _gameTiming = default!;
private readonly SolutionContainerSystem _solutionContainerSystem = default!;
private readonly SharedSolutionContainerSystem _solutionContainerSystem = default!;
public readonly EntityUid Target;

public EditSolutionsEui(EntityUid entity)
{
IoCManager.InjectDependencies(this);
_solutionContainerSystem = _entityManager.System<SolutionContainerSystem>();
_solutionContainerSystem = _entityManager.System<SharedSolutionContainerSystem>();
Target = entity;
}

Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Animals/Systems/UdderSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Content.Server.Animals.Components;
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Server.Popups;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Chemistry.Components;
using Content.Shared.DoAfter;
using Content.Shared.IdentityManagement;
Expand All @@ -25,7 +25,7 @@ internal sealed class UdderSystem : EntitySystem
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly PopupSystem _popupSystem = default!;
[Dependency] private readonly SharedDoAfterSystem _doAfterSystem = default!;
[Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!;
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainerSystem = default!;

public override void Initialize()
{
Expand Down
6 changes: 3 additions & 3 deletions Content.Server/Animals/Systems/WoolySystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Content.Server.Animals.Components;
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Server.Nutrition;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Mobs.Systems;
using Content.Shared.Nutrition.Components;
using Content.Shared.Nutrition.EntitySystems;
Expand All @@ -9,15 +9,15 @@
namespace Content.Server.Animals.Systems;

/// <summary>
/// Gives ability to produce fiber reagents, produces endless if the
/// Gives ability to produce fiber reagents, produces endless if the
/// owner has no HungerComponent
/// </summary>
public sealed class WoolySystem : EntitySystem
{
[Dependency] private readonly HungerSystem _hunger = default!;
[Dependency] private readonly IGameTiming _timing = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly SolutionContainerSystem _solutionContainer = default!;
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!;

public override void Initialize()
{
Expand Down
6 changes: 3 additions & 3 deletions Content.Server/Anomaly/Effects/InjectionAnomalySystem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Content.Server.Anomaly.Components;
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Anomaly.Components;
using Content.Shared.Chemistry.Components.SolutionManager;
using System.Linq;
Expand All @@ -16,15 +16,15 @@ namespace Content.Server.Anomaly.Effects;
public sealed class InjectionAnomalySystem : EntitySystem
{
[Dependency] private readonly EntityLookupSystem _lookup = default!;
[Dependency] private readonly SolutionContainerSystem _solutionContainer = default!;
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!;
[Dependency] private readonly TransformSystem _transform = default!;

private EntityQuery<InjectableSolutionComponent> _injectableQuery;

public override void Initialize()
{
SubscribeLocalEvent<InjectionAnomalyComponent, AnomalyPulseEvent>(OnPulse);
SubscribeLocalEvent<InjectionAnomalyComponent, AnomalySupercriticalEvent>(OnSupercritical, before: new[] { typeof(SolutionContainerSystem) });
SubscribeLocalEvent<InjectionAnomalyComponent, AnomalySupercriticalEvent>(OnSupercritical, before: new[] { typeof(SharedSolutionContainerSystem) });

_injectableQuery = GetEntityQuery<InjectableSolutionComponent>();
}
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Anomaly/Effects/PuddleCreateAnomalySystem.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Content.Server.Anomaly.Components;
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Server.Fluids.EntitySystems;
using Content.Shared.Anomaly.Components;

Expand All @@ -11,7 +11,7 @@ namespace Content.Server.Anomaly.Effects;
public sealed class PuddleCreateAnomalySystem : EntitySystem
{
[Dependency] private readonly PuddleSystem _puddle = default!;
[Dependency] private readonly SolutionContainerSystem _solutionContainer = default!;
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!;

public override void Initialize()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using Content.Server.Anomaly.Components;
using Content.Server.Chemistry.Containers.EntitySystems;
using Content.Shared.Chemistry.EntitySystems;
using Content.Shared.Anomaly.Components;
using Content.Shared.Chemistry.Components;
using Content.Shared.Sprite;
Expand Down Expand Up @@ -28,7 +28,7 @@ public sealed class ReagentProducerAnomalySystem : EntitySystem
//Useful:
//Those reagents that the players are hunting for. Very low percentage of loss.

[Dependency] private readonly SolutionContainerSystem _solutionContainer = default!;
[Dependency] private readonly SharedSolutionContainerSystem _solutionContainer = default!;
[Dependency] private readonly IRobustRandom _random = default!;
[Dependency] private readonly PointLightSystem _light = default!;
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Atmos/EntitySystems/GasTankSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void OnGetActions(EntityUid uid, GasTankComponent component, GetItemActi

private void OnExamined(EntityUid uid, GasTankComponent component, ExaminedEvent args)
{
using(args.PushGroup(nameof(GasTankComponent)));
using var _ = args.PushGroup(nameof(GasTankComponent));
if (args.IsInDetailsRange)
args.PushMarkup(Loc.GetString("comp-gas-tank-examine", ("pressure", Math.Round(component.Air?.Pressure ?? 0))));
if (component.IsConnected)
Expand Down Expand Up @@ -348,7 +348,7 @@ public void CheckStatus(Entity<GasTankComponent> ent)
if (component.Integrity <= 0)
{
var environment = _atmosphereSystem.GetContainingMixture(owner, false, true);
if(environment != null)
if (environment != null)
_atmosphereSystem.Merge(environment, component.Air);

_audioSys.PlayPvs(component.RuptureSound, Transform(owner).Coordinates, AudioParams.Default.WithVariation(0.125f));
Expand Down
Loading
Loading