Merge remote-tracking branch 'upstream/stable' into ed-21-07-2025-upstream-sync
# Conflicts: # Content.Client/Overlays/StencilOverlay.Weather.cs # Content.IntegrationTests/Tests/Atmos/AlarmThresholdTest.cs # Content.IntegrationTests/Tests/VendingMachineRestockTest.cs # Content.Server/Chat/Systems/ChatSystem.cs # Content.Server/Fluids/EntitySystems/PuddleSystem.cs # Content.Shared/Damage/Systems/SharedStaminaSystem.cs # Content.Shared/Fluids/Components/EvaporationComponent.cs # Content.Shared/GameTicking/SharedGameTicker.cs
This commit is contained in:
@@ -5,9 +5,9 @@ using Robust.Shared.Player;
|
||||
|
||||
namespace Content.Shared.StatusEffectNew;
|
||||
|
||||
public abstract partial class SharedStatusEffectsSystem
|
||||
public sealed partial class StatusEffectsSystem
|
||||
{
|
||||
protected void InitializeRelay()
|
||||
private void InitializeRelay()
|
||||
{
|
||||
//CP14 Zone
|
||||
SubscribeLocalEvent<StatusEffectContainerComponent, DamageModifyEvent>(RelayStatusEffectEvent);
|
||||
@@ -17,12 +17,12 @@ public abstract partial class SharedStatusEffectsSystem
|
||||
SubscribeLocalEvent<StatusEffectContainerComponent, LocalPlayerDetachedEvent>(RelayStatusEffectEvent);
|
||||
}
|
||||
|
||||
protected void RefRelayStatusEffectEvent<T>(EntityUid uid, StatusEffectContainerComponent component, ref T args) where T : struct
|
||||
private void RefRelayStatusEffectEvent<T>(EntityUid uid, StatusEffectContainerComponent component, ref T args) where T : struct
|
||||
{
|
||||
RelayEvent((uid, component), ref args);
|
||||
}
|
||||
|
||||
protected void RelayStatusEffectEvent<T>(EntityUid uid, StatusEffectContainerComponent component, T args) where T : class
|
||||
private void RelayStatusEffectEvent<T>(EntityUid uid, StatusEffectContainerComponent component, T args) where T : class
|
||||
{
|
||||
RelayEvent((uid, component), args);
|
||||
}
|
||||
@@ -31,7 +31,7 @@ public abstract partial class SharedStatusEffectsSystem
|
||||
{
|
||||
// this copies the by-ref event if it is a struct
|
||||
var ev = new StatusEffectRelayedEvent<T>(args);
|
||||
foreach (var activeEffect in statusEffect.Comp.ActiveStatusEffects)
|
||||
foreach (var activeEffect in statusEffect.Comp.ActiveStatusEffects?.ContainedEntities ?? [])
|
||||
{
|
||||
RaiseLocalEvent(activeEffect, ref ev);
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public abstract partial class SharedStatusEffectsSystem
|
||||
{
|
||||
// this copies the by-ref event if it is a struct
|
||||
var ev = new StatusEffectRelayedEvent<T>(args);
|
||||
foreach (var activeEffect in statusEffect.Comp.ActiveStatusEffects)
|
||||
foreach (var activeEffect in statusEffect.Comp.ActiveStatusEffects?.ContainedEntities ?? [])
|
||||
{
|
||||
RaiseLocalEvent(activeEffect, ref ev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user