Gulag v2 (#21)

* Components или чет типо того

* Gulag System

* Shared shit

* Cvars

* Ban manager update

* Ghost roles shit

* No ooc for gulaged

* Connection manager update

* Gulag proto shit

* Merge conflict issue

* Fixing shit

* Фикс говняхи плюс QOL

* Pendos loc

* better loc

* More qol

* ctrl+s issue

* No bwoink for banned

* Ore shit

* MAP!!!!!!

---------

Co-authored-by: Mona Hmiza <you@example.com>
This commit is contained in:
rhailrake
2024-02-03 11:39:40 +00:00
committed by GitHub
parent 8edae953d7
commit 1594dff648
18 changed files with 5828 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
using Content.Server._Miracle.GulagSystem;
using Content.Server.Administration.Logs;
using Content.Server.EUI;
using Content.Server.Ghost.Roles.Components;
@@ -37,6 +38,8 @@ namespace Content.Server.Ghost.Roles
[Dependency] private readonly TransformSystem _transform = default!;
[Dependency] private readonly SharedMindSystem _mindSystem = default!;
[Dependency] private readonly SharedRoleSystem _roleSystem = default!;
[Dependency] private readonly GulagSystem _gulagSystem = default!;
private uint _nextRoleIdentifier;
private bool _needsUpdateGhostRoleCount = true;
@@ -201,6 +204,11 @@ namespace Content.Server.Ghost.Roles
if (!_ghostRoles.TryGetValue(identifier, out var role))
return;
if (_gulagSystem.IsUserGulaged(player.UserId, out _))
{
return;
}
var ev = new TakeGhostRoleEvent(player);
RaiseLocalEvent(role, ref ev);