Skip to content

Commit

Permalink
Merge pull request zsrtp#38 from icogn/beyondPointOwnDungeonKey
Browse files Browse the repository at this point in the history
Make beyondPoint hints respect same rules as Barren regarding itemAllowsBarrenForArea
  • Loading branch information
lunarsoap5 committed May 28, 2024
2 parents fd6f13a + 087b7d7 commit a49d269
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Generator/Hints/HintGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,7 @@ private void CreateBeyondPointHints(SpotToHints spotToHints, bool placeHintsOnSp
.Category(beyondPointObj.category)
.ResolveToChecks();

AreaId areaId = AreaId.Zone(zone);
List<string> checksToHint = new();
bool hasImportantCheck = false;
foreach (string checkName in checkNames)
Expand All @@ -915,7 +916,14 @@ private void CreateBeyondPointHints(SpotToHints spotToHints, bool placeHintsOnSp
)
{
checksToHint.Add(checkName);
if (genData.CheckIsGood(checkName))

Item contents = HintUtils.getCheckContents(checkName);
bool itemAllowsBarrenForArea = genData.ItemAllowsBarrenForArea(
contents,
areaId
);

if (!itemAllowsBarrenForArea && genData.CheckIsGood(checkName))
{
hasImportantCheck = true;
break;
Expand Down

0 comments on commit a49d269

Please sign in to comment.