Merge remote-tracking branch 'upstream/master' into ed-16-02-2025-planet-light-upstream

# Conflicts:
#	Content.IntegrationTests/Tests/EntityTest.cs
#	Content.IntegrationTests/Tests/PostMapInitTest.cs
#	Content.Server/Medical/HealthAnalyzerSystem.cs
#	Content.Server/Procedural/DungeonSystem.Rooms.cs
#	Content.Server/Procedural/RoomFillComponent.cs
#	Content.Server/Procedural/RoomFillSystem.cs
#	Content.Shared/Inventory/InventorySystem.Relay.cs
#	Content.Shared/Projectiles/SharedProjectileSystem.cs
#	Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs
#	Resources/Prototypes/Maps/Pools/default.yml
#	Resources/migration.yml
This commit is contained in:
Ed
2025-02-16 11:58:47 +03:00
1174 changed files with 91314 additions and 230894 deletions

View File

@@ -550,6 +550,7 @@ public abstract class SharedActionsSystem : EntitySystem
if (!ValidateEntityTargetBase(user,
target,
comp.Whitelist,
comp.Blacklist,
comp.CheckCanInteract,
comp.CanTargetSelf,
comp.CheckCanAccess,
@@ -564,6 +565,7 @@ public abstract class SharedActionsSystem : EntitySystem
private bool ValidateEntityTargetBase(EntityUid user,
EntityUid? targetEntity,
EntityWhitelist? whitelist,
EntityWhitelist? blacklist,
bool checkCanInteract,
bool canTargetSelf,
bool checkCanAccess,
@@ -575,6 +577,9 @@ public abstract class SharedActionsSystem : EntitySystem
if (_whitelistSystem.IsWhitelistFail(whitelist, target))
return false;
if (_whitelistSystem.IsBlacklistPass(blacklist, target))
return false;
if (checkCanInteract && !_actionBlockerSystem.CanInteract(user, target))
return false;
@@ -649,6 +654,7 @@ public abstract class SharedActionsSystem : EntitySystem
var entityValidated = ValidateEntityTargetBase(user,
entity,
comp.Whitelist,
null,
comp.CheckCanInteract,
comp.CanTargetSelf,
comp.CheckCanAccess,
@@ -691,6 +697,9 @@ public abstract class SharedActionsSystem : EntitySystem
if (!action.RaiseOnUser && action.Container != null && !HasComp<MindComponent>(action.Container))
target = action.Container.Value;
if (action.RaiseOnAction)
target = actionId;
RaiseLocalEvent(target, (object) actionEvent, broadcast: true);
handled = actionEvent.Handled;
}