Change what items can be fultoned while stopping anchored items from fultoning (#20628)
* Check and restrict players from fultoning their equipped items * Changed fulton whitelist to items and anchorables * Stop from anchored items being fultoned * Moved containermanager check to CanFulton function * review --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -11,7 +11,6 @@ namespace Content.Server.Salvage;
|
||||
public sealed class FultonSystem : SharedFultonSystem
|
||||
{
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
@@ -55,7 +54,8 @@ public sealed class FultonSystem : SharedFultonSystem
|
||||
{
|
||||
if (!Deleted(component.Beacon) &&
|
||||
TryComp<TransformComponent>(component.Beacon, out var beaconXform) &&
|
||||
!_container.IsEntityOrParentInContainer(component.Beacon.Value, xform: beaconXform))
|
||||
!Container.IsEntityOrParentInContainer(component.Beacon.Value, xform: beaconXform) &&
|
||||
CanFulton(uid))
|
||||
{
|
||||
var xform = Transform(uid);
|
||||
var metadata = MetaData(uid);
|
||||
|
||||
Reference in New Issue
Block a user