Skip to content

Conversation

@Silvris
Copy link
Collaborator

@Silvris Silvris commented Oct 26, 2024

What is this fixing or adding?

Worlds are expected to be able to have get_filler_item_name called without any fill steps being performed. SMZ3 is relying on self.junkItemNames, which doesn't exist until create_items. This just adds a set of defaults for the list that still gets replaced during create_items.

How was this tested?

Generated a two-player SMZ3 with the following item link.

  item_links:
    # Share part of your item pool with other players.
    - name: All
      item_pool:
        - Everything
      replacement_item: null
      link_replacement: true

On current main, this will fail with an AttributeError.

If this makes graphical changes, please attach screenshots.

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Oct 26, 2024
@Silvris
Copy link
Collaborator Author

Silvris commented Oct 26, 2024

@lordlou

@Exempt-Medic Exempt-Medic added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: world-maintainer Issue/PR is waiting for feedback or approval by the maintainer of a world. labels Oct 26, 2024
Copy link
Collaborator

@qwint qwint left a 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

@Exempt-Medic Exempt-Medic removed the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Oct 26, 2024
Copy link
Contributor

@Exempt-Medic Exempt-Medic left a 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)

@NewSoupVi
Copy link
Member

Re-pinging @lordlou. This issue is quite important to us as it is blocking a unit test.
Will probably do a ping in the Discord on Monday, and then potentially just merge this if no response

Copy link
Contributor

@lordlou lordlou left a 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?

@Exempt-Medic
Copy link
Contributor

Exempt-Medic commented Jan 17, 2025

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?
If they can't though then it is a bit weird that they're missing. I guess they do have more permanent effects than the rest

@lordlou
Copy link
Contributor

lordlou commented Jan 19, 2025

Oh I missed your previous comment already stating the reason. I agree with you. All good then :)

@Exempt-Medic Exempt-Medic added waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer. and removed waiting-on: world-maintainer Issue/PR is waiting for feedback or approval by the maintainer of a world. labels Jan 19, 2025
@Exempt-Medic Exempt-Medic merged commit 9e353eb into ArchipelagoMW:main Jan 19, 2025
16 checks passed
Witchybun pushed a commit to Witchybun/Archipelago that referenced this pull request May 29, 2025
@Silvris Silvris deleted the smz3_itemlink branch May 29, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: core-review Issue/PR has been peer-reviewed and is ready to be merged or needs input from a core maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants