Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rando: Add Checks for Milk Bar NPC Shop #205

Conversation

JoshSanch
Copy link

@JoshSanch JoshSanch commented Jan 28, 2025

Implemented such that the checks are reobtainable when starting a new cycle, and the milk refills offered will become available once the checks are purchased on the same time cycle.

Some of the logic here could probably be used to set the prices to Tingle's randomized shop options as well.

YouTube link showing correct behavior across time cycles: https://youtu.be/FWCFyR2F8Xk

Build Artifacts

@Eblo Eblo mentioned this pull request Jan 29, 2025
52 tasks
@Patrick12115
Copy link
Collaborator

Everything looks good in game from what I can tell!

mm/2s2h/Rando/Types.h Outdated Show resolved Hide resolved
@Eblo
Copy link
Collaborator

Eblo commented Feb 1, 2025

The player cannot proceed to the purchase dialog if they do not have at least one empty bottle. In vanilla this makes sense because the items are always bottled. I think logic should be updated to require a bottle for these checks.

As a quick and dirty test, I tried proceeding to the purchase dialog and then edited my inventory to have no empty bottles, then purchased the vanilla item. The shop forcibly writes a milk bottle into the player's inventory even without a bottle to start with so I don't think removing the bottle requirement is a good idea.

Edit: Upon further discussion, maybe the answer is to remove the bottle condition, and then use the RI milk/chateau refills instead of the vanilla ones. Thoughts?

@JoshSanch
Copy link
Author

I agree with that approach.

@JoshSanch
Copy link
Author

This is currently held up by me trying to get the normal Milk/Chateau bottle check to happen upon purchasing the vanilla purchases, instead of before. Haven't figured out the best approach yet.

@JoshSanch
Copy link
Author

I've found a solution that I'm happy with but it contains some minor additions to the arguments passed to the VB_EXEC_MSG_EVENT Should hook that may require discussion. I will open a new PR to make it easier to document that review/discussion.

@JoshSanch JoshSanch closed this Feb 4, 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.

4 participants