Skip to content

Commit

Permalink
Fix EncounterRaid9 Nature
Browse files Browse the repository at this point in the history
  • Loading branch information
Manu098vm committed Dec 8, 2023
1 parent 13b3ee2 commit 9668ced
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion TeraFinder.Core/Classes/EncounterRaid9.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public ushort GetRandRateMinViolet(int stage = 0)

private Nature GetNature()
{
if (Encounter is EncounterMight9 or PKHeX.Core.EncounterMight9)
if (Encounter is not EncounterTera9)
return ((dynamic)Encounter).Nature;

return Nature.Random;
Expand Down
12 changes: 6 additions & 6 deletions TeraFinder.Core/Utils/EventUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ public static string[] GetEventItemDataFromSAV(PKHeX.Core.SAV9SV sav)
var opt = new JsonSerializerOptions { WriteIndented = true };
var drops = JsonSerializer.Serialize(tableDrops, opt);
var lottery = JsonSerializer.Serialize(tableBonus, opt);
return new string[2] { drops, lottery };
return [drops, lottery];
}

var drops_def = Encoding.UTF8.GetString(Properties.Resources.raid_fixed_reward_item_array);
var lottery_def = Encoding.UTF8.GetString(Properties.Resources.raid_lottery_reward_item_array);
return new string[2] { drops_def, lottery_def };
return [drops_def, lottery_def];
}

public static byte[][] GetEventEncounterDataFromSAV(PKHeX.Core.SAV9SV sav)
Expand Down Expand Up @@ -209,9 +209,9 @@ private static void TryAddToPickle(RaidEnemyInfo enc, ICollection<byte[]> list,

private static readonly int[][] StageStars =
{
new [] { 1, 2 },
new [] { 1, 2, 3 },
new [] { 1, 2, 3, 4 },
new [] { 3, 4, 5, 6, 7 },
[1, 2],
[1, 2, 3],
[1, 2, 3, 4],
[3, 4, 5, 6, 7],
};
}

0 comments on commit 9668ced

Please sign in to comment.