Skip to content

Commit

Permalink
Randomize Torso eggs in TRUB (LostArtefacts#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 authored Jan 13, 2024
1 parent 2c436d7 commit debb311
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- fixed inaccurate pickup statistics in TR1 when playing one-item mode (#591)
- fixed additional secret rewards being placed in non-existent rooms when not randomizing secrets in TR1 (#591)
- fixed a secret becoming invisible after blowing up the final area in Bartoli's Hideout (#591)
- fixed Torso-sized eggs not being randomized in TRUB (#593)

## [V1.8.1](https://github.com/LostArtefacts/TR-Rando/compare/V1.8.0...V1.8.1) - 2023-12-15
- fixed floor data issues in mirrored levels in TRUB (#583)
Expand Down
8 changes: 8 additions & 0 deletions TRRandomizerCore/Randomizers/TR1/TR1EnemyRandomizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,14 @@ private EnemyTransportCollection SelectCrossLevelEnemies(TR1CombinedLevel level)
AmendToQLarson(level);
}

if (level.IsExpansion)
{
// Ensure big eggs are randomized by converting to normal ones because
// big eggs are never part of the enemy pool.
level.Data.Entities.FindAll(e => e.TypeID == TR1Type.AdamEgg)
.ForEach(e => e.TypeID = TR1Type.AtlanteanEgg);
}

RandoDifficulty difficulty = GetImpliedDifficulty();

// Get the list of enemy types currently in the level
Expand Down

0 comments on commit debb311

Please sign in to comment.