Fix for Tesla Twins Miniboss (#41199)

* increase QA standards on the Tesla Generator production line

* comment

* Inert datafield and code

* I'm not even supposed to be here today
This commit is contained in:
Errant
2025-12-29 11:39:34 -06:00
committed by Vanessa
parent 99def04bbe
commit e234864fa3
2 changed files with 12 additions and 1 deletions
@@ -53,6 +53,9 @@ public sealed class SingularityGeneratorSystem : SharedSingularityGeneratorSyste
return;
SetPower(uid, 0, comp);
// Other particle entities from the same wave could trigger additional teslas to spawn, so we must block the generator
comp.Inert = true;
Spawn(comp.SpawnPrototype, Transform(uid).Coordinates);
}
@@ -112,7 +115,8 @@ public sealed class SingularityGeneratorSystem : SharedSingularityGeneratorSyste
if (!TryComp<SingularityGeneratorComponent>(args.OtherEntity, out var generatorComp))
return;
if (_timing.CurTime < _metadata.GetPauseTime(uid) + generatorComp.NextFailsafe && !generatorComp.FailsafeDisabled)
if (generatorComp.Inert ||
_timing.CurTime < generatorComp.NextFailsafe && !generatorComp.FailsafeDisabled)
{
QueueDel(uid);
return;