Skip to content

Adjust logic for lore check in Maw cave#169

Merged
Jarno458 merged 1 commit intoJarno458:masterfrom
sgrunt:maw-lore-logic-fix
Apr 8, 2025
Merged

Adjust logic for lore check in Maw cave#169
Jarno458 merged 1 commit intoJarno458:masterfrom
sgrunt:maw-lore-logic-fix

Conversation

@sgrunt
Copy link

@sgrunt sgrunt commented Feb 10, 2025

Per discussion on Discord, if we get the warp to Maw cave, this location is not considered to be in logic without double jump; it's quite accessible without double jump (even if it necessitates fighting through a room with several enemies to do so).

Notably, the apworld logic for this check does not require double jump to get to the location, which I'd argue is correct.

Add(new ItemKey(6, 25, 152, 145), "Royal Towers: Journal - Near Bottom Struggle Juggle (Mission Findings)", null, MidRoyalTower & (FloodsFlags.CastleCourtyard ? R.Free : DoubleJumpOfNpc));
areaName = "Caves of Banishment (Maw)";
Add(new ItemKey(8, 36, 136, 145), "Caves of Banishment (Maw): Journal - Lower Left Caves (Naivety)", null, CavesOfBanishmentFlooded);
Add(new ItemKey(8, 36, 136, 145), "Caves of Banishment (Maw): Journal - Lower Left Caves (Naivety)", null, CavesOfBanishmentFlooded | (R.GateMaw & NeedSwimming(FloodsFlags.Maw)));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm somewhat sure (but not completely sure) that R.GateMaw only gets set if it's the designated warp location from Pyramid Key and/or Timeworn Warp Beacon, in which case the area's guaranteed not to be flooded, meaning this could probably be simplified to just | R.GateMaw.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct, but its also an implementation detail you likely wont think about when you review this code

@Jarno458 Jarno458 merged commit 80002f6 into Jarno458:master Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants