Dedupe lots of nutrition and fix usedelay (#6406)

This commit is contained in:
metalgearsloth
2022-02-07 00:37:38 +11:00
committed by GitHub
parent da1007b7f1
commit dc38a8a149
10 changed files with 207 additions and 369 deletions

View File

@@ -12,7 +12,7 @@ namespace Content.Server.Nutrition.Components
{
[RegisterComponent]
[Friend(typeof(DrinkSystem))]
public class DrinkComponent : Component
public sealed class DrinkComponent : Component
{
[DataField("solution")]
public string SolutionName { get; set; } = DefaultSolutionName;
@@ -41,6 +41,12 @@ namespace Content.Server.Nutrition.Components
[DataField("burstSound")]
public SoundSpecifier BurstSound = new SoundPathSpecifier("/Audio/Effects/flash_bang.ogg");
/// <summary>
/// How long it takes to drink this yourself.
/// </summary>
[DataField("delay")]
public float Delay = 1;
/// <summary>
/// This is how many seconds it takes to force feed someone this drink.
/// </summary>