Skip to content

Commit

Permalink
Revert "TEG can power itself when turned on" (#29434)
Browse files Browse the repository at this point in the history
Revert "TEG can power itself when turned on (#29072)"

This reverts commit 9f9cf08.
  • Loading branch information
PJB3005 authored Jun 25, 2024
1 parent 56c4e60 commit ebbe3c9
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Content.Server/Power/Generation/Teg/TegSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,7 @@ private void GeneratorUpdate(EntityUid uid, TegGeneratorComponent component, ref
// Turn energy (at atmos tick rate) into wattage.
var power = electricalEnergy / args.dt;
// Add ramp factor. This magics slight power into existence, but allows us to ramp up.
power *= component.RampFactor;

// Simulate TEG powering itself after being started up. This means that if LV is lost this keeps running.
const float load = 1000;
supplier.MaxSupply = Math.Max(power - load, 0);
powerReceiver.Load = Math.Max(load - power, 0);
supplier.MaxSupply = power * component.RampFactor;

var circAComp = Comp<TegCirculatorComponent>(circA);
var circBComp = Comp<TegCirculatorComponent>(circB);
Expand Down

0 comments on commit ebbe3c9

Please sign in to comment.