Skip to content

Extra GI items for chests#188

Merged
Admentus64 merged 1 commit intomasterfrom
extra-gi-items-chests
Mar 16, 2026
Merged

Extra GI items for chests#188
Admentus64 merged 1 commit intomasterfrom
extra-gi-items-chests

Conversation

@Admentus64
Copy link
Copy Markdown
Contributor

@Admentus64 Admentus64 commented Jan 9, 2026

Initializing the chest (EN_BOX) with an X rotation above 0 (actor list for rooms) will point to the item to contain instead of the param value instead. If it's 0 then the param sets the item as before again. To my knowledge no vanilla chest in OoT (but MM does) ever initializes a chest with a X rotation other than 0.

The advantage of using the X rotation is that it would be possible to support a much larger range of GI (Get Item) values. In vanilla param is already used in combination with other variables, so all set GI indexes only work within a range between 0x20 and 0xFE0 (0x20 increases per index), which is a maximum of 127 different GI values. Since X rotation goes unused it could support up to 0xFFFF different GI values, but that's really overkill and for the time being it's set to using 8 bits (so 256 - 1 different GI values).

@Admentus64 Admentus64 force-pushed the extra-gi-items-chests branch from f282a3d to 51a3b64 Compare March 2, 2026 13:58
@Admentus64 Admentus64 merged commit bfa2a52 into master Mar 16, 2026
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.

1 participant