Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Oct 21, 2024
1 parent efeac1b commit d0d939d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Content.Server/Supermatter/EntitySystems/SupermatterSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ private void ProcessPower(EntityUid uid, SupermatterComponent sm)
var damageExternal = sm.AVExternalDamage + strength;
sm.AVExternalDamage = 0f;

sm.AVHeatAccumulator += damageExternal * sm.HeatAccumulatorRate;
sm.AVRadiationAccumulator += damageExternal * sm.RadiationAccumulatorRate;
sm.AVLightingAccumulator += damageExternal * sm.LightingAccumulatorRate;
sm.InternalEnergy += damageExternal * sm.InternalEnergyAccumulatorRate;
sm.AVHeatAccumulator = Math.Clamp(sm.AVHeatAccumulator + (damageExternal * sm.HeatAccumulatorRate), 0, 10);
sm.AVRadiationAccumulator = Math.Clamp(sm.AVRadiationAccumulator + (damageExternal * sm.RadiationAccumulatorRate), 0, 10);
sm.AVLightingAccumulator = Math.Clamp(sm.AVLightingAccumulator + (damageExternal * sm.LightingAccumulatorRate), 0, 10);
sm.InternalEnergy = Math.Clamp(sm.InternalEnergy + (damageExternal * sm.InternalEnergyAccumulatorRate), 0, 10);

if (sm.AVLightingAccumulator > sm.LightingAccumulatorThreshold)
{
Expand Down

0 comments on commit d0d939d

Please sign in to comment.