using Content.Shared.Polymorph;
using Robust.Shared.Prototypes;
namespace Content.Shared.EntityEffects.Effects;
///
public sealed partial class Polymorph : EntityEffectBase
{
///
/// Polymorph configuration to apply.
///
[DataField(required: true)]
public ProtoId Prototype;
///
/// Allows polymorphing entities without a PolymorphableComponent.
/// Cooldowns and restrictions on repeated polymorphs still apply.
///
[DataField]
public bool Force;
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
=> Loc.GetString("entity-effect-guidebook-make-polymorph",
("chance", Probability),
("entityname", prototype.Index(prototype.Index(Prototype).Configuration.Entity).Name));
}