Adds battle history, fixes code style
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -17,5 +17,5 @@ public enum Gender : byte
|
||||
/// <summary>
|
||||
/// The Pokémon is female.
|
||||
/// </summary>
|
||||
Female
|
||||
Female,
|
||||
}
|
||||
@@ -28,5 +28,5 @@ public enum Statistic : byte
|
||||
/// <summary>
|
||||
/// Speed determines the order that a Pokémon can act in battle.
|
||||
/// </summary>
|
||||
Speed
|
||||
Speed,
|
||||
}
|
||||
@@ -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."),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user