-
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
The Witness: Allow specifying custom trap weights #2835
Conversation
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.
Code LGTM.
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.
Three small comments for right now, will do more testing later
Co-authored-by: Exempt-Medic <[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.
Code LGTM. Compared generations with and without the changes. Did some test generations to check if weights worked properly and checked that improper formatting lead to (useful) errors. Booted up a game and received a trap item just in case that somehow mattered
* Trap weights * Slightly change the way the option works * Wording one more time * Non optional to bring in line with Ixrec's implementation * Be clear that it's not an absolute amount, but a weight * E x c l a m a t i o n p o i n t * Update worlds/witness/items.py Co-authored-by: Exempt-Medic <[email protected]> * Wait I can just do this now lol --------- Co-authored-by: Exempt-Medic <[email protected]>
* Trap weights * Slightly change the way the option works * Wording one more time * Non optional to bring in line with Ixrec's implementation * Be clear that it's not an absolute amount, but a weight * E x c l a m a t i o n p o i n t * Update worlds/witness/items.py Co-authored-by: Exempt-Medic <[email protected]> * Wait I can just do this now lol --------- Co-authored-by: Exempt-Medic <[email protected]>
* Trap weights * Slightly change the way the option works * Wording one more time * Non optional to bring in line with Ixrec's implementation * Be clear that it's not an absolute amount, but a weight * E x c l a m a t i o n p o i n t * Update worlds/witness/items.py Co-authored-by: Exempt-Medic <[email protected]> * Wait I can just do this now lol --------- Co-authored-by: Exempt-Medic <[email protected]>
* Trap weights * Slightly change the way the option works * Wording one more time * Non optional to bring in line with Ixrec's implementation * Be clear that it's not an absolute amount, but a weight * E x c l a m a t i o n p o i n t * Update worlds/witness/items.py Co-authored-by: Exempt-Medic <[email protected]> * Wait I can just do this now lol --------- Co-authored-by: Exempt-Medic <[email protected]>
:)
Decided to make this an options dict, I really don't like having one option per trap, it's just so much bloat
Tested:
Just genned & debugged some stuff
This did also necessitate moving the initialisation of the Static classes to their respective files.
At some point soon, I should just change these to be submodules and get rid of the notion of the "static class"
Definitely got too many refactoring PRs open right now to wanna do sth that invasive though