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

Pokemon Red and Blue: Updates to trap weights and tracker support #1395

Merged
merged 4 commits into from
Jan 20, 2023

Conversation

KamekoSkye
Copy link
Contributor

What is this fixing or adding?

Added cerulean_cave_condition to the fill_slot_data function to allow poptracker to auto-update the number required
Moved option_disabled = 0 to the TrapWeight class to allow any trap in Red and Blue to be disabled
Added 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 a trap_percentage greater than 0. Then posting the seed onto the online branch to check poptracker sees the new tag

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
Copy link
Contributor

@Alchav Alchav left a 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

@@ -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
Copy link
Contributor

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

Copy link
Contributor Author

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
@Berserker66 Berserker66 merged commit 34dba00 into ArchipelagoMW:main Jan 20, 2023
kindasneaki pushed a commit to kindasneaki/Archipelago that referenced this pull request Jun 28, 2023
…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
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.

None yet

3 participants