]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Allow sound to play at the start of anomaly supercritical animation (#36260)
authorQuantum-cross <7065792+Quantum-cross@users.noreply.github.com>
Tue, 8 Apr 2025 09:11:32 +0000 (05:11 -0400)
committerGitHub <noreply@github.com>
Tue, 8 Apr 2025 09:11:32 +0000 (19:11 +1000)
commit716c0ef51f761b512c5297894a3a5a8fdc36d294
tree4c5a8390d97cfd05931c59f686a6e8323bdd8c41
parent5cc8b01e64c0e5e5d7e0f4af27c396fcb58a446d
Allow sound to play at the start of anomaly supercritical animation (#36260)

* Add datafield to AnomalyComponent to play a sound when an anomaly enters supercriticality

* use Entity<T> pattern

* use implicit default for nullable

* don't forget to resolve the AnomalyComponent...

* Add comment for StartSupercriticalEvent "ent" parameter

* use implicit casts from Entity<T> to EntityUid

* StartSupercriticalEvent requires AnomalyComponent to resolve
Content.Server/Anomaly/AnomalySystem.Commands.cs
Content.Shared/Anomaly/Components/AnomalyComponent.cs
Content.Shared/Anomaly/SharedAnomalySystem.cs