mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 05:27:38 +03:00
* mass clean up
(cherry picked from commit 12bb873b02c1ef50e20763542b030452cc0613da)
* Revert "Centrifuge buff (#393)"
This reverts commit 2a59a18230.
(cherry picked from commit 9ee495ab4bb365e1ccd3dc627ecb55114fea6944)
* Shoving merge conflict
* fix rich traitor
* fix test
* yml
* fix test
* fix test
* ohh
25 lines
781 B
C#
25 lines
781 B
C#
using Robust.Shared.Random;
|
|
using System.Linq;
|
|
using Content.Shared._White.GameTicking.Prototypes;
|
|
|
|
namespace Content.Server.GameTicking;
|
|
|
|
public sealed partial class GameTicker
|
|
{
|
|
[ViewVariables]
|
|
public AnimatedLobbyScreenPrototype? AnimatedLobbyScreen { get; private set; } // WD EDIT
|
|
|
|
[ViewVariables]
|
|
private List<AnimatedLobbyScreenPrototype> _lobbyBackgrounds = []; // WD EDIT
|
|
|
|
private void InitializeLobbyBackground()
|
|
{
|
|
_lobbyBackgrounds = _prototypeManager.EnumeratePrototypes<AnimatedLobbyScreenPrototype>() // WD EDIT
|
|
.ToList();
|
|
|
|
RandomizeLobbyBackground();
|
|
}
|
|
|
|
private void RandomizeLobbyBackground() => AnimatedLobbyScreen = _lobbyBackgrounds!.Any() ? _robustRandom.Pick(_lobbyBackgrounds!) : null; // WD EDIT
|
|
}
|