mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-10 03:36:55 -05:00
Update EncounterStatic8a.cs
This commit is contained in:
@@ -69,13 +69,9 @@ public PA8 ConvertToPKM(ITrainerInfo tr, EncounterCriteria criteria)
|
||||
Version = (int)Version,
|
||||
IsAlpha = IsAlpha,
|
||||
Ball = (byte)(FixedBall == Ball.None ? Ball.LAPoke : FixedBall),
|
||||
|
||||
HeightScalar = HasFixedHeight ? HeightScalar : PokeSizeUtil.GetRandomScalar(),
|
||||
WeightScalar = HasFixedWeight ? WeightScalar : PokeSizeUtil.GetRandomScalar(),
|
||||
Nickname = SpeciesName.GetSpeciesNameGeneration(Species, lang, Generation),
|
||||
};
|
||||
SetPINGA(pk, criteria);
|
||||
pk.Scale = pk.HeightScalar;
|
||||
pk.ResetHeight();
|
||||
pk.ResetWeight();
|
||||
SetEncounterMoves(pk, (byte)pk.Met_Level);
|
||||
@@ -97,6 +93,12 @@ private void SetPINGA(PA8 pk, EncounterCriteria criteria)
|
||||
|
||||
if (Method == EncounterStatic8aCorrelation.Fixed)
|
||||
pk.EncryptionConstant = Util.Rand32();
|
||||
|
||||
if (HasFixedHeight)
|
||||
pk.HeightScalar = HeightScalar;
|
||||
if (HasFixedWeight)
|
||||
pk.WeightScalar = WeightScalar;
|
||||
pk.Scale = pk.HeightScalar;
|
||||
}
|
||||
|
||||
private void SetEncounterMoves(PA8 pk, int level)
|
||||
|
||||
Reference in New Issue
Block a user