-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Description **Voracious** is a 1-point Physical trait that makes you eat and drink twice as fast. Inspired by the SS13 trait of the same name. Roughly based on the Parkstation implementation of Voracious by @DEATHB4DEFEAT. ## Technical Details The new component `ConsumeDelayModifierComponent` is rather generic, and can decrease or _increase_ the consumption speed of food and/or drinks. This gives room to add a negative trait that includes slower eating/drinking. ## Media ![image](https://github.com/user-attachments/assets/f8475b2a-de0b-4cae-83c6-8a280139bfd8) # Changelog :cl: Skubman add: Add the Voracious trait, a 1-point trait that makes you eat and drink twice as fast.
- Loading branch information
1 parent
1c26a10
commit 23fc467
Showing
5 changed files
with
48 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.Server.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