mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
Minor clean
This commit is contained in:
parent
731a3fdc3b
commit
cee97ada26
7 changed files with 5 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
|
||||
namespace PKHeX.Core;
|
||||
|
||||
|
@ -8,7 +8,6 @@ namespace PKHeX.Core;
|
|||
/// <remarks>
|
||||
/// Different from <see cref="GroundTileAllowed"/>, this corresponds to the method that the <see cref="IEncounterTemplate"/> may be encountered.</remarks>
|
||||
[Flags]
|
||||
#pragma warning disable RCS1191 // Declare enum value as combination of names.
|
||||
public enum SlotType : byte
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -3,9 +3,7 @@ using System;
|
|||
namespace PKHeX.Core;
|
||||
|
||||
[Flags]
|
||||
#pragma warning disable RCS1154 // Sort enum members.
|
||||
public enum MoveSourceType
|
||||
#pragma warning restore RCS1154 // Sort enum members.
|
||||
{
|
||||
None,
|
||||
LevelUp = 1 << 0,
|
||||
|
|
|
@ -48,7 +48,7 @@ public sealed class LegalInfo : IGeneration
|
|||
public EvolutionHistory EvoChainsAllGens => _evochains ??= EvolutionChain.GetEvolutionChainsAllGens(Entity, EncounterMatch);
|
||||
private EvolutionHistory? _evochains;
|
||||
|
||||
/// <summary><see cref="RNG"/> related information that generated the <see cref="PKM.PID"/>/<see cref="PKM.IVs"/> value(s).</summary>
|
||||
/// <summary>RNG related information that generated the <see cref="PKM.PID"/>/<see cref="PKM.IVs"/> value(s).</summary>
|
||||
public PIDIV PIDIV
|
||||
{
|
||||
get => _pidiv;
|
||||
|
@ -66,7 +66,7 @@ public sealed class LegalInfo : IGeneration
|
|||
/// <remarks>This boolean is true until all valid <see cref="PIDIV"/> encounters are tested, after which it is false.</remarks>
|
||||
public bool PIDIVMatches { get; internal set; } = true;
|
||||
|
||||
/// <summary>Indicates whether or not the <see cref="PIDIV"/> can originate from the <see cref="EncounterMatch"/> with explicit <see cref="RNG"/> <see cref="Frame"/> matching.</summary>
|
||||
/// <summary>Indicates whether or not the <see cref="PIDIV"/> can originate from the <see cref="EncounterMatch"/> with explicit RNG <see cref="Frame"/> matching.</summary>
|
||||
/// <remarks>This boolean is true until all valid <see cref="Frame"/> entries are tested for all possible <see cref="EncounterSlot"/> matches, after which it is false.</remarks>
|
||||
public bool FrameMatches { get; internal set; } = true;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using static PKHeX.Core.GroundTileType;
|
||||
using static PKHeX.Core.GroundTileType;
|
||||
|
||||
namespace PKHeX.Core;
|
||||
|
||||
|
@ -8,7 +8,6 @@ namespace PKHeX.Core;
|
|||
/// <remarks>
|
||||
/// Used in Generation 4 games, this value is set depending on what type of overworld tile the player is standing on when the <see cref="PKM"/> is obtained.
|
||||
/// </remarks>
|
||||
#pragma warning disable RCS1234 // Duplicate enum value.
|
||||
public enum GroundTileType : byte
|
||||
{
|
||||
None = 00, // No animation for the tile
|
||||
|
@ -42,7 +41,6 @@ public enum GroundTileType : byte
|
|||
Distortion = 23,
|
||||
Max_Pt = 24, // Unspecific, catch-all for Pt undefined tiles.
|
||||
}
|
||||
#pragma warning restore RCS1234 // Duplicate enum value.
|
||||
|
||||
public static class GroundTileTypeExtensions
|
||||
{
|
||||
|
|
|
@ -299,8 +299,7 @@ public sealed class PK4 : G4PKM
|
|||
for (int i = PokeCrypto.SIZE_4STORED; i < PokeCrypto.SIZE_4RSTORED; i++)
|
||||
data[i] = 0;
|
||||
|
||||
RK4 rk4 = new RK4(data);
|
||||
rk4.OwnershipType = RanchOwnershipType.Hayley;
|
||||
var rk4 = new RK4(data) { OwnershipType = RanchOwnershipType.Hayley };
|
||||
|
||||
rk4.RefreshChecksum();
|
||||
return rk4;
|
||||
|
|
|
@ -4,7 +4,6 @@ namespace PKHeX.Core;
|
|||
|
||||
// ReSharper disable UnusedMember.Local
|
||||
#pragma warning disable IDE0051 // Remove unused private members
|
||||
#pragma warning disable RCS1213 // Remove unused member declaration.
|
||||
public sealed class SaveBlockAccessor8LA : SCBlockAccessor, ISaveBlock8LA
|
||||
{
|
||||
public override IReadOnlyList<SCBlock> BlockInfo { get; }
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
// ReSharper disable UnusedMember.Local
|
||||
#pragma warning disable IDE0051 // Remove unused private members
|
||||
#pragma warning disable RCS1213 // Remove unused member declaration.
|
||||
|
||||
namespace PKHeX.Core;
|
||||
|
||||
|
|
Loading…
Reference in a new issue