Skip to content

Refactored to RuleBuilder - #13

Merged
BatmenzDW merged 13 commits into
deefdragon:mainfrom
BatmenzDW:main
May 12, 2026
Merged

Refactored to RuleBuilder#13
BatmenzDW merged 13 commits into
deefdragon:mainfrom
BatmenzDW:main

Conversation

@BatmenzDW

Copy link
Copy Markdown
Collaborator

I got it mostly working, but complex, rare_complex, and extreme item logic seem to fail to place items.
@deefdragon if you could double check my logic to see why that might be happening, that would be great.

@BatmenzDW
BatmenzDW requested a review from deefdragon May 5, 2026 04:28
@BatmenzDW

Copy link
Copy Markdown
Collaborator Author

It seems to only happen when complex item logic is enabled, but room draft sanity is off

@BatmenzDW

Copy link
Copy Markdown
Collaborator Author

Figured out that TradingPostRule is causing recursion issues

@BatmenzDW

Copy link
Copy Markdown
Collaborator Author

Got it fixed by adding a cache to TradingPostRule to prevent repeat recursion

@deefdragon deefdragon left a comment

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.

Just a few code comprehensability things. (assuming the formatter doesn't interfere with them anyway)

Regarding the logic, given the other half of the code got merged when the PR got brought up to date, I don't think there's a good way for me to review it, but I assume most of the logic bugs will just have to be hunted down through testing at this point.

Comment thread worlds/blueprince/data_items.py
Comment thread worlds/blueprince/items.py Outdated
Comment thread worlds/blueprince/items.py Outdated
Comment thread worlds/blueprince/locations.py Outdated
@BatmenzDW
BatmenzDW merged commit f78aed3 into deefdragon:main May 12, 2026
12 of 18 checks passed
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