Skip to content

Commit

Permalink
LostArtefacts#272 Excludable Enemies
Browse files Browse the repository at this point in the history
Adds a fix to ensure non-cross level enemy randomization can still be performed is selected.
  • Loading branch information
lahm86 committed Apr 26, 2022
1 parent f82bb88 commit fb5b8fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TRRandomizerCore/Randomizers/TR2/TR2EnemyRandomizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public override void Randomize(int seed)

private void RandomizeExistingEnemies()
{
_excludedEnemies = new List<TR2Entities>();
_resultantEnemies = new HashSet<TR2Entities>();

foreach (TR2ScriptedLevel lvl in Levels)
{
//Read the level into a combined data/script level object
Expand Down
3 changes: 3 additions & 0 deletions TRRandomizerCore/Randomizers/TR3/TR3EnemyRandomizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ public override void Randomize(int seed)

private void RandomizeExistingEnemies()
{
_excludedEnemies = new List<TR3Entities>();
_resultantEnemies = new HashSet<TR3Entities>();

foreach (TR3ScriptedLevel lvl in Levels)
{
//Read the level into a combined data/script level object
Expand Down

0 comments on commit fb5b8fe

Please sign in to comment.