-
Notifications
You must be signed in to change notification settings - Fork 703
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
TUNIC: Grass Randomizer #3913
base: main
Are you sure you want to change the base?
TUNIC: Grass Randomizer #3913
Conversation
Improve location names
* Backport changes to grass rando * add_rule instead of set_rule for the special cases, add special cases for back of swamp laurels area cause I should've made a new region for the swamp upper entrance * Remove item name group for grass
- Also ignore grass fill for single player games
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed some things along the way and contributed the grass fill option, so idk if my review really counts but I'm doing it anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have some comments but nothing crazy, have rolled and played exactly one game on the shared apworld, but it wasn't on this exact iteration of it, still pretty happy with it altogether
Co-authored-by: Scipio Wright <[email protected]>
- non-grass rando games were accidentally seeing grass items get shuffled in as filler, which is funny but probably shouldn't happen
Co-authored-by: Scipio Wright <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I didn't test this, only reviewed the code 👍
Co-authored-by: Exempt-Medic <[email protected]> Co-authored-by: Scipio Wright <[email protected]>
Co-authored-by: Exempt-Medic <[email protected]>
worlds/tunic/__init__.py
Outdated
unfilled_locations = [loc for loc in multiworld.get_unfilled_locations_for_players( | ||
location_names=[], players=tunic_players_with_grass) if loc.progress_type != LocationProgressType.PRIORITY | ||
and loc.name not in reserved_locations] | ||
grass_filler_items: List[TunicItem] = [] | ||
for world in tunic_grass_worlds: | ||
grass_filler_items.extend(world.local_filler) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could reorder this part and add an early return just so that you aren't calling get_unfilled_locations_for_players
when it isn't needed.
unfilled_locations = [loc for loc in multiworld.get_unfilled_locations_for_players( | |
location_names=[], players=tunic_players_with_grass) if loc.progress_type != LocationProgressType.PRIORITY | |
and loc.name not in reserved_locations] | |
grass_filler_items: List[TunicItem] = [] | |
for world in tunic_grass_worlds: | |
grass_filler_items.extend(world.local_filler) | |
grass_filler_items: List[TunicItem] = [] | |
for world in tunic_grass_worlds: | |
grass_filler_items.extend(world.local_filler) | |
if not grass_filler_items: | |
return | |
unfilled_locations = [loc for loc in multiworld.get_unfilled_locations_for_players( | |
location_names=[], players=tunic_players_with_grass) if loc.progress_type != LocationProgressType.PRIORITY | |
and loc.name not in reserved_locations] |
What is this fixing or adding?
Adds Grass Randomizer as an option for TUNIC.
Grass Randomizer adds over 6,000 bushes/pieces of grass as checkable locations that have the potential to give items when cut down.
By default, at least 95% of the grass/filler items are required to be kept local or shuffled among other TUNIC slots with Grass Randomizer enabled. The host can turn off this restriction if they wish by changing the
limit_grass_rando
setting in the host.yaml file to false.How was this tested?
Several playtests over the last two months using a beta version of the randomizer mod in the Tunic AP channel, with continuous updates and bugfixes based on feedback.
If this makes graphical changes, please attach screenshots.