-
Notifications
You must be signed in to change notification settings - Fork 723
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
Pokemon Red and Blue: Updates to trap weights and tracker support #1395
Conversation
Added `cerulean_cave_condition` to the `fill_slot_data` function, for a poptracker feature being worked on as it was missing
Adding the ability to disable any kind of trap, for example if you want any status trap except being Poisoned. Will add a contingency to not try and roll a trap if they are all set to disabled.
Added a contingency to creating items such that it doesn't try to create a trap if all the traps are disabled
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 except for requested variable name change
worlds/pokemon_rb/__init__.py
Outdated
@@ -190,8 +190,9 @@ def create_items(self) -> None: | |||
item = self.create_filler() | |||
else: | |||
item = self.create_item(location.original_item) | |||
combinedtraps = self.multiworld.poison_trap_weight[self.player].value + self.multiworld.fire_trap_weight[self.player].value + self.multiworld.paralyze_trap_weight[self.player].value + self.multiworld.ice_trap_weight[self.player].value |
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.
Should be combined_traps to follow PEP 8 variable naming conventions
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.
Thanks for pointing it out, have renamed
Edited name of variable to follow PEP 8 variable naming conventions
…chipelagoMW#1395) * Added cerulean_cave_condition to fill_slot_data Added `cerulean_cave_condition` to the `fill_slot_data` function, for a poptracker feature being worked on as it was missing * Added the potential for any traps to be disabled Adding the ability to disable any kind of trap, for example if you want any status trap except being Poisoned. Will add a contingency to not try and roll a trap if they are all set to disabled. * Added contingency to if all traps are disabled Added a contingency to creating items such that it doesn't try to create a trap if all the traps are disabled * Updated variable name Edited name of variable to follow PEP 8 variable naming conventions
What is this fixing or adding?
Added
cerulean_cave_condition
to thefill_slot_data
function to allow poptracker to auto-update the number requiredMoved
option_disabled = 0
to the TrapWeight class to allow any trap in Red and Blue to be disabledAdded a contingency to traps such that if all are disabled, it won't give traps,
How was this tested?
Running
Generate.py
to create a seed with all traps disabled but atrap_percentage
greater than 0. Then posting the seed onto the online branch to check poptracker sees the new tag