2023-08-31 05:01:56 +03:00
|
|
|
using Content.Shared.Polymorph;
|
|
|
|
|
using Robust.Shared.Prototypes;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
|
2025-05-23 12:32:22 -04:00
|
|
|
namespace Content.Shared.EntityEffects.Effects;
|
2023-08-31 05:01:56 +03:00
|
|
|
|
2025-05-23 12:32:22 -04:00
|
|
|
public sealed partial class Polymorph : EventEntityEffect<Polymorph>
|
2023-08-31 05:01:56 +03:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// What polymorph prototype is used on effect
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("prototype", customTypeSerializer:typeof(PrototypeIdSerializer<PolymorphPrototype>))]
|
|
|
|
|
public string PolymorphPrototype { get; set; }
|
|
|
|
|
|
|
|
|
|
protected override string? ReagentEffectGuidebookText(IPrototypeManager prototype, IEntitySystemManager entSys)
|
|
|
|
|
=> Loc.GetString("reagent-effect-guidebook-make-polymorph",
|
|
|
|
|
("chance", Probability), ("entityname",
|
2024-02-01 08:17:02 -04:00
|
|
|
prototype.Index<EntityPrototype>(prototype.Index<PolymorphPrototype>(PolymorphPrototype).Configuration.Entity).Name));
|
2023-08-31 05:01:56 +03:00
|
|
|
}
|