Special digestion & kudzu-eating (#16061)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using Content.Server.Body.Components;
|
||||
using Content.Server.Chemistry.EntitySystems;
|
||||
using Content.Server.Nutrition.EntitySystems;
|
||||
using Content.Shared.FixedPoint;
|
||||
@@ -34,6 +35,25 @@ namespace Content.Server.Nutrition.Components
|
||||
[DataField("utensilRequired")]
|
||||
public bool UtensilRequired = false;
|
||||
|
||||
/// <summary>
|
||||
/// If this is set to true, eating this food will require you to have a stomach with a
|
||||
/// <see cref="StomachComponent.SpecialDigestible"/> that includes this entity in its whitelist,
|
||||
/// rather than just being digestible by anything that can eat food.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// TODO think about making this a little more complex, right now you cant disallow mobs from eating stuff
|
||||
/// that everyone else can eat
|
||||
/// </remarks>
|
||||
[DataField("requiresSpecialDigestion")]
|
||||
public bool RequiresSpecialDigestion = false;
|
||||
|
||||
/// <summary>
|
||||
/// Stomachs required to digest this entity.
|
||||
/// Used to simulate 'ruminant' digestive systems (which can digest grass)
|
||||
/// </summary>
|
||||
[DataField("requiredStomachs")]
|
||||
public int RequiredStomachs = 1;
|
||||
|
||||
/// <summary>
|
||||
/// The localization identifier for the eat message. Needs a "food" entity argument passed to it.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user