1
0

ClericalErrorRuleComponent.cs 757 B

1234567891011121314151617181920212223
  1. using Content.Server.StationEvents.Events;
  2. namespace Content.Server.StationEvents.Components;
  3. /// <summary>
  4. /// This is a station event that randomly removes some records from the station record database.
  5. /// </summary>
  6. [RegisterComponent]
  7. [Access(typeof(ClericalErrorRule))]
  8. public sealed partial class ClericalErrorRuleComponent : Component
  9. {
  10. /// <summary>
  11. /// The minimum percentage number of records to remove from the station.
  12. /// </summary>
  13. [DataField, ViewVariables(VVAccess.ReadWrite)]
  14. public float MinToRemove = 0.0025f;
  15. /// <summary>
  16. /// The maximum percentage number of records to remove from the station.
  17. /// </summary>
  18. [DataField, ViewVariables(VVAccess.ReadWrite)]
  19. public float MaxToRemove = 0.1f;
  20. }