- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.2k
SMZ3: fix item links with link_replacement #4099
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
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.
confirmed on the item link test branch that this makes smz3 pass said test
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, tested through manually using itemlinks. The selection of items also makes sense, since it's every junk item except the ones that might cause problems in excess numbers (Heart Piece, Bomb Upgrade, Arrow Upgrade)
| Re-pinging @lordlou. This issue is quite important to us as it is blocking a unit test. | 
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.
Pre-filling junkItemsNames looks good to me but why is ItemType.HeartPiece, ItemType.ArrowUpgrade5 and ItemType.BombUpgrade5 missing?
| 
 Can they cause problems if you have too many? | 
| Oh I missed your previous comment already stating the reason. I agree with you. All good then :) | 
What is this fixing or adding?
Worlds are expected to be able to have
get_filler_item_namecalled without any fill steps being performed. SMZ3 is relying onself.junkItemNames, which doesn't exist untilcreate_items. This just adds a set of defaults for the list that still gets replaced duringcreate_items.How was this tested?
Generated a two-player SMZ3 with the following item link.
On current main, this will fail with an AttributeError.
If this makes graphical changes, please attach screenshots.