Forcefeed DoAfters, again. (#5582)

This commit is contained in:
Leon Friedrich
2021-11-29 16:27:15 +13:00
committed by GitHub
parent 87f500c551
commit d0c5d72d47
10 changed files with 546 additions and 123 deletions

View File

@@ -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
{