Clean up polymorphsystem (#14297)

This commit is contained in:
Nemanja
2023-03-06 12:37:18 -05:00
committed by GitHub
parent 5a4ec17725
commit e412eda97c
12 changed files with 418 additions and 446 deletions

View File

@@ -27,7 +27,7 @@ namespace Content.Server.Disease.Effects
public override void Effect(DiseaseEffectArgs args)
{
EntityUid? polyUid = EntitySystem.Get<PolymorphableSystem>().PolymorphEntity(args.DiseasedEntity, PolymorphId);
EntityUid? polyUid = EntitySystem.Get<PolymorphSystem>().PolymorphEntity(args.DiseasedEntity, PolymorphId);
if (PolymorphSound != null && polyUid != null)
SoundSystem.Play(PolymorphSound.GetSound(), Filter.Pvs(polyUid.Value), polyUid.Value, AudioHelpers.WithVariation(0.2f));