using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Shared.EntityEffects.Effects; [DataDefinition] public sealed partial class CreateEntityReactionEffect : EventEntityEffect { /// /// What entity to create. /// [DataField(required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string Entity = default!; /// /// How many entities to create per unit reaction. /// [DataField] public uint Number = 1; protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys) => Loc.GetString("reagent-effect-guidebook-create-entity-reaction-effect", ("chance", Probability), ("entname", IoCManager.Resolve().Index(Entity).Name), ("amount", Number)); }