Revert "TEG can power itself when turned on" (#29434)

Revert "TEG can power itself when turned on (#29072)"

This reverts commit 9f9cf08d722d203baf0e6ddcf59b90c40fa40a32.
This commit is contained in:
Pieter-Jan Briers 2024-06-25 02:38:06 +02:00 committed by null
parent 77986fa170
commit 82db337c62
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
1 changed files with 1 additions and 6 deletions

View File

@ -181,12 +181,7 @@ public sealed class TegSystem : EntitySystem
// 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);