while (query.MoveNext(out var update))
{
SetLaws(lawset, update);
+ if (provider.LawUploadSound != null && _mind.TryGetMind(update, out var mindId, out _))
+ _roles.MindPlaySound(mindId, provider.LawUploadSound);
}
}
}
using Robust.Shared.Prototypes;
+using Robust.Shared.Audio;
namespace Content.Shared.Silicons.Laws.Components;
/// </summary>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public SiliconLawset? Lawset;
+
+ /// <summary>
+ /// The sound that plays for the Silicon player
+ /// when the particular lawboard has been inserted.
+ /// </summary>
+ [DataField]
+ public SoundSpecifier? LawUploadSound = new SoundPathSpecifier("/Audio/Misc/cryo_warning.ogg");
+
}
license: "CC-BY-SA-3.0"
copyright: "Made by @ps3moira on github"
source: https://www.youtube.com/watch?v=4-R-_DiqiLo
+- files: ["silicon_lawboard_antimov.ogg"]
+ license: "CC-BY-SA-3.0"
+ copyright: "Made by @ps3moira on Discord for SS14"
+ source: "https://www.youtube.com/watch?v=jf1sYGYVLsw"
copyright: "Taken from TG station."
source: "https://github.com/tgstation/tgstation/blob/2f63c779cb43543cfde76fa7ddaeacfde185fded/sound/effects/ratvar_reveal.ogg"
+- files: ["cryo_warning.ogg"]
+ license: "CC-BY-SA-3.0"
+ copyright: "Taken from TG station."
+ source: "https://github.com/tgstation/tgstation/blob/00cf2da5f785c110b9930077b3202f1a4638e1fd/sound/machines/cryo_warning.ogg"
+
- files: ["epsilon.ogg"]
license: "CC-BY-SA-3.0"
copyright: "Made by dj-34 (https://github.com/dj-34)"
state: std_mod
- type: SiliconLawProvider
laws: AntimovLawset
+ lawUploadSound: /Audio/Ambience/Antag/silicon_lawboard_antimov.ogg
- type: entity
id: NutimovCircuitBoard