* Enable nullable in ReactionPrototype & ReagentPrototype * Remove unecessary sets * Fix updates branch * Review fixes Co-authored-by: py01 <pyronetics01@gmail.com>
20 lines
666 B
C#
20 lines
666 B
C#
#nullable enable
|
|
using Content.Shared.Chemistry;
|
|
using Content.Shared.GameObjects.EntitySystems;
|
|
using Robust.Server.GameObjects.EntitySystems;
|
|
using Robust.Shared.Interfaces.GameObjects;
|
|
|
|
namespace Content.Server.GameObjects.EntitySystems.NewFolder
|
|
{
|
|
public class ChemicalReactionSystem : SharedChemicalReactionSystem
|
|
{
|
|
protected override void OnReaction(ReactionPrototype reaction, IEntity owner, ReagentUnit unitReactions)
|
|
{
|
|
base.OnReaction(reaction, owner, unitReactions);
|
|
|
|
if (reaction.Sound != null)
|
|
Get<AudioSystem>().PlayAtCoords(reaction.Sound, owner.Transform.Coordinates);
|
|
}
|
|
}
|
|
}
|