Fix debug assert in OnUpdateAlert of Cosmic Cult System (#5112)

This commit is contained in:
IRSMsoso 2026-01-03 05:41:50 -08:00 committed by GitHub
parent f7faf5c9c1
commit 2e024d43cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -76,9 +76,8 @@ public sealed partial class CosmicCultSystem : SharedCosmicCultSystem
if (args.Alert.ID != ent.Comp.EntropyAlert) if (args.Alert.ID != ent.Comp.EntropyAlert)
return; return;
var entropy = Math.Clamp(ent.Comp.EntropyStored, 0, 14); var entropy = Math.Clamp(ent.Comp.EntropyStored, 0, 14);
var sprite = args.SpriteViewEnt.Comp; _sprite.LayerSetRsiState(args.SpriteViewEnt.AsNullable(), AlertVisualLayers.Base, $"base{entropy}");
_sprite.LayerSetRsiState((ent, sprite), AlertVisualLayers.Base, $"base{entropy}"); _sprite.LayerSetRsiState(args.SpriteViewEnt.AsNullable(), CultAlertVisualLayers.Counter, $"num{entropy}");
_sprite.LayerSetRsiState((ent, sprite), CultAlertVisualLayers.Counter, $"num{entropy}");
} }
#endregion #endregion