Skip to content

Include songs in MW_SEND_OWN_ITEMS#2384

Open
fenhl wants to merge 3 commits intoOoTRandomizer:Devfrom
fenhl:mw-send-own-songs
Open

Include songs in MW_SEND_OWN_ITEMS#2384
fenhl wants to merge 3 commits intoOoTRandomizer:Devfrom
fenhl:mw-send-own-songs

Conversation

@fenhl
Copy link
Copy Markdown
Collaborator

@fenhl fenhl commented Mar 2, 2025

The MW_SEND_OWN_ITEMS flag of the co-op context introduced in #1691 has always had the limitation that certain types of locations aren't reported since they don't use the regular get item code. Songs are one of those types of locations (if “songs as items” is off). This PR fixes that.

Since I wasn't able to figure out a way to run code when a song is learned, the fix is implemented by running a check every frame to compare the set of obtained songs with the set of reported songs. This code only runs when enabled by the multiworld plugin, so it shouldn't cause any unnecessary performance drops when it's not required.

This PR also fixes a couple minor documentation errors that I noticed while implementing this.

@fenhl fenhl added Type: Bug Something isn't working Component: ASM/C Changes some internals of the ASM/C libraries Status: Needs Review Someone should be looking at it labels Mar 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Component: ASM/C Changes some internals of the ASM/C libraries Status: Needs Review Someone should be looking at it Type: Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants