Skip to content

Rusted Moss: Fix unit test & generation failures - #11

Open
kingdragonite55 wants to merge 1 commit into
dgrossmann144:mainfrom
kingdragonite55:rm-fix-gen-test
Open

Rusted Moss: Fix unit test & generation failures#11
kingdragonite55 wants to merge 1 commit into
dgrossmann144:mainfrom
kingdragonite55:rm-fix-gen-test

Conversation

@kingdragonite55

Copy link
Copy Markdown

What is this fixing or adding?

Fixes the test_entrance_connection_steps unit test failure and eliminates generation failures.
Deleting the DLC locations in the generate_early stage was causing the unit test failure, and could cause generation issues or failures if there were multiple Rusted Moss players in a multiworld. It may be possible to change the code so that both of these issues are avoided, but leaving the DLC locations out entirely until they are implemented is a much easier solution.
For the character check, raising a ValueError directly is not recommended. It is instead recommended when a user's YAML settings are invalid to raise an OptionError, so I have changed it to that.

How was this tested?

I ran all of the standard AP unit tests and none failed. Using Eijebong's APWorld fuzzer to do a test of 5000 generations, the latest release fails 4996/5000 generations, and this PR fails 0/5000.

If this makes graphical changes, please attach screenshots.

N/A

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.

1 participant