* Fix eating and drinking verbs showing up after a short delay and making your verb UI bounce * Usings fix * Usings fix * Usings fix * Usings fix * CVar fix * Predicted ppups * Openable predicted popup * Fix audio prediction
27 lines
808 B
C#
27 lines
808 B
C#
namespace Content.Shared.Body.Events;
|
|
|
|
// TODO REFACTOR THIS
|
|
// This will cause rates to slowly drift over time due to floating point errors.
|
|
// Instead, the system that raised this should trigger an update and subscribe to get-modifier events.
|
|
[ByRefEvent]
|
|
public readonly record struct ApplyMetabolicMultiplierEvent(
|
|
EntityUid Uid,
|
|
float Multiplier,
|
|
bool Apply)
|
|
{
|
|
/// <summary>
|
|
/// The entity whose metabolism is being modified.
|
|
/// </summary>
|
|
public readonly EntityUid Uid = Uid;
|
|
|
|
/// <summary>
|
|
/// What the metabolism's update rate will be multiplied by.
|
|
/// </summary>
|
|
public readonly float Multiplier = Multiplier;
|
|
|
|
/// <summary>
|
|
/// If true, apply the multiplier. If false, revert it.
|
|
/// </summary>
|
|
public readonly bool Apply = Apply;
|
|
}
|