diff --git a/src/microbe_stage/systems/PilusDamageSystem.cs b/src/microbe_stage/systems/PilusDamageSystem.cs index f6753034d2f..191a16d949c 100644 --- a/src/microbe_stage/systems/PilusDamageSystem.cs +++ b/src/microbe_stage/systems/PilusDamageSystem.cs @@ -22,11 +22,10 @@ [RuntimeCost(1)] public sealed class PilusDamageSystem : AEntitySetSystem { - private PackedScene burstEffect = GD.Load("res://src/microbe_stage/particles/CellBurstEffect.tscn"); - private IWorldSimulation worldSimulation; - public PilusDamageSystem(World world, IParallelRunner parallelRunner, IWorldSimulation worldSimulation) : base(world, parallelRunner) + public PilusDamageSystem(World world, IParallelRunner parallelRunner, IWorldSimulation worldSimulation) : + base(world, parallelRunner) { this.worldSimulation = worldSimulation; } @@ -86,7 +85,8 @@ protected override void Update(float delta, in Entity entity) } DealPilusDamage(ref ourExtraData, ref collision, collision.SecondEntity); - SpawnHelpers.SpawnCellBurstEffect(worldSimulation, collision.SecondEntity.Get().Position, 0.5f); + SpawnHelpers.SpawnCellBurstEffect(worldSimulation, collision.SecondEntity.Get() + .Position, 0.5f); } }