Play sound and request window on cloning (#8323)

ECS TBD. Fish did a pr but it was doing a lot at once.
This commit is contained in:
metalgearsloth
2022-05-28 11:32:07 +10:00
committed by GitHub
parent 643bf9cafc
commit 01763bd897
5 changed files with 21 additions and 5 deletions

View File

@@ -2,6 +2,7 @@ using System.Linq;
using Content.Server.Cloning.Components;
using Content.Server.Mind.Components;
using Content.Server.Power.Components;
using Content.Shared.Audio;
using Content.Shared.GameTicking;
using Content.Shared.Preferences;
using Robust.Shared.Timing;
@@ -54,6 +55,7 @@ namespace Content.Server.Cloning
public override void Update(float frameTime)
{
// TODO: Make this stateful
foreach (var (cloning, power) in EntityManager.EntityQuery<CloningPodComponent, ApcPowerReceiverComponent>())
{
if (cloning.UiKnownPowerState != power.Powered)