Skip to content

Speedruner logic adjustments - #21

Open
JaioCG wants to merge 1 commit into
GlassToadstool:mainfrom
JaioCG:main
Open

JaioCG wants to merge 1 commit into
GlassToadstool:mainfrom
JaioCG:main

Conversation

@JaioCG

@JaioCG JaioCG commented Aug 2, 2026

Copy link
Copy Markdown

Please format your title with what portion of the project this pull request is
targeting and what it's changing.

ex. "MyGame4: implement new game" or "Docs: add new guide for customizing MyGame3"

What is this fixing or adding?

Adjustments to Speedrun logic for Portal 2:

  • Adjusted various maps to fit more from a "casual runner" perspective, focusing less on super difficult tricks that only a few people have done.
  • Added "random" logic to Crazy Box and Finale 2 (more to come later?) that randomly choose between two equal routes, adding some variety to the generation on what tricks are required for logic.

How was this tested?

Successfully generated an AP with a downloaded custom apworld and logic set in YAML.

If this makes graphical changes, please attach screenshots.

N/A

for map_location in self.maps_in_use:
if map_location in speedrun_logic_table:
self.location_logic[map_location] = speedrun_logic_table[map_location]
random_logic = self.random.choice(speedrun_logic_table[map_location])

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't use random choice, instead if you want to have alternate logic you can update the logic calculation to use "has_all" and "or" each list over a loop to create the rule. This will also have to be updated in the menu to reflect this which I can do in the next update

@GlassToadstool

Copy link
Copy Markdown
Owner

Check comments. Random will mess up the menu in a funky way, UT would be able to handle it but I can't gen the menu with random logic (at least not easily). Alternative logic would be better

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.

2 participants