Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using Content.Shared.Projectiles;
using Content.Shared.Singularity.Components;
using Robust.Shared.Physics.Components;
using Content.Shared.ADT.Supermatter.Components; // ADT-tweak

namespace Content.Server.ParticleAccelerator.EntitySystems;

Expand Down Expand Up @@ -54,6 +55,21 @@ private void FireEmitter(EntityUid uid, ParticleAcceleratorPowerState strength,
_ => 0,
} * 10;
}
//ADT-tweak-start
if (TryComp<SupermatterFoodComponent>(emitted, out var sm))
{
// TODO: Unhardcode this, when wizards do this lmao.
sm.Energy = strength switch
{
ParticleAcceleratorPowerState.Standby => 0,
ParticleAcceleratorPowerState.Level0 => 1,
ParticleAcceleratorPowerState.Level1 => 150,
ParticleAcceleratorPowerState.Level2 => 300,
ParticleAcceleratorPowerState.Level3 => 1000, // Проверял
_ => 0,
};
}
//ADT-tweak-end

if (TryComp<ParticleProjectileComponent>(emitted, out var particle))
particle.State = strength;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
guides:
- SingularityTeslaEngine
- Power
- type: SupermatterFood # ADT-Tweak

- type: entity
name: anti particles
Expand Down Expand Up @@ -81,3 +82,7 @@
- type: SinguloFood
energy: -10
energyFactor: 0.97
# ADT-Tweak-Start
- type: SupermatterFood
energy: -250
# ADT-Tweak-End
Loading