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 547fb97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/microbe_stage/systems/PilusDamageSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,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 +85,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 547fb97

Please sign in to comment.