Skip to content

Commit

Permalink
Merge pull request #59 from Catobat/0.7-dev
Browse files Browse the repository at this point in the history
Fixed bug with elements being placed in inaccessible locations
  • Loading branch information
wjg999 authored Feb 27, 2023
2 parents 7ec9ef7 + 11d92b0 commit 91d68bf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RandomizerCore/Controllers/ShufflerController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class ShufflerController
public string RevName => RevisionIdentifier;

internal static string VersionIdentifier => "v0.7.0";
internal static string RevisionIdentifier => "alpha-rev3";
internal static string RevisionIdentifier => "alpha-rev3-hotfix";

public string SeedFilename =>
$"Minish Randomizer-{Shuffler.Seed}-{Shuffler.Version}-{Shuffler.GetOptionsIdentifier()}";
Expand Down
5 changes: 3 additions & 2 deletions RandomizerCore/Randomizer/Shuffler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ public void RandomizeLocations(bool useSphereBasedShuffler = false)
FilledLocations.AddRange(nextLocationGroup);

//Grab all items that we need to beat the seed
var allItems = MajorItems.Concat(DungeonMajorItems).Concat(DungeonEntrances).ToList();
var allItems = MajorItems.Concat(DungeonMajorItems).ToList();
var allItemsAndEntrances = MajorItems.Concat(DungeonMajorItems).Concat(DungeonEntrances).ToList();

//Like entrances, constraints shouldn't check logic when placing
//Shuffle constraints
Expand Down Expand Up @@ -526,7 +527,7 @@ public void RandomizeLocations(bool useSphereBasedShuffler = false)
//Shuffle dungeon minors
unfilledLocations.AddRange(FillLocationsFrontToBack(DungeonMinorItems,
unfilledLocations,
allItems));
allItemsAndEntrances));

unfilledLocations = unfilledLocations.Distinct().ToList();

Expand Down

0 comments on commit 91d68bf

Please sign in to comment.