Implements more abilities
All checks were successful
Build / Build (push) Successful in 47s

This commit is contained in:
2025-06-09 12:10:25 +02:00
parent af0126e413
commit 00005aa4bf
50 changed files with 80425 additions and 20485 deletions

View File

@@ -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>

View File

@@ -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)