Electrolysis and Centrifuge (#22517)

* electrolysis and centrifuge

* sprote

* final

* bomp!

* COUGH COUGH SPROTE

* boarsd
This commit is contained in:
Nemanja
2023-12-15 04:52:46 -05:00
committed by GitHub
parent 0349c53d0c
commit 2455980090
27 changed files with 478 additions and 4 deletions

View File

@@ -0,0 +1,29 @@
using Content.Server.Power.Components;
using Content.Server.Power.EntitySystems;
using Content.Shared.Chemistry.Components;
using Content.Shared.Chemistry.EntitySystems;
namespace Content.Server.Chemistry.EntitySystems;
/// <inheritdoc/>
public sealed class SolutionContainerMixerSystem : SharedSolutionContainerMixerSystem
{
/// <inheritdoc/>
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<SolutionContainerMixerComponent, PowerChangedEvent>(OnPowerChanged);
}
private void OnPowerChanged(Entity<SolutionContainerMixerComponent> ent, ref PowerChangedEvent args)
{
if (!args.Powered)
StopMix(ent);
}
protected override bool HasPower(Entity<SolutionContainerMixerComponent> entity)
{
return this.IsPowered(entity, EntityManager);
}
}