2021-09-06 15:49:44 +02:00
|
|
|
using Content.Shared.Chemistry.Components;
|
2021-06-09 22:19:39 +02:00
|
|
|
using Content.Shared.Chemistry.Reaction;
|
|
|
|
|
using Content.Shared.Chemistry.Reagent;
|
2021-03-21 09:12:03 -07:00
|
|
|
using Robust.Shared.Audio;
|
2021-02-11 01:13:03 -08:00
|
|
|
using Robust.Shared.GameObjects;
|
2021-03-21 09:12:03 -07:00
|
|
|
using Robust.Shared.Player;
|
2021-01-14 01:06:23 -06:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Chemistry.EntitySystems
|
2021-01-14 01:06:23 -06:00
|
|
|
{
|
|
|
|
|
public class ChemicalReactionSystem : SharedChemicalReactionSystem
|
|
|
|
|
{
|
2021-09-06 15:49:44 +02:00
|
|
|
protected override void OnReaction(Solution solution, ReactionPrototype reaction, IEntity owner, ReagentUnit unitReactions)
|
2021-01-14 01:06:23 -06:00
|
|
|
{
|
2021-09-06 15:49:44 +02:00
|
|
|
base.OnReaction(solution, reaction, owner, unitReactions);
|
2021-01-14 01:06:23 -06:00
|
|
|
|
2021-08-18 23:36:57 +02:00
|
|
|
SoundSystem.Play(Filter.Pvs(owner), reaction.Sound.GetSound(), owner);
|
2021-01-14 01:06:23 -06:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|