ECS tags (#6504)
This commit is contained in:
@@ -10,6 +10,8 @@ namespace Content.Server.Singularity.EntitySystems
|
||||
{
|
||||
public sealed class ContainmentFieldGeneratorSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly TagSystem _tags = default!;
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
@@ -40,7 +42,7 @@ namespace Content.Server.Singularity.EntitySystems
|
||||
|
||||
private void HandleGeneratorCollide(EntityUid uid, ContainmentFieldGeneratorComponent component, StartCollideEvent args)
|
||||
{
|
||||
if (args.OtherFixture.Body.Owner.HasTag("EmitterBolt")) {
|
||||
if (_tags.HasTag(args.OtherFixture.Body.Owner, "EmitterBolt")) {
|
||||
component.ReceivePower(6);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user