Xenomorphs: Part 3 (#815)

* this is definitely one of the commits

* 1

* new facehuggers

* suffix

* Burst egg

* some fix

* Update Content.Server/_White/Xenomorphs/Queen/XenomorphQueenSystem.cs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update Content.Server/_White/Xenomorphs/Queen/XenomorphQueenSystem.cs

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update Resources/Locale/en-US/_white/objectives/conditions/steal-target-groups.ftl

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Update Content.Server/_White/Xenomorphs/FaceHugger/FaceHuggerSystem.cs

* Update Content.Server/_White/Xenomorphs/FaceHugger/FaceHuggerSystem.cs

* Update Resources/Locale/ru-RU/_white/prototypes/entities/mobs/player/pets.ftl

* Update Resources/Locale/ru-RU/WWDP_TRANSLATION/_white/prototypes/entities/structures/storage/glass_box.ftl

* Update Resources/Locale/ru-RU/_white/objectives/conditions/steal-target-groups.ftl

* Update Content.Server/_White/Xenomorphs/FaceHugger/FaceHuggerSystem.cs

* some fix

* SelfUnBuckleDelay

* Neurotoxin now stun

* PlasmaAmmoProvider

* some fix

* fix

* some number

---------

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Spatison
2025-08-30 22:40:47 +03:00
committed by GitHub
parent 7b502a53fc
commit bafdcfa459
82 changed files with 988 additions and 257 deletions

View File

@@ -4,12 +4,14 @@ using System.Linq;
using System.Numerics;
using Robust.Shared.Utility;
using Content.Server.Shuttles.Events;
using Content.Shared.Alert;
using Content.Shared.IdentityManagement;
namespace Content.Server.Pinpointer;
public sealed class PinpointerSystem : SharedPinpointerSystem
{
[Dependency] private readonly AlertsSystem _alerts = default!; // WD EDIT
[Dependency] private readonly SharedTransformSystem _transform = default!;
[Dependency] private readonly SharedAppearanceSystem _appearance = default!;
@@ -20,10 +22,28 @@ public sealed class PinpointerSystem : SharedPinpointerSystem
base.Initialize();
_xformQuery = GetEntityQuery<TransformComponent>();
// WD EDIT START
SubscribeLocalEvent<PinpointerComponent, MapInitEvent>(OnMapInit);
SubscribeLocalEvent<PinpointerComponent, ComponentShutdown>(OnShutdown);
// WD EDIT END
SubscribeLocalEvent<PinpointerComponent, ActivateInWorldEvent>(OnActivate);
SubscribeLocalEvent<FTLCompletedEvent>(OnLocateTarget);
}
// WD EDIT START
private void OnMapInit(EntityUid uid, PinpointerComponent component, MapInitEvent args)
{
if (component.Alert.HasValue)
_alerts.ShowAlert(uid, component.Alert.Value);
}
private void OnShutdown(EntityUid uid, PinpointerComponent component, ComponentShutdown args)
{
if (component.Alert.HasValue)
_alerts.ClearAlert(uid, component.Alert.Value);
}
// WD EDIT END
public override bool TogglePinpointer(EntityUid uid, PinpointerComponent? pinpointer = null)
{
if (!Resolve(uid, ref pinpointer))
@@ -48,7 +68,8 @@ public sealed class PinpointerSystem : SharedPinpointerSystem
if (args.Handled || !args.Complex)
return;
TogglePinpointer(uid, component);
if (component.CanToggle) // WD EDIT
TogglePinpointer(uid, component);
if (!component.CanRetarget)
LocateTarget(uid, component);
@@ -147,6 +168,7 @@ public sealed class PinpointerSystem : SharedPinpointerSystem
if (target == null || !EntityManager.EntityExists(target.Value))
{
SetDistance(uid, Distance.Unknown, pinpointer);
LocateTarget(uid, pinpointer); // WD EDIT
return;
}