LightweightDrunkComponent.cs 536 B

123456789101112131415
  1. using Robust.Shared.GameStates;
  2. using Content.Shared.Drunk;
  3. namespace Content.Shared.Traits.Assorted;
  4. /// <summary>
  5. /// Used for the lightweight trait. DrunkSystem will check for this component and modify the boozePower accordingly if it finds it.
  6. /// </summary>
  7. [RegisterComponent, NetworkedComponent]
  8. [Access(typeof(SharedDrunkSystem))]
  9. public sealed partial class LightweightDrunkComponent : Component
  10. {
  11. [DataField("boozeStrengthMultiplier"), ViewVariables(VVAccess.ReadWrite)]
  12. public float BoozeStrengthMultiplier = 4f;
  13. }