Adds battle history, fixes code style

This commit is contained in:
2024-08-23 09:24:00 +02:00
parent d48889e21a
commit e7dc885afd
21 changed files with 80 additions and 70 deletions

View File

@@ -166,7 +166,7 @@ public class FormImpl : IForm
return new AbilityIndex
{
IsHidden = false,
Index = (byte)i
Index = (byte)i,
};
}
for (var i = 0; i < HiddenAbilities.Count && i < 255; i++)
@@ -175,7 +175,7 @@ public class FormImpl : IForm
return new AbilityIndex
{
IsHidden = true,
Index = (byte)i
Index = (byte)i,
};
}
return null;

View File

@@ -17,5 +17,5 @@ public enum Gender : byte
/// <summary>
/// The Pokémon is female.
/// </summary>
Female
Female,
}

View File

@@ -28,5 +28,5 @@ public enum Statistic : byte
/// <summary>
/// Speed determines the order that a Pokémon can act in battle.
/// </summary>
Speed
Speed,
}

View File

@@ -63,7 +63,7 @@ public record ImmutableStatisticSet<T>
Statistic.SpecialAttack => SpecialAttack,
Statistic.SpecialDefense => SpecialDefense,
Statistic.Speed => Speed,
_ => throw new ArgumentException("Invalid statistic.")
_ => throw new ArgumentException("Invalid statistic."),
};
}
}