Skip to content

Commit

Permalink
Do not show 6-Star Species in the selector when Standard content type…
Browse files Browse the repository at this point in the history
… is selected
  • Loading branch information
Manu098vm committed Oct 4, 2023
1 parent 8ee6917 commit 6a9e64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TeraFinder.Core/Utils/TeraUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ private static int CalcStars(Xoroshiro128Plus xoro, GameProgress progress)
};
}

public static List<string> GetAvailableSpecies(SAV9SV sav, string[] species, string[] forms, string[] types, Dictionary<string, string> plugins,int stars, RaidContent content, TeraRaidMapParent map)
public static List<string> GetAvailableSpecies(SAV9SV sav, string[] species, string[] forms, string[] types, Dictionary<string, string> plugins, int stars, RaidContent content, TeraRaidMapParent map)
{
List<string> list = new();
var game = (GameVersion)sav.Game;
Expand All @@ -191,7 +191,7 @@ public static List<string> GetAvailableSpecies(SAV9SV sav, string[] species, str

foreach (var encounter in encounters)
{
if (encounter.Species > 0 && (encounter.Version is GameVersion.SV || encounter.Version == game) && (stars == 0 || encounter.Stars == stars))
if (encounter.Species > 0 && (encounter.Version is GameVersion.SV || encounter.Version == game) && ((stars == 0 && encounter.Stars != 6) || encounter.Stars == stars))
{
var formlist = FormConverter.GetFormList(encounter.Species, types, forms, GameInfo.GenderSymbolASCII, EntityContext.Gen9);
var str = $"{species[encounter.Species]}{(formlist.Length > 1 ? $"-{formlist[encounter.Form]}" : "")}";
Expand Down

0 comments on commit 6a9e64b

Please sign in to comment.