Adds linting support to SoundCollectionPrototype, fix linter errors.

Closes #4580
This commit is contained in:
Vera Aguilera Puerto
2021-10-01 12:40:44 +02:00
parent ac9f0b39b0
commit 47107c6a42
13 changed files with 17 additions and 16 deletions

View File

@@ -55,7 +55,7 @@ namespace Content.Shared.Audio
public static string GetRandomFileFromSoundCollection(string name)
{
var soundCollection = IoCManager.Resolve<IPrototypeManager>().Index<SoundCollectionPrototype>(name);
return IoCManager.Resolve<IRobustRandom>().Pick(soundCollection.PickFiles);
return IoCManager.Resolve<IRobustRandom>().Pick(soundCollection.PickFiles).ToString();
}
}
}