MobReplacementRuleComponent.cs 572 B

123456789101112131415161718192021
  1. using Robust.Shared.Prototypes;
  2. namespace Content.Server.Antag.Mimic;
  3. /// <summary>
  4. /// Replaces the relevant entities with mobs when the game rule is started.
  5. /// </summary>
  6. [RegisterComponent]
  7. public sealed partial class MobReplacementRuleComponent : Component
  8. {
  9. // If you want more components use generics, using a whitelist would probably kill the server iterating every single entity.
  10. [DataField]
  11. public EntProtoId Proto = "MobMimic";
  12. /// <summary>
  13. /// Chance per-entity.
  14. /// </summary>
  15. [DataField]
  16. public float Chance = 0.004f;
  17. }