stasis bed and microwave qol(#21572)

This commit is contained in:
Vasilis
2023-11-11 07:42:59 +01:00
committed by GitHub
parent 68c45ebc03
commit 909621ee5f
7 changed files with 15 additions and 16 deletions

View File

@@ -44,9 +44,4 @@ namespace Content.Server.Construction.Components
[ViewVariables]
public Container PartContainer = default!;
}
[DataDefinition]
public sealed partial class MachineDeconstructedEvent : EntityEventArgs
{
}
}

View File

@@ -1,4 +1,4 @@
using Content.Server.Construction.Components;
using Content.Shared.Construction;
using Content.Shared.Containers.ItemSlots;
using JetBrains.Annotations;
using Robust.Shared.Containers;

View File

@@ -4,8 +4,8 @@ using Content.Shared.Materials;
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;

View File

@@ -1,5 +1,6 @@
using System.Linq;
using Content.Shared.Buckle.Components;
using Content.Shared.Construction;
using Content.Shared.Destructible;
using Content.Shared.DragDrop;
using Content.Shared.Foldable;
@@ -31,6 +32,7 @@ public abstract partial class SharedBuckleSystem
SubscribeLocalEvent<StrapComponent, FoldAttemptEvent>(OnAttemptFold);
SubscribeLocalEvent<StrapComponent, MoveEvent>(OnStrapMoveEvent);
SubscribeLocalEvent<StrapComponent, MachineDeconstructedEvent>((_, c, _) => StrapRemoveAll(c));
}
private void OnStrapStartup(EntityUid uid, StrapComponent component, ComponentStartup args)

View File

@@ -0,0 +1,6 @@
namespace Content.Shared.Construction;
[DataDefinition]
public sealed partial class MachineDeconstructedEvent : EntityEventArgs
{
}

View File

@@ -755,17 +755,10 @@
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

View File

@@ -91,6 +91,9 @@
microwave_entity_container: !type:Container
machine_board: !type:Container
machine_parts: !type:Container
- type: EmptyOnMachineDeconstruct
containers:
- microwave_entity_container
- type: GuideHelp
guides:
- Chef