* fix #1428

* CodTenAlt review

* fix map tests

* real this time

* fix #1429

* add wheat and cotton into victorian gardens trade faction

* Update PostMapInitTest.cs
This commit is contained in:
Red
2025-06-15 21:25:58 +03:00
committed by GitHub
parent 4dfaf6a16e
commit b24ec5bc80
20 changed files with 53 additions and 42 deletions

View File

@@ -11,7 +11,6 @@ public sealed class CP14ReligionEntityBoundUserInterface : BoundUserInterface
public CP14ReligionEntityBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
{
IoCManager.InjectDependencies(this);
}
protected override void Open()

View File

@@ -11,6 +11,7 @@ namespace Content.Client._CP14.Religion;
public sealed partial class CP14ReligionEntityWindow : DefaultWindow
{
[Dependency] private readonly ILogManager _log = default!;
private ISawmill Sawmill { get; init; }
public event Action<NetEntity>? OnTeleportAttempt;

View File

@@ -31,6 +31,7 @@ public sealed class CP14ReligionVisionOverlay : Overlay
private readonly Vector2[] _positions = new Vector2[MaxCount];
private readonly float[] _radii = new float[MaxCount];
private int _count = 0;
public CP14ReligionVisionOverlay()
{
IoCManager.InjectDependencies(this);
@@ -40,12 +41,9 @@ public sealed class CP14ReligionVisionOverlay : Overlay
_transform = _entManager.System<SharedTransformSystem>();
if (_entManager.TryGetComponent<CP14ReligionEntityComponent>(_player.LocalEntity, out var vision))
{
_religion = vision.Religion;
}
}
protected override bool BeforeDraw(in OverlayDrawArgs args)
{
if (args.Viewport.Eye == null)