From: Vasilis Date: Sat, 11 Nov 2023 06:42:59 +0000 (+0100) Subject: stasis bed and microwave qol(#21572) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=909621ee5f2bf67cb8da617226e29f3c50148bc8;p=space-station-14.git stasis bed and microwave qol(#21572) --- diff --git a/Content.Server/Construction/Components/MachineFrameComponent.cs b/Content.Server/Construction/Components/MachineFrameComponent.cs index 16aba3bd17..75cc486f24 100644 --- a/Content.Server/Construction/Components/MachineFrameComponent.cs +++ b/Content.Server/Construction/Components/MachineFrameComponent.cs @@ -44,9 +44,4 @@ namespace Content.Server.Construction.Components [ViewVariables] public Container PartContainer = default!; } - - [DataDefinition] - public sealed partial class MachineDeconstructedEvent : EntityEventArgs - { - } } diff --git a/Content.Server/Containers/EmptyOnMachineDeconstructSystem.cs b/Content.Server/Containers/EmptyOnMachineDeconstructSystem.cs index c0cae8fdf7..77563dd31c 100644 --- a/Content.Server/Containers/EmptyOnMachineDeconstructSystem.cs +++ b/Content.Server/Containers/EmptyOnMachineDeconstructSystem.cs @@ -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; diff --git a/Content.Server/Materials/MaterialStorageSystem.cs b/Content.Server/Materials/MaterialStorageSystem.cs index b3626774c8..f485c4af3c 100644 --- a/Content.Server/Materials/MaterialStorageSystem.cs +++ b/Content.Server/Materials/MaterialStorageSystem.cs @@ -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; diff --git a/Content.Shared/Buckle/SharedBuckleSystem.Strap.cs b/Content.Shared/Buckle/SharedBuckleSystem.Strap.cs index 8616546480..7c449a5d8b 100644 --- a/Content.Shared/Buckle/SharedBuckleSystem.Strap.cs +++ b/Content.Shared/Buckle/SharedBuckleSystem.Strap.cs @@ -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(OnAttemptFold); SubscribeLocalEvent(OnStrapMoveEvent); + SubscribeLocalEvent((_, c, _) => StrapRemoveAll(c)); } private void OnStrapStartup(EntityUid uid, StrapComponent component, ComponentStartup args) diff --git a/Content.Shared/Construction/MachineDeconstructedEvent.cs b/Content.Shared/Construction/MachineDeconstructedEvent.cs new file mode 100644 index 0000000000..1f65e7941f --- /dev/null +++ b/Content.Shared/Construction/MachineDeconstructedEvent.cs @@ -0,0 +1,6 @@ +namespace Content.Shared.Construction; + +[DataDefinition] +public sealed partial class MachineDeconstructedEvent : EntityEventArgs +{ +} diff --git a/Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml b/Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml index 2aed92bc28..8e7c3aeb27 100644 --- a/Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml +++ b/Resources/Prototypes/Entities/Objects/Devices/Circuitboards/Machine/production.yml @@ -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 diff --git a/Resources/Prototypes/Entities/Structures/Machines/microwave.yml b/Resources/Prototypes/Entities/Structures/Machines/microwave.yml index 0a1a6f431f..586b4b0af0 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/microwave.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/microwave.yml @@ -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