mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-09 02:07:12 -05:00
PA8: More tweaks to mastery setting
This commit is contained in:
@@ -107,15 +107,23 @@ public void SetMasteredFlag(Learnset learn, Learnset mastery, byte level, int in
|
||||
if (shop.GetMasteredRecordFlag(index))
|
||||
return;
|
||||
|
||||
if (learn.TryGetLevelLearnMove(move, out var learnLevel) && level < learnLevel) // Can't learn it yet; must purchase.
|
||||
if (learn.TryGetLevelLearnMove(move, out var learnLevel))
|
||||
{
|
||||
shop.SetPurchasedRecordFlag(index, true);
|
||||
shop.SetMasteredRecordFlag(index, true);
|
||||
return;
|
||||
if (level < learnLevel) // Can't learn it yet; must purchase.
|
||||
{
|
||||
shop.SetPurchasedRecordFlag(index, true);
|
||||
shop.SetMasteredRecordFlag(index, true);
|
||||
return;
|
||||
}
|
||||
if (mastery.TryGetLevelLearnMove(move, out var masterLevel) && level < masterLevel) // Can't master it yet; must Seed of Mastery
|
||||
shop.SetMasteredRecordFlag(index, true);
|
||||
// Otherwise, is innately mastered, no need to force the flag.
|
||||
}
|
||||
else // Can't learn it without purchasing.
|
||||
{
|
||||
if (shop.GetPurchasedRecordFlag(index))
|
||||
shop.SetMasteredRecordFlag(index, true);
|
||||
}
|
||||
|
||||
if (mastery.TryGetLevelLearnMove(move, out var masterLevel) && level < masterLevel) // Can't master it yet; must Seed of Mastery
|
||||
shop.SetMasteredRecordFlag(index, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user