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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user