Skip to content

Commit

Permalink
Fix Spell Permissions flags getting applied after classes blursings
Browse files Browse the repository at this point in the history
  • Loading branch information
wildham0 committed Dec 21, 2024
1 parent e6efc27 commit 1a79b54
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 8 additions & 0 deletions FF1Lib/Classes/ClassesData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,14 @@ public void SetMPMax(Flags flags)
_classes[(int)Classes.Ninja].MaxSpC = (byte)flags.NinjaMaxMP;
}

public void CustomSpellPermissions(Flags flags, MT19337 rng)
{
PinkMage(flags);
BlackKnight(flags);
WhiteNinja(flags);
Knightlvl4(flags, rng);
}

public void PinkMage(Flags flags)
{
if (!(bool)flags.PinkMage)
Expand Down
5 changes: 1 addition & 4 deletions FF1Lib/Randomize.cs
Original file line number Diff line number Diff line change
Expand Up @@ -353,12 +353,9 @@ public async Task Randomize(Blob seed, Flags flags, Preferences preferences)
ClassData.RaiseThiefHitRate(flags);
ClassData.BuffThiefAGI(flags);
ClassData.EarlierHighTierMagicCharges(flags);
ClassData.CustomSpellPermissions(flags, rng);
ClassData.Randomize(flags, rng, oldItemNames, ItemsText, this);
ClassData.ProcessStartWithRoutines(flags, weaponBlursesValues, this);
ClassData.PinkMage(flags);
ClassData.BlackKnight(flags);
ClassData.WhiteNinja(flags);
ClassData.Knightlvl4(flags, rng);
EnableRandomPromotions(flags, rng);

await this.Progress();
Expand Down

0 comments on commit 1a79b54

Please sign in to comment.