Skip to content

Commit

Permalink
raise interaction events to add fibers to things
Browse files Browse the repository at this point in the history
  • Loading branch information
deltanedas committed Mar 4, 2025
1 parent 76a77de commit 0b34e54
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Content.Server/Silicons/Borgs/BorgSystem.Modules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ private void ProvideItems(EntityUid chassis, EntityUid uid, BorgChassisComponent
if (!component.ItemsCreated)
{
item = Spawn(itemProto, xform.Coordinates);
_interaction.DoContactInteraction(chassis, item); // DeltaV - give items fibers before they might be dropped
}
else
{
Expand Down
1 change: 1 addition & 0 deletions Content.Server/Silicons/Borgs/BorgSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public sealed partial class BorgSystem : SharedBorgSystem
[Dependency] private readonly ThrowingSystem _throwing = default!;
[Dependency] private readonly UserInterfaceSystem _ui = default!;
[Dependency] private readonly SharedContainerSystem _container = default!;
[Dependency] private readonly SharedInteractionSystem _interaction = default!; // DeltaV
[Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public sealed partial class HandPlaceholderSystem : EntitySystem
[Dependency] private readonly INetManager _net = default!;
[Dependency] private readonly SharedHandsSystem _hands = default!;
[Dependency] private readonly SharedContainerSystem _container = default!;
[Dependency] private readonly SharedInteractionSystem _interaction = default!; // DeltaV
[Dependency] private readonly SharedItemSystem _item = default!;
[Dependency] private readonly EntityWhitelistSystem _whitelist = default!;
[Dependency] private readonly MetaDataSystem _metadata = default!;
Expand Down Expand Up @@ -114,5 +115,6 @@ private void TryToPickUpTarget(Entity<HandPlaceholderComponent> ent, EntityUid t
placeComp.Whitelist = whitelist;
placeComp.Prototype = prototype;
Dirty(target, placeComp);
_interaction.DoContactInteraction(user, target); // DeltaV - borgs picking up items leaves fibers
}
}

0 comments on commit 0b34e54

Please sign in to comment.