-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(traits): add new trait Voracious
- Loading branch information
1 parent
62045ff
commit a3263b6
Showing
5 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
Content.Server/Traits/Assorted/ConsumeDelayModifierComponent.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Robust.Shared.GameStates; | ||
|
||
namespace Content.Shared.Traits.Assorted.Components; | ||
|
||
/// <summary> | ||
/// This is used for any trait that modifies how fast an entity consumes food and drinks. | ||
/// </summary> | ||
[RegisterComponent] | ||
public sealed partial class ConsumeDelayModifierComponent : Component | ||
{ | ||
/// <summary> | ||
/// What to multiply the eating delay by. | ||
/// </summary> | ||
[DataField] | ||
public float FoodDelayMultiplier { get; set; } = 1f; | ||
|
||
/// <summary> | ||
/// What to multiply the drinking delay by. | ||
/// </summary> | ||
[DataField] | ||
public float DrinkDelayMultiplier { get; set; } = 1f; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters