Skip to content

Commit

Permalink
Lock HSC armoury items (#785)
Browse files Browse the repository at this point in the history
Resolves #783.
  • Loading branch information
lahm86 authored Nov 1, 2024
1 parent e929c08 commit 62b6df3
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
@@ -1,6 +1,7 @@
## [Unreleased](https://github.com/LostArtefacts/TR-Rando/compare/V1.9.3...master) - xxxx-xx-xx
- added (experimental) support for Linux (#143)
- changed the number of secrets in TR3R Coastal Village to four to match the statistics (#775)
- fixed being unable to pick-up some items in TR3R High Security Compound (#783)
- fixed unreachable item locations in Coastal Village (#774)
- fixed the cobra not rendering properly in TR3R if used cross-level (#782)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ public override void Randomize(int seed)
continue;
}

if (lvl.Is(TR3LevelNames.HSC))
{
// These can't be picked up if they are moved out of these rooms.
_levelInstance.Data.Entities.Where(e => TR3TypeUtilities.IsAnyPickupType(e.TypeID) && (e.Room == 167 || e.Room == 168))
.ToList()
.ForEach(e => ItemFactory.LockItem(_levelInstance.Name, _levelInstance.Data.Entities.IndexOf(e)));
}

_allocator.RandomizeItems(_levelInstance.Name, _levelInstance.Data,
_levelInstance.Script.RemovesWeapons, _levelInstance.Script.OriginalSequence, _levelInstance.HasExposureMeter);

Expand Down

0 comments on commit 62b6df3

Please sign in to comment.