This commit is contained in:
@@ -106,6 +106,11 @@ public class SerializedForm
|
||||
/// <inheritdoc cref="PkmnLib.Static.Species.IForm.Flags"/>
|
||||
public string[] Flags { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Check if the form is a battle-only form, meaning it should return to its original form after the battle ends.
|
||||
/// </summary>
|
||||
public bool IsBattleOnly { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Additional data that is not part of the standard form data.
|
||||
/// </summary>
|
||||
|
||||
@@ -108,7 +108,7 @@ public static class SpeciesDataLoader
|
||||
return new FormImpl(name, form.Height, form.Weight, form.BaseExp, types, DeserializeStats(form.BaseStats),
|
||||
form.Abilities.Select(x => new StringKey(x)).ToList(),
|
||||
form.HiddenAbilities.Select(x => new StringKey(x)).ToList(), DeserializeMoves(form.Moves),
|
||||
form.Flags.Select(x => new StringKey(x)).ToImmutableHashSet());
|
||||
form.Flags.Select(x => new StringKey(x)).ToImmutableHashSet(), form.IsBattleOnly || form.IsMega);
|
||||
}
|
||||
|
||||
private static ILearnableMoves DeserializeMoves(SerializedMoves moves)
|
||||
|
||||
Reference in New Issue
Block a user