Skip to content

Extra GI items for chests#188

Open
Admentus64 wants to merge 1 commit intomasterfrom
extra-gi-items-chests
Open

Extra GI items for chests#188
Admentus64 wants to merge 1 commit intomasterfrom
extra-gi-items-chests

Conversation

@Admentus64
Copy link
Contributor

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 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).

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