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

Merge attempt 1. #142

Closed
wants to merge 94 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
1f22dfd
changed from tag to material and added icon for capacitor
TheWaffleJesus Sep 8, 2024
daf674e
changed capacitor yaml for substation and memory cell
TheWaffleJesus Sep 8, 2024
30018a3
added Derelict Cyborgs with basic functionality.
GoldenCan Sep 27, 2024
602541b
minor changes to the Derelict Cyborg
GoldenCan Sep 27, 2024
c3fa1b4
Added Derelict Cyborg midround event.
GoldenCan Sep 28, 2024
964ef33
Fixed accidental removal of something from a meta.json file.
GoldenCan Sep 28, 2024
bad25e3
Split part of IonStormRule into IonStormSystem. Added StartIonStormed…
GoldenCan Sep 29, 2024
f226f28
Derelict Cyborgs are now very likely to be affected by ion storms.
GoldenCan Sep 30, 2024
4c8a235
Minor alterations to the Derelict Cyborg and its ghostrole description
GoldenCan Sep 30, 2024
eb1168a
Update Resources/Prototypes/Entities/Mobs/Player/silicon.yml
GoldenCan Sep 30, 2024
a4e7ad0
Update Resources/Prototypes/Entities/Mobs/Player/silicon.yml
GoldenCan Sep 30, 2024
0cc1f32
Update Resources/Textures/Mobs/Silicon/chassis.rsi/meta.json
GoldenCan Sep 30, 2024
e75a71d
Update Content.Server/Silicons/Laws/StartIonStormedSystem.cs
GoldenCan Sep 30, 2024
eaa6017
Update Resources/Prototypes/Entities/Mobs/Cyborgs/base_borg_chassis.yml
GoldenCan Sep 30, 2024
834b6eb
Cleaned up a bit of the Derelict Cyborg code.
GoldenCan Oct 1, 2024
1abc60b
moved a bit of IonStorm code elsewhere
GoldenCan Oct 1, 2024
c6fe568
changed almost nothing
GoldenCan Oct 1, 2024
36390b2
Small changes - hopefully good ones.
GoldenCan Oct 1, 2024
7169788
changed very minor stuff with no gameplay alterations.
GoldenCan Oct 1, 2024
d0114d9
added a code summary
GoldenCan Oct 1, 2024
08de5ae
Derelict cyborg minor yaml changes.
GoldenCan Oct 1, 2024
963009a
Changes IonStorm related code with no gameplay changes.
GoldenCan Oct 3, 2024
4b633fd
Fixed IonStorms sometimes affecting the laws of the current AI and fu…
GoldenCan Oct 3, 2024
9dc90a2
Changed DerelictCyborgSpawn event's frequency from 6 to 5, even thoug…
GoldenCan Oct 3, 2024
3aff201
Removed 1 line of whitespace.
GoldenCan Oct 3, 2024
00aaffb
removed whitespace
GoldenCan Oct 3, 2024
d863e3c
Derelict Cyborg no longer appears on the endround 'Game Information' …
GoldenCan Oct 3, 2024
581a4d1
minor Derelict Cyborg code changes.
GoldenCan Oct 4, 2024
d7ed5b4
remove whitespace.
GoldenCan Oct 4, 2024
b35d290
Fixed cyborgs with the StartIonStormedComponent (which is just the De…
GoldenCan Oct 5, 2024
b0c5023
Fix comments in StartIonStormedComponent.cs
GoldenCan Oct 5, 2024
0384373
Add no damage phrase and logic
thetolbean Oct 30, 2024
33516b7
Fixed minor spelling mistake
SpaceLizard24 Oct 31, 2024
2801ebe
Optimization!
thetolbean Nov 10, 2024
755f322
Merge branch 'master' into ion-storm-refactor
ScarKy0 Nov 14, 2024
4f754b8
derelictn't (for now)
ScarKy0 Nov 14, 2024
e9c66cf
Merge branch 'ion-storm-refactor' of https://github.com/ScarKy0/space…
ScarKy0 Nov 14, 2024
c862013
guh
ScarKy0 Nov 14, 2024
5dbea42
derelicn't for real
ScarKy0 Nov 14, 2024
0f30639
progress
ScarKy0 Nov 14, 2024
ace158d
Yippee!
ScarKy0 Nov 14, 2024
53ce812
slash
ScarKy0 Nov 14, 2024
9a5c49b
epic empty commit
ScarKy0 Nov 14, 2024
3b93651
or was it
ScarKy0 Nov 14, 2024
7d82a7b
Merge branch 'space-wizards:master' into ion-storm-refactor
ScarKy0 Nov 15, 2024
3173a34
S: Awaiting Changes
ScarKy0 Nov 16, 2024
a68c6cb
Temporarily make singularity a bit harder to loose as non-antag
SaphireLattice Nov 16, 2024
01d6df3
Fix Fluent string ID copypaste fail
SaphireLattice Nov 16, 2024
476f90d
Fix the component defaults
SaphireLattice Nov 16, 2024
e290588
Changes + Cleanup
ScarKy0 Nov 17, 2024
97be261
Reduced cost of coloured light fixtures
SpaceLizard24 Nov 17, 2024
647db6a
Shift air alarm sprites to better reflect their direction (#33379)
SpaceManiac Nov 18, 2024
79ff990
Replace direct uses of GameTicker dictionary with `TryGetValue` (#33222)
ficcialfaint Nov 18, 2024
96d2fe4
Service Worker Job Icon Change (#33361)
spanky-spanky Nov 18, 2024
68eaf6f
Bump the failsafe timer down
SaphireLattice Nov 19, 2024
dffece4
Cog update (#33410)
Spessmann Nov 19, 2024
909235c
fix viewing nav slowing shuttle down (#32381)
Ilya246 Nov 19, 2024
10ee37a
Automatic changelog update
PJBot Nov 19, 2024
437a586
Welded secret doors no longer say they are welded shut. (#33365)
ScarKy0 Nov 19, 2024
0e2e6a0
Automatic changelog update
PJBot Nov 19, 2024
895648a
Increase softcap back to 80 (#33400)
nikthechampiongr Nov 19, 2024
a949cf3
Toggle clothing fix (#32826)
ArZarLordOfMango Nov 19, 2024
42ee90e
Automatic changelog update
PJBot Nov 19, 2024
c4e2eb9
.NET 9 forward compatibility changes (#33421)
PJB3005 Nov 20, 2024
7f5bae9
Fix security riot crate (#33415)
Plykiya Nov 20, 2024
2002de9
Localize planet dataset names (#33398)
MilenVolf Nov 20, 2024
efa28fc
Automatic changelog update
PJBot Nov 20, 2024
89392e2
Remove drag & drop dropping items from containers (#32706)
SlamBamActionman Nov 20, 2024
ed1ae96
Automatic changelog update
PJBot Nov 20, 2024
eebf06d
Automatically add "Approved" to maintainer PRs (#33337)
SaphireLattice Nov 20, 2024
fdf3df9
Crew monitoring crate updated to contain flatpacks, science access in…
Plykiya Nov 20, 2024
35e2c64
Automatic changelog update
PJBot Nov 20, 2024
6e53cd9
Add emag functionality
SlamBamActionman Nov 19, 2024
9c66645
Move some of the new singularity code into shared
SaphireLattice Nov 20, 2024
1fa1975
Fix toggle verbs (#32138)
beck-thompson Nov 20, 2024
e98383d
Construction menu grid view (#32577)
qwerltaz Nov 20, 2024
7e8e2c7
Automatic changelog update
PJBot Nov 20, 2024
0ec2336
Merge into master: Increase softcap back to 80 (#33400) (#33419)
metalgearsloth Nov 20, 2024
b177a1d
Coloured Light Cost Reduction (#33376)
metalgearsloth Nov 20, 2024
a13a4f7
Automatic changelog update
PJBot Nov 20, 2024
75acce0
Fix: Examine Damage now specifies no damage (#33064)
metalgearsloth Nov 20, 2024
1b3672e
Automatic changelog update
PJBot Nov 20, 2024
44db676
Actually make the emagging popup work properly
SaphireLattice Nov 20, 2024
b8b33b9
Move PlayerBeforeSpawnEvent and PlayerSpawnCompleteEvent to Shared
DrSmugleaf Nov 20, 2024
f5d0e95
Fix imports
DrSmugleaf Nov 20, 2024
8acbf87
Move PlayerBeforeSpawnEvent and PlayerSpawnCompleteEvent to Shared (#…
metalgearsloth Nov 20, 2024
a818c2a
Temporarily make singularity a bit harder to loose as non-antag (#33358)
metalgearsloth Nov 20, 2024
a7003ac
Automatic changelog update
PJBot Nov 20, 2024
59b0938
Capacitor Crafting Change (#31966)
metalgearsloth Nov 20, 2024
4f3ac3e
Automatic changelog update
PJBot Nov 20, 2024
a9be561
Merge branch 'master' into ion-storm-refactor
metalgearsloth Nov 20, 2024
98caf50
Ion storm refactor (#33311)
metalgearsloth Nov 20, 2024
f9533a6
Automatic changelog update
PJBot Nov 20, 2024
cb246f5
Set airlock unlit layers as invisible (#32484)
metalgearsloth Nov 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/labeler-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Labels: Approved"
on:
pull_request_review:
types: [submitted]
jobs:
add_label:
# Change the repository name after you've made sure the team name is correct for your fork!
if: ${{ (github.repository == 'space-wizards/space-station-14') && (github.event.review.state == 'APPROVED') }}
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: tspascoal/get-user-teams-membership@v3
id: checkUserMember
with:
username: ${{ github.actor }}
team: "content-maintainers,junior-maintainers" # CHANGE TEAM NAME HERE PLEASE <------
GITHUB_TOKEN: ${{ secrets.PAT }}
- if: ${{ steps.checkUserMember.outputs.isTeamMember == 'true' }}
uses: actions-ecosystem/action-add-labels@v1
with:
labels: "PR: Approved"
13 changes: 9 additions & 4 deletions Content.Client/Construction/UI/ConstructionMenu.xaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
<DefaultWindow xmlns="https://spacestation14.io">
<BoxContainer Orientation="Horizontal" HorizontalExpand="True">
<BoxContainer Orientation="Vertical" HorizontalExpand="True" SizeFlagsStretchRatio="0.4" Margin="0 0 5 0">
<BoxContainer Orientation="Vertical" MinWidth="243" Margin="0 0 5 0">
<BoxContainer Orientation="Horizontal" HorizontalExpand="True" Margin="0 0 0 5">
<LineEdit Name="SearchBar" PlaceHolder="Search" HorizontalExpand="True"/>
<OptionButton Name="OptionCategories" Access="Public" MinSize="130 0"/>
</BoxContainer>
<ItemList Name="Recipes" Access="Public" SelectMode="Single" VerticalExpand="True"/>
<ScrollContainer Name="RecipesGridScrollContainer" VerticalExpand="True" Access="Public" Visible="False">
<GridContainer Name="RecipesGrid" Columns="5" Access="Public"/>
</ScrollContainer>
</BoxContainer>
<BoxContainer Orientation="Vertical" HorizontalExpand="True" SizeFlagsStretchRatio="0.6">
<Button Name="FavoriteButton" Visible="false" HorizontalExpand="False"
HorizontalAlignment="Right" Margin="0 0 0 15"/>
<BoxContainer Orientation="Vertical" HorizontalExpand="True">
<BoxContainer Orientation="Horizontal">
<Button Name="MenuGridViewButton" ToggleMode="True" Text="{Loc construction-menu-grid-view}"/>
<Button Name="FavoriteButton" Visible="false"/>
</BoxContainer>
<Control>
<BoxContainer Orientation="Vertical" HorizontalExpand="True" Margin="0 0 0 5">
<BoxContainer Orientation="Horizontal" Align="Center">
Expand Down
17 changes: 16 additions & 1 deletion Content.Client/Construction/UI/ConstructionMenu.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@ public interface IConstructionMenuView : IDisposable
OptionButton OptionCategories { get; }

bool EraseButtonPressed { get; set; }
bool GridViewButtonPressed { get; set; }
bool BuildButtonPressed { get; set; }

ItemList Recipes { get; }
ItemList RecipeStepList { get; }


ScrollContainer RecipesGridScrollContainer { get; }
GridContainer RecipesGrid { get; }

event EventHandler<(string search, string catagory)> PopulateRecipes;
event EventHandler<ItemList.Item?> RecipeSelected;
event EventHandler RecipeFavorited;
Expand Down Expand Up @@ -72,9 +77,16 @@ public bool EraseButtonPressed
set => EraseButton.Pressed = value;
}

public bool GridViewButtonPressed
{
get => MenuGridViewButton.Pressed;
set => MenuGridViewButton.Pressed = value;
}

public ConstructionMenu()
{
SetSize = MinSize = new Vector2(720, 320);
SetSize = new Vector2(560, 450);
MinSize = new Vector2(560, 320);

IoCManager.InjectDependencies(this);
RobustXamlLoader.Load(this);
Expand Down Expand Up @@ -102,6 +114,9 @@ public ConstructionMenu()
EraseButton.OnToggled += args => EraseButtonToggled?.Invoke(this, args.Pressed);

FavoriteButton.OnPressed += args => RecipeFavorited?.Invoke(this, EventArgs.Empty);

MenuGridViewButton.OnPressed += _ =>
PopulateRecipes?.Invoke(this, (SearchBar.Text, Categories[OptionCategories.SelectedId]));
}

public event EventHandler? ClearAllGhosts;
Expand Down
102 changes: 88 additions & 14 deletions Content.Client/Construction/UI/ConstructionMenuPresenter.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System.Linq;
using System.Numerics;
using Content.Client.Stylesheets;
using Content.Client.UserInterface.Systems.MenuBar.Widgets;
using Content.Shared.Construction.Prototypes;
using Content.Shared.Tag;
using Content.Shared.Whitelist;
using Robust.Client.GameObjects;
using Robust.Client.Graphics;
Expand All @@ -11,7 +12,6 @@
using Robust.Client.UserInterface.Controls;
using Robust.Client.Utility;
using Robust.Shared.Enums;
using Robust.Shared.Graphics;
using Robust.Shared.Prototypes;
using static Robust.Client.UserInterface.Controls.BaseButton;

Expand All @@ -33,10 +33,12 @@ internal sealed class ConstructionMenuPresenter : IDisposable

private readonly IConstructionMenuView _constructionView;
private readonly EntityWhitelistSystem _whitelistSystem;
private readonly SpriteSystem _spriteSystem;

private ConstructionSystem? _constructionSystem;
private ConstructionPrototype? _selected;
private List<ConstructionPrototype> _favoritedRecipes = [];
private Dictionary<string, TextureButton> _recipeButtons = new();
private string _selectedCategory = string.Empty;
private string _favoriteCatName = "construction-category-favorites";
private string _forAllCategoryName = "construction-category-all";
Expand Down Expand Up @@ -85,6 +87,7 @@ public ConstructionMenuPresenter()
IoCManager.InjectDependencies(this);
_constructionView = new ConstructionMenu();
_whitelistSystem = _entManager.System<EntityWhitelistSystem>();
_spriteSystem = _entManager.System<SpriteSystem>();

// This is required so that if we load after the system is initialized, we can bind to it immediately
if (_systemManager.TryGetEntitySystem<ConstructionSystem>(out var constructionSystem))
Expand Down Expand Up @@ -150,12 +153,24 @@ private void OnViewRecipeSelected(object? sender, ItemList.Item? item)
PopulateInfo(_selected);
}

private void OnGridViewRecipeSelected(object? sender, ConstructionPrototype? recipe)
{
if (recipe is null)
{
_selected = null;
_constructionView.ClearRecipeInfo();
return;
}

_selected = recipe;
if (_placementManager.IsActive && !_placementManager.Eraser) UpdateGhostPlacement();
PopulateInfo(_selected);
}

private void OnViewPopulateRecipes(object? sender, (string search, string catagory) args)
{
var (search, category) = args;
var recipesList = _constructionView.Recipes;

recipesList.Clear();
var recipes = new List<ConstructionPrototype>();

var isEmptyCategory = string.IsNullOrEmpty(category) || category == _forAllCategoryName;
Expand Down Expand Up @@ -201,12 +216,73 @@ private void OnViewPopulateRecipes(object? sender, (string search, string catago

recipes.Sort((a, b) => string.Compare(a.Name, b.Name, StringComparison.InvariantCulture));

foreach (var recipe in recipes)
var recipesList = _constructionView.Recipes;
recipesList.Clear();

var recipesGrid = _constructionView.RecipesGrid;
recipesGrid.RemoveAllChildren();

_constructionView.RecipesGridScrollContainer.Visible = _constructionView.GridViewButtonPressed;
_constructionView.Recipes.Visible = !_constructionView.GridViewButtonPressed;

if (_constructionView.GridViewButtonPressed)
{
foreach (var recipe in recipes)
{
var itemButton = new TextureButton
{
TextureNormal = _spriteSystem.Frame0(recipe.Icon),
VerticalAlignment = Control.VAlignment.Center,
Name = recipe.Name,
ToolTip = recipe.Name,
Scale = new Vector2(1.35f),
ToggleMode = true,
};
var itemButtonPanelContainer = new PanelContainer
{
PanelOverride = new StyleBoxFlat { BackgroundColor = StyleNano.ButtonColorDefault },
Children = { itemButton },
};

itemButton.OnToggled += buttonToggledEventArgs =>
{
SelectGridButton(itemButton, buttonToggledEventArgs.Pressed);

if (buttonToggledEventArgs.Pressed &&
_selected != null &&
_recipeButtons.TryGetValue(_selected.Name, out var oldButton))
{
oldButton.Pressed = false;
SelectGridButton(oldButton, false);
}

OnGridViewRecipeSelected(this, buttonToggledEventArgs.Pressed ? recipe : null);
};

recipesGrid.AddChild(itemButtonPanelContainer);
_recipeButtons[recipe.Name] = itemButton;
var isCurrentButtonSelected = _selected == recipe;
itemButton.Pressed = isCurrentButtonSelected;
SelectGridButton(itemButton, isCurrentButtonSelected);
}
}
else
{
recipesList.Add(GetItem(recipe, recipesList));
foreach (var recipe in recipes)
{
recipesList.Add(GetItem(recipe, recipesList));
}
}
}

private void SelectGridButton(TextureButton button, bool select)
{
if (button.Parent is not PanelContainer buttonPanel)
return;

// There is apparently no way to set which
button.Modulate = select ? Color.Green : Color.White;
var buttonColor = select ? StyleNano.ButtonColorDefault : Color.Transparent;
buttonPanel.PanelOverride = new StyleBoxFlat { BackgroundColor = buttonColor };
}

private void PopulateCategories(string? selectCategory = null)
Expand Down Expand Up @@ -257,11 +333,10 @@ private void PopulateCategories(string? selectCategory = null)

private void PopulateInfo(ConstructionPrototype prototype)
{
var spriteSys = _systemManager.GetEntitySystem<SpriteSystem>();
_constructionView.ClearRecipeInfo();

_constructionView.SetRecipeInfo(
prototype.Name, prototype.Description, spriteSys.Frame0(prototype.Icon),
prototype.Name, prototype.Description, _spriteSystem.Frame0(prototype.Icon),
prototype.Type != ConstructionType.Item,
!_favoritedRecipes.Contains(prototype));

Expand All @@ -274,7 +349,6 @@ private void GenerateStepList(ConstructionPrototype prototype, ItemList stepList
if (_constructionSystem?.GetGuide(prototype) is not { } guide)
return;

var spriteSys = _systemManager.GetEntitySystem<SpriteSystem>();

foreach (var entry in guide.Entries)
{
Expand All @@ -290,20 +364,20 @@ private void GenerateStepList(ConstructionPrototype prototype, ItemList stepList
// The padding needs to be applied regardless of text length... (See PadLeft documentation)
text = text.PadLeft(text.Length + entry.Padding);

var icon = entry.Icon != null ? spriteSys.Frame0(entry.Icon) : Texture.Transparent;
var icon = entry.Icon != null ? _spriteSystem.Frame0(entry.Icon) : Texture.Transparent;
stepList.AddItem(text, icon, false);
}
}

private static ItemList.Item GetItem(ConstructionPrototype recipe, ItemList itemList)
private ItemList.Item GetItem(ConstructionPrototype recipe, ItemList itemList)
{
return new(itemList)
{
Metadata = recipe,
Text = recipe.Name,
Icon = recipe.Icon.Frame0(),
Icon = _spriteSystem.Frame0(recipe.Icon),
TooltipEnabled = true,
TooltipText = recipe.Description
TooltipText = recipe.Description,
};
}

Expand Down
2 changes: 1 addition & 1 deletion Content.Client/Singularity/Systems/EventHorizonSystem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Content.Shared.Singularity.EntitySystems;
using Content.Shared.Singularity.Components;

namespace Content.Client.Singularity.EntitySystems;
namespace Content.Client.Singularity.Systems;

/// <summary>
/// The client-side version of <see cref="SharedEventHorizonSystem"/>.
Expand Down
12 changes: 12 additions & 0 deletions Content.Client/Singularity/Systems/SingularityGeneratorSystem.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Content.Shared.Singularity.EntitySystems;
using Content.Shared.Singularity.Components;

namespace Content.Client.Singularity.Systems;

/// <summary>
/// The client-side version of <see cref="SharedSingularityGeneratorSystem"/>.
/// Manages <see cref="SingularityGeneratorComponent"/>s.
/// Exists to make relevant signal handlers (ie: <see cref="SharedSingularityGeneratorSystem.OnEmagged"/>) work on the client.
/// </summary>
public sealed class SingularityGeneratorSystem : SharedSingularityGeneratorSystem
{}
2 changes: 1 addition & 1 deletion Content.Client/Singularity/Systems/SingularitySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Robust.Shared.GameStates;
using Robust.Shared.Utility;

namespace Content.Client.Singularity.EntitySystems;
namespace Content.Client.Singularity.Systems;

/// <summary>
/// The client-side version of <see cref="SharedSingularitySystem"/>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,6 @@ private void OnPieceUnpressed(GUIBoundKeyEventArgs args, ItemGridPiece control)
_entity.GetNetEntity(storageEnt),
new ItemStorageLocation(DraggingRotation, position)));
}
else
{
_entity.RaisePredictiveEvent(new StorageRemoveItemEvent(
_entity.GetNetEntity(draggingGhost.Entity),
_entity.GetNetEntity(storageEnt)));
}

_menuDragHelper.EndDrag();
_container?.BuildItemPieces();
Expand Down
3 changes: 2 additions & 1 deletion Content.Server/Announcements/AnnounceCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public void Execute(IConsoleShell shell, string argStr, string[] args)
}
else
{
var message = string.Join(' ', new ArraySegment<string>(args, 1, args.Length-1));
// Explicit IEnumerable<string> due to overload ambiguity on .NET 9
var message = string.Join(' ', (IEnumerable<string>)new ArraySegment<string>(args, 1, args.Length-1));
chat.DispatchGlobalAnnouncement(message, args[0], colorOverride: Color.Gold);
}
shell.WriteLine("Sent!");
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Antag/AntagSelectionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ protected override void Started(EntityUid uid, AntagSelectionComponent component
return;

var players = _playerManager.Sessions
.Where(x => GameTicker.PlayerGameStatuses[x.UserId] == PlayerGameStatus.JoinedGame)
.Where(x => GameTicker.PlayerGameStatuses.TryGetValue(x.UserId, out var status) && status == PlayerGameStatus.JoinedGame)
.ToList();

ChooseAntags((uid, component), players, midround: true);
Expand Down
4 changes: 2 additions & 2 deletions Content.Server/Bed/Cryostorage/CryostorageSystem.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Globalization;
using Content.Server.Chat.Managers;
using Content.Server.Chat.Systems;
using Content.Server.GameTicking;
using Content.Server.Ghost;
using Content.Server.Hands.Systems;
using Content.Server.Inventory;
Expand All @@ -14,6 +14,7 @@
using Content.Shared.Chat;
using Content.Shared.Climbing.Systems;
using Content.Shared.Database;
using Content.Shared.GameTicking;
using Content.Shared.Hands.Components;
using Content.Shared.Mind.Components;
using Content.Shared.StationRecords;
Expand All @@ -26,7 +27,6 @@
using Robust.Shared.Enums;
using Robust.Shared.Network;
using Robust.Shared.Player;
using System.Globalization;

namespace Content.Server.Bed.Cryostorage;

Expand Down
2 changes: 1 addition & 1 deletion Content.Server/Cargo/Systems/PricingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ public record struct PriceCalculationEvent()
[ByRefEvent]
public record struct EstimatedPriceCalculationEvent()
{
public EntityPrototype Prototype;
public required EntityPrototype Prototype;

/// <summary>
/// The total price of the entity.
Expand Down
2 changes: 1 addition & 1 deletion Content.Server/GameTicking/GameTicker.Lobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,6 @@ public bool UserHasJoinedGame(ICommonSession session)
=> UserHasJoinedGame(session.UserId);

public bool UserHasJoinedGame(NetUserId userId)
=> PlayerGameStatuses[userId] == PlayerGameStatus.JoinedGame;
=> PlayerGameStatuses.TryGetValue(userId, out var status) && status == PlayerGameStatus.JoinedGame;
}
}
Loading
Loading