Skip to content

Commit

Permalink
Style fix + remove unremoved PackedScene effect
Browse files Browse the repository at this point in the history
  • Loading branch information
CI09 committed Jun 22, 2024
1 parent 284710a commit abf29e8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/microbe_stage/systems/PilusDamageSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using DefaultEcs;
using DefaultEcs.System;
using DefaultEcs.Threading;
using Godot;

/// <summary>
/// Handles applying pilus damage to microbes
Expand All @@ -22,11 +21,10 @@
[RuntimeCost(1)]
public sealed class PilusDamageSystem : AEntitySetSystem<float>
{
private PackedScene burstEffect = GD.Load<PackedScene>("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;
}
Expand Down Expand Up @@ -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<WorldPosition>().Position, 0.5f);
SpawnHelpers.SpawnCellBurstEffect(worldSimulation, collision.SecondEntity.Get<WorldPosition>()
.Position, 0.5f);
}
}

Expand Down

0 comments on commit abf29e8

Please sign in to comment.