[ViewVariables]
public Container PartContainer = default!;
}
-
- [DataDefinition]
- public sealed partial class MachineDeconstructedEvent : EntityEventArgs
- {
- }
}
-using Content.Server.Construction.Components;
+using Content.Shared.Construction;
using Content.Shared.Containers.ItemSlots;
using JetBrains.Annotations;
using Robust.Shared.Containers;
using Content.Shared.Popups;
using Content.Shared.Stacks;
using Content.Server.Power.Components;
-using Content.Server.Construction.Components;
using Content.Server.Stack;
+using Content.Shared.Construction;
using Content.Shared.Database;
using JetBrains.Annotations;
using Robust.Shared.Map;
using System.Linq;
using Content.Shared.Buckle.Components;
+using Content.Shared.Construction;
using Content.Shared.Destructible;
using Content.Shared.DragDrop;
using Content.Shared.Foldable;
SubscribeLocalEvent<StrapComponent, FoldAttemptEvent>(OnAttemptFold);
SubscribeLocalEvent<StrapComponent, MoveEvent>(OnStrapMoveEvent);
+ SubscribeLocalEvent<StrapComponent, MachineDeconstructedEvent>((_, c, _) => StrapRemoveAll(c));
}
private void OnStrapStartup(EntityUid uid, StrapComponent component, ComponentStartup args)
--- /dev/null
+namespace Content.Shared.Construction;
+
+[DataDefinition]
+public sealed partial class MachineDeconstructedEvent : EntityEventArgs
+{
+}
prototype: StasisBed
requirements:
Capacitor: 1
+ Manipulator: 1
materialRequirements:
Cable: 3
- tagRequirements:
- Pipe:
- Amount: 1
- DefaultPrototype: GasPipeStraight
- ExamineName: Pipe
- Cryobeaker:
- Amount: 2
- DefaultPrototype: CryostasisBeaker
- ExamineName: Cryostasis Beaker
+ Steel: 2
- type: entity
id: MaterialReclaimerMachineCircuitboard
microwave_entity_container: !type:Container
machine_board: !type:Container
machine_parts: !type:Container
+ - type: EmptyOnMachineDeconstruct
+ containers:
+ - microwave_entity_container
- type: GuideHelp
guides:
- Chef