Skip to content

Conversation

@cassidoxa
Copy link
Contributor

Adds an initial SRAM class which computes the state of the first 0x500 bytes of SRAM and writes it to a table in the ROM. Corresponds with ROM changes in KatDevsGames/z3randomizer#159

Copy link
Owner

@sporchia sporchia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small questions

Comment on lines -213 to -219
// force starting bomb and quiver capacities
$world->setPreCollectedItems(new ItemCollection([
Item::get('BombUpgrade10', $world),
Item::get('ArrowUpgrade10', $world),
Item::get('ArrowUpgrade10', $world),
Item::get('ArrowUpgrade10', $world),
]));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we relying on a different mech? (how does this work with customizer?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically there was a conflict with this and the ammo upgrade counters in SRAM which is why I changed it. So the starting max also gets set separately in the Rom.php (StartingMaxArrows and StartingMaxBombs in tables.asm.) Then it will work as normal with no starting upgrades but they can be added as starting items and will be applied correctly in customizer as well. The world model and filler don't depend on these being pre-collected as far as I can tell.

@sporchia
Copy link
Owner

I updated underlying deps, please fix conflicts so we can merge :)

@sporchia sporchia merged commit d1d6a25 into sporchia:v31.0.11 Jul 30, 2022
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.

2 participants