Skip to content

Commit

Permalink
Микро изменение в работе СМа
Browse files Browse the repository at this point in the history
  • Loading branch information
BL02DL committed Sep 18, 2024
1 parent b61bd87 commit 549da5b
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 549da5b

Please sign in to comment.