Dedupe lots of nutrition and fix usedelay (#6406)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user