Skip to content

Commit

Permalink
Adjust mystery milk bottle logic
Browse files Browse the repository at this point in the history
Make it more likely to work with entrance shuffle.
  • Loading branch information
jcallen committed Mar 7, 2024
1 parent 672d2ac commit 5294c0e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions source/include/logic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ namespace Logic {
extern bool WoodfallFrog;
extern bool GreatBayFrog;
extern bool ThinBridgeCrystalChest;
extern bool MilkQuestStart;

extern bool CanGoToMoon;

Expand Down
4 changes: 3 additions & 1 deletion source/location_access.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ void AreaTable_Init() {

areaTable[STOCKPOTINN] = Area("Stock Pot Inn", "Stock Pot Inn", STOCKPOTINN, {
//Events
EventAccess(&MilkQuestStart, {[] {return CircusLeadersMask;}}),
},
{
//Locations
Expand Down Expand Up @@ -1283,12 +1284,13 @@ void AreaTable_Init() {

areaTable[GORMAN_TRACK] = Area("Gorman Track", "Gorman Track", NONE, {
//Events
EventAccess(&UsableMysteryMilkBottle, {[] {return MilkQuestStart && CircusLeadersMask && MysteryMilkBottle;}}), // Assumes that if you could start the quest, you can finish it
},
{
//Locations
LocationAccess(MILK_ROAD_GORMAN_RACE, {[]{return CanPlay(EponasSong);}}),
LocationAccess(MILK_ROAD_GORMAN_MILK_BUY, {[]{return AnyBottle;}}),
LocationAccess(GORMAN_TRACK_MYSTERY_MILK_QUEST, {[] {return CircusLeadersMask;}}),
LocationAccess(GORMAN_TRACK_MYSTERY_MILK_QUEST, {[] {return MilkQuestStart && CircusLeadersMask;}}),
},
{
//Exits
Expand Down
3 changes: 2 additions & 1 deletion source/logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ namespace Logic {
bool WoodfallFrog = false;
bool GreatBayFrog = false;
bool ThinBridgeCrystalChest = false;
bool MilkQuestStart = false;

bool CanGoToMoon = false;

Expand Down Expand Up @@ -497,7 +498,6 @@ namespace Logic {
//Item Helpers
AnyMagicBean = MagicBean || LimitlessBeans;
AnyWallet = Townwallet200 || OceanWallet500 || (ProgressiveWallet >= 1);
UsableMysteryMilkBottle = MysteryMilkBottle && CircusLeadersMask;
AnyBottle = WitchBottle || AlienBottle || BeaverRaceBottle || ArcheryBottle || GoronRaceBottle || ChateauBottle || UsableMysteryMilkBottle || HasBottle;
MagicMeter = (ProgressiveMagic >= 1) || MagicPower || ExtendedMagicPower;
WaterForBeans = (AnyBottle && (SpringWater || HotSpringWater)) || SongOfStorms;
Expand Down Expand Up @@ -833,6 +833,7 @@ namespace Logic {
WoodfallFrog = false;
GreatBayFrog = false;
ThinBridgeCrystalChest = false;
MilkQuestStart = false;


ZoraEgg = 0;
Expand Down

0 comments on commit 5294c0e

Please sign in to comment.