@@ -184,7 +184,10 @@ namespace Content.Server.Polymorph.Systems
|
||||
|
||||
var act = new InstantAction()
|
||||
{
|
||||
Event = new PolymorphActionEvent(polyproto),
|
||||
Event = new PolymorphActionEvent()
|
||||
{
|
||||
Prototype = polyproto,
|
||||
},
|
||||
Name = Loc.GetString("polymorph-self-action-name", ("target", entproto.Name)),
|
||||
Description = Loc.GetString("polymorph-self-action-description", ("target", entproto.Name)),
|
||||
Icon = new SpriteSpecifier.EntityPrototype(polyproto.Entity),
|
||||
@@ -224,11 +227,6 @@ namespace Content.Server.Polymorph.Systems
|
||||
/// The polymorph prototype containing all the information about
|
||||
/// the specific polymorph.
|
||||
/// </summary>
|
||||
public readonly PolymorphPrototype Prototype;
|
||||
|
||||
public PolymorphActionEvent(PolymorphPrototype prototype)
|
||||
{
|
||||
Prototype = prototype;
|
||||
}
|
||||
public PolymorphPrototype Prototype = default!;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user