mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 08:37:26 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user