mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 06:34:19 +00:00
Update 22.05.08
This commit is contained in:
parent
a9443be8fa
commit
e34d03d2e5
12 changed files with 42 additions and 11 deletions
|
@ -106,7 +106,7 @@ namespace PKHeX.Core
|
|||
return;
|
||||
|
||||
sav.ApplyHandlingTrainerInfo(pk);
|
||||
if (pk is IScaledSize s)
|
||||
if (pk is IScaledSize { HeightScalar: 0, WeightScalar: 0 } s)
|
||||
{
|
||||
s.HeightScalar = PokeSizeUtil.GetRandomScalar();
|
||||
s.WeightScalar = PokeSizeUtil.GetRandomScalar();
|
||||
|
|
|
@ -25,6 +25,17 @@ public sealed record EncounterSlot8a : EncounterSlot, IAlpha, IMasteryInitialMov
|
|||
|
||||
public bool HasAlphaMove => IsAlpha && Type is not SlotType.Landmark;
|
||||
|
||||
protected override void ApplyDetails(ITrainerInfo sav, EncounterCriteria criteria, PKM pk)
|
||||
{
|
||||
base.ApplyDetails(sav, criteria, pk);
|
||||
|
||||
var pa = (PA8)pk;
|
||||
if (IsAlpha)
|
||||
pa.HeightScalarCopy = pa.HeightScalar = pa.WeightScalar = 255;
|
||||
pa.ResetHeight();
|
||||
pa.ResetWeight();
|
||||
}
|
||||
|
||||
protected override void SetPINGA(PKM pk, EncounterCriteria criteria)
|
||||
{
|
||||
base.SetPINGA(pk, criteria);
|
||||
|
|
|
@ -102,7 +102,7 @@ namespace PKHeX.Core
|
|||
|
||||
sav.ApplyHandlingTrainerInfo(pk);
|
||||
|
||||
if (pk is IScaledSize s)
|
||||
if (pk is IScaledSize { HeightScalar: 0, WeightScalar: 0 } s)
|
||||
{
|
||||
s.HeightScalar = PokeSizeUtil.GetRandomScalar();
|
||||
s.WeightScalar = PokeSizeUtil.GetRandomScalar();
|
||||
|
|
|
@ -196,8 +196,6 @@ public sealed class LegendsArceusVerifier : Verifier
|
|||
// Check if the move can be purchased; using a Mastery Seed checks the permission.
|
||||
if (pa.AlphaMove == moves[i])
|
||||
return; // Previously checked.
|
||||
if (data.EncounterMatch is IAlpha { IsAlpha: true } && CanMasterMoveFromMoveShop(moves[i], moves, bits))
|
||||
return; // Alpha forced move.
|
||||
if (!bits[i])
|
||||
data.AddLine(GetInvalid(string.Format(LMoveShopMasterInvalid_0, ParseSettings.MoveStrings[moves[i]])));
|
||||
else if (!CanLearnMoveByLevelUp(data, pa, i, moves))
|
||||
|
|
|
@ -37,14 +37,12 @@ public static class MoveShop8MasteryExtensions
|
|||
|
||||
// Can only purchase a move if it is not already in the available learnset.
|
||||
var learnLevel = learn.GetMoveLevel(move);
|
||||
if (learnLevel <= level)
|
||||
if ((uint)learnLevel <= level)
|
||||
return false;
|
||||
|
||||
// Can only purchase an Alpha Move if it was pre-1.1 patch.
|
||||
if (move == alpha && allowPurchasedAlpha)
|
||||
continue;
|
||||
|
||||
return false;
|
||||
if (move == alpha && !allowPurchasedAlpha)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -12,7 +12,7 @@
|
|||
<ApplicationIcon>Resources\icon.ico</ApplicationIcon>
|
||||
<StartupObject>PKHeX.WinForms.Program</StartupObject>
|
||||
<AssemblyName>PKHeX</AssemblyName>
|
||||
<Version>22.03.18</Version>
|
||||
<Version>22.05.08</Version>
|
||||
<LangVersion>10</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -1,7 +1,31 @@
|
|||
PKHeX - By Kaphotics
|
||||
http://projectpokemon.org/pkhex/
|
||||
|
||||
22/03/18 - New Update:
|
||||
22/05/08 - New Update:
|
||||
- Legality:
|
||||
- - Added: PLA move mastery/purchased flags are now legality checked thoroughly. Thanks @Lusamine & @Atrius97 !
|
||||
- - Added: PLA event gifts are now checked for their date obtained.
|
||||
- - Added: BDSP Darkrai & Arceus encounter data.
|
||||
- - Fixed: Gen4 Roamers now allowed in Route 45 if the tile it was encountered on is not water.
|
||||
- - Fixed: BDSP/PLA encounters are now flagged if they have a SWSH Mark.
|
||||
- Added: Gen3 RSBox Japanese save files & memory cards are now supported. Thanks @SynapseProperty !
|
||||
- Added: Gen2/3 Mail Editor now allows swapping mail slots if you rearrange party data.
|
||||
- Added: Batch Editor can now $rand & $suggest EVs.
|
||||
- Added: Deleting clones from the PKM Database window now deletes clones in the save file. Box->Delete Clones works fine too.
|
||||
- Fixed: Deleting clones from the PKM Database window now correctly deletes all the extra clones.
|
||||
- Fixed: Gen8 BDSP save files that have an invalid patch revision value can no longer be loaded (bad rom hacks!)
|
||||
- Fixed: Gen7 Inventory editing now retains the Free Space sort index when saving. Thanks @RainThunder !
|
||||
- Fixed: Gen6 Hall of Fame editing now saves the TID/SID correctly.
|
||||
- Fixed: Gen4 Battle Hall editing now works correctly in the Misc Editor.
|
||||
- Fixed: Gen4 SaveFile PCD/PGT collection editing now shows the Lock Capsule PCD slot, resists bad slot swaps, and no longer encrypts item PGTs. Thanks @DeadSkullzJr !
|
||||
- Fixed: Gen2 Mail now edits the caption message correctly. Thanks @WonderSquid !
|
||||
- Changed: Drag & Drop of PKMs out of the program into Discord now works! Hold shift when dropping to immediately send the file.
|
||||
- Changed: Internal refactorings to reduce allocation, increase performance. PokeCrypto, GeniusCrypto, EvoCriteria, PKX.
|
||||
- Changed: Gender sprites in the main window now show colored images instead of colored strings. Looks prettier!
|
||||
- Changed: Gen8 PLA encounters now generate with a more accurate RNG correlation, resulting in valid entity seeds.
|
||||
- Changed: Gen8 PLA noble sprites now show more detail. Still not legal to have in your save file.
|
||||
|
||||
22/03/18 - New Update: (144283) [4814091]
|
||||
- Added support for BDSP v1.3 save data format.
|
||||
- Legality:
|
||||
- - Added: Experience above level 100 is now checked.
|
||||
|
|
Loading…
Reference in a new issue