This should fix the singularity generator. (#13121)

This commit is contained in:
TemporalOroboros
2022-12-20 15:54:56 -08:00
committed by GitHub
parent b13ce4b397
commit e5274542b9

View File

@@ -125,7 +125,9 @@ public sealed class SingularityGeneratorSystem : EntitySystem
{ {
if (EntityManager.TryGetComponent<SingularityGeneratorComponent?>(args.OtherFixture.Body.Owner, out var singularityGeneratorComponent)) if (EntityManager.TryGetComponent<SingularityGeneratorComponent?>(args.OtherFixture.Body.Owner, out var singularityGeneratorComponent))
{ {
singularityGeneratorComponent.Power += component.State switch SetPower(
singularityGeneratorComponent,
singularityGeneratorComponent.Power + component.State switch
{ {
ParticleAcceleratorPowerState.Standby => 0, ParticleAcceleratorPowerState.Standby => 0,
ParticleAcceleratorPowerState.Level0 => 1, ParticleAcceleratorPowerState.Level0 => 1,
@@ -133,7 +135,7 @@ public sealed class SingularityGeneratorSystem : EntitySystem
ParticleAcceleratorPowerState.Level2 => 4, ParticleAcceleratorPowerState.Level2 => 4,
ParticleAcceleratorPowerState.Level3 => 8, ParticleAcceleratorPowerState.Level3 => 8,
_ => 0 _ => 0
}; });
EntityManager.QueueDeleteEntity(uid); EntityManager.QueueDeleteEntity(uid);
} }
} }