Clean up polymorphsystem (#14297)

This commit is contained in:
Nemanja
2023-03-06 12:37:18 -05:00
committed by GitHub
parent 5a4ec17725
commit e412eda97c
12 changed files with 418 additions and 446 deletions

View File

@@ -17,6 +17,6 @@ namespace Content.Server.Polymorph.Components
/// The polymorphs that the entity starts out being able to do.
/// </summary>
[DataField("innatePolymorphs", customTypeSerializer : typeof(PrototypeIdListSerializer<PolymorphPrototype>))]
public List<string>? InnatePolymorphs = null;
public List<string>? InnatePolymorphs;
}
}

View File

@@ -17,13 +17,13 @@ namespace Content.Server.Polymorph.Components
/// The original entity that the player will revert back into
/// </summary>
[DataField("parent", required: true)]
public EntityUid Parent = new();
public EntityUid Parent;
/// <summary>
/// The amount of time that has passed since the entity was created
/// used for tracking the duration
/// </summary>
[DataField("time")]
public float Time = 0;
public float Time;
}
}