moved a bit of IonStorm code elsewhere
This commit is contained in:
@@ -4,6 +4,7 @@ using Content.Server.StationEvents.Components;
|
||||
using Content.Shared.GameTicking.Components;
|
||||
using Content.Shared.Silicons.Laws;
|
||||
using Content.Shared.Silicons.Laws.Components;
|
||||
using Content.Shared.Station.Components;
|
||||
|
||||
namespace Content.Server.StationEvents.Events;
|
||||
|
||||
@@ -21,6 +22,10 @@ public sealed class IonStormRule : StationEventSystem<IonStormRuleComponent>
|
||||
var query = EntityQueryEnumerator<SiliconLawBoundComponent, TransformComponent, IonStormTargetComponent>();
|
||||
while (query.MoveNext(out var ent, out var lawBound, out var xform, out var target))
|
||||
{
|
||||
// only affect law holders on the station
|
||||
if (CompOrNull<StationMemberComponent>(xform.GridUid)?.Station != chosenStation)
|
||||
continue;
|
||||
|
||||
_ionStorm.IonStormTarget(ent, lawBound, xform, target, chosenStation);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user