diff --git a/src/microbe_stage/systems/PilusDamageSystem.cs b/src/microbe_stage/systems/PilusDamageSystem.cs index f6753034d2..ca0adb7a26 100644 --- a/src/microbe_stage/systems/PilusDamageSystem.cs +++ b/src/microbe_stage/systems/PilusDamageSystem.cs @@ -4,7 +4,6 @@ using DefaultEcs; using DefaultEcs.System; using DefaultEcs.Threading; -using Godot; /// /// Handles applying pilus damage to microbes @@ -22,11 +21,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 +84,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); } }