Forcefeed DoAfters, again. (#5582)
This commit is contained in:
@@ -42,5 +42,16 @@ namespace Content.Server.Nutrition.Components
|
||||
|
||||
[DataField("burstSound")]
|
||||
public SoundSpecifier BurstSound = new SoundPathSpecifier("/Audio/Effects/flash_bang.ogg");
|
||||
|
||||
/// <summary>
|
||||
/// This is how many seconds it takes to force feed someone this drink.
|
||||
/// </summary>
|
||||
[DataField("forceFeedDelay")]
|
||||
public float ForceFeedDelay = 3;
|
||||
|
||||
/// <summary>
|
||||
/// If true, this drink has some DoAfter active (someone is being force fed).
|
||||
/// </summary>
|
||||
public bool InUse = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,10 +44,21 @@ namespace Content.Server.Nutrition.Components
|
||||
[DataField("utensilRequired")]
|
||||
public bool UtensilRequired = false;
|
||||
|
||||
|
||||
[DataField("eatMessage")]
|
||||
public string EatMessage = "food-nom";
|
||||
|
||||
/// <summary>
|
||||
/// This is how many seconds it takes to force feed someone this food.
|
||||
/// Should probably be smaller for small items like pills.
|
||||
/// </summary>
|
||||
[DataField("forceFeedDelay")]
|
||||
public float ForceFeedDelay = 3;
|
||||
|
||||
/// <summary>
|
||||
/// If true, this food has some DoAfter active (someone is being force fed).
|
||||
/// </summary>
|
||||
public bool InUse = false;
|
||||
|
||||
[ViewVariables]
|
||||
public int UsesRemaining
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user