Skip to content

Commit

Permalink
Merge pull request #159 from BL02DL/master
Browse files Browse the repository at this point in the history
Микро изменение в работе СМа
  • Loading branch information
SpicyDarkFox authored Sep 18, 2024
2 parents b61bd87 + 549da5b commit d916cf3
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions Content.Server/Supermatter/Systems/SupermatterSystem.Processing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,19 @@ private void ProcessAtmos(EntityUid uid, SupermatterComponent sm)
sm.Power = Math.Max(absorbedGas.Temperature * tempFactor / Atmospherics.T0C * powerRatio + sm.Power, 0);

// Irradiate stuff
if (TryComp<RadiationSourceComponent>(uid, out var rad))
rad.Intensity =
sm.Power
* Math.Max(0, 1f + transmissionBonus / 10f)
* 0.003f
* _config.GetCVar(CCVars.SupermatterRadsModifier);

// start _LostParadise

if (TryComp<RadiationSourceComponent>(uid, out var rad))
{
rad.Intensity = sm.Power * Math.Max(0, 1f + transmissionBonus / 10f) * 0.012f;
rad.Intensity = rad.Intensity > 30 ? 30 : rad.Intensity;
}
// Power * 0.55 * 0.8~1
var energy = sm.Power * sm.ReactionPowerModifier;

// end _LostParadise

// Keep in mind we are only adding this temperature to (efficiency)% of the one tile the rock is on.
// An increase of 4°C at 25% efficiency here results in an increase of 1°C / (#tilesincore) overall.
// Power * 0.55 * 1.5~23 / 5
Expand Down Expand Up @@ -409,4 +412,4 @@ private void HandleSoundLoop(EntityUid uid, SupermatterComponent sm)
if (ambient.Sound != sm.CurrentSoundLoop)
_ambient.SetSound(uid, sm.CurrentSoundLoop, ambient);
}
}
}

0 comments on commit d916cf3

Please sign in to comment.