Add more tiles and walls (#289)

This commit is contained in:
metalgearsloth
2019-08-10 22:17:49 +10:00
committed by Pieter-Jan Briers
parent d7505ca8b5
commit 4b30c7e710
257 changed files with 1158 additions and 128 deletions

View File

@@ -23,6 +23,7 @@ using Robust.Shared.Players;
using Robust.Shared.Prototypes;
using Content.Server.GameObjects.Components.Sound;
using Content.Shared.GameObjects.Components.Inventory;
using Robust.Shared.Log;
namespace Content.Server.GameObjects.EntitySystems
{
@@ -234,9 +235,17 @@ namespace Content.Server.GameObjects.EntitySystems
}
// Ok well we know the position of the
var soundCollection = _prototypeManager.Index<SoundCollectionPrototype>(soundCollectionName);
var file = _footstepRandom.Pick(soundCollection.PickFiles);
_audioSystem.Play(file, coordinates);
try
{
var soundCollection = _prototypeManager.Index<SoundCollectionPrototype>(soundCollectionName);
var file = _footstepRandom.Pick(soundCollection.PickFiles);
_audioSystem.Play(file, coordinates);
}
catch (UnknownPrototypeException)
{
// Shouldn't crash over a sound
Logger.ErrorS("sound", $"Unable to find sound collection for {soundCollectionName}");
}
}
}
}