Skip to content

Commit

Permalink
fix blob core system
Browse files Browse the repository at this point in the history
  • Loading branch information
Roudenn committed Aug 20, 2024
1 parent 66da962 commit 6ee58f1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
19 changes: 10 additions & 9 deletions Content.Server/Backmen/Blob/BlobCoreSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,16 +267,17 @@ private void OnDestruction(EntityUid uid, BlobCoreComponent component, Destructi

if (isAllDie <= 1)
{
var blobFactoryQuery = EntityQueryEnumerator<BlobRuleComponent>();
while (blobFactoryQuery.MoveNext(out _, out var blobRuleComp))
var blobRuleQuery = EntityQueryEnumerator<BlobRuleComponent>();
while (blobRuleQuery.MoveNext(out _, out var blobRuleComp))
{
if (blobRuleComp.Stage != BlobStage.TheEnd ||
blobRuleComp.Stage != BlobStage.Default)
{
_alertLevelSystem.SetLevel(stationUid!.Value, "green", true, true, true);
_roundEndSystem.CancelRoundEndCountdown(null, false);
blobRuleComp.Stage = BlobStage.Default;
}
if (blobRuleComp.Stage == BlobStage.TheEnd ||
blobRuleComp.Stage == BlobStage.Default ||
stationUid == null)
continue;

_alertLevelSystem.SetLevel(stationUid.Value, "green", true, true, true);
_roundEndSystem.CancelRoundEndCountdown(null, false);
blobRuleComp.Stage = BlobStage.Default;
}
}
QueueDel(uid);
Expand Down
3 changes: 2 additions & 1 deletion Resources/Prototypes/_Backmen/Entities/Mobs/NPCs/blob.yml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@
state: blob_core_glow
# shader: unshaded
- state: blob_core_overlay

- type: WarpPoint
location: blob core

- type: entity
parent: CoreBlobTile
Expand Down

0 comments on commit 6ee58f1

Please sign in to comment.