Move TimedDespawn to engine (#20515)

This commit is contained in:
metalgearsloth
2023-09-30 14:35:32 +10:00
committed by GitHub
parent 4a884cda6c
commit 3a196a1d09
21 changed files with 35 additions and 120 deletions

View File

@@ -1,5 +1,4 @@
using Content.Shared.Radiation.Systems;
using Content.Shared.Spawners.Components;
namespace Content.Shared.Radiation.Components;
@@ -18,7 +17,7 @@ public sealed partial class RadiationPulseComponent : Component
/// <summary>
/// How long will animation play in seconds.
/// Can be overridden by <see cref="TimedDespawnComponent"/>.
/// Can be overridden by <see cref="Robust.Shared.Spawners.TimedDespawnComponent"/>.
/// </summary>
public float VisualDuration = 2f;

View File

@@ -1,5 +1,5 @@
using Content.Shared.Radiation.Components;
using Content.Shared.Spawners.Components;
using Robust.Shared.Spawners;
using Robust.Shared.Timing;
namespace Content.Shared.Radiation.Systems;
@@ -25,7 +25,7 @@ public sealed class RadiationPulseSystem : EntitySystem
}
// try to get radiation range or keep default visual range
if (TryComp<RadiationSourceComponent>(uid, out var radSource))
{
{
component.VisualRange = radSource.Intensity / radSource.Slope;
}
}