20 lines
734 B
C#
20 lines
734 B
C#
using Content.Shared.Polymorph;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.EntityEffects.Effects;
|
|
|
|
/// <inheritdoc cref="EntityEffect"/>
|
|
public sealed partial class Polymorph : EntityEffectBase<Polymorph>
|
|
{
|
|
/// <summary>
|
|
/// What polymorph prototype is used on effect
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public ProtoId<PolymorphPrototype> Prototype;
|
|
|
|
public override string EntityEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
|
=> Loc.GetString("entity-effect-guidebook-make-polymorph",
|
|
("chance", Probability),
|
|
("entityname", prototype.Index<EntityPrototype>(prototype.Index(Prototype).Configuration.Entity).Name));
|
|
}
|