Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and Clean Up Swap Age Logic #4061

Merged

Conversation

inspectredc
Copy link
Contributor

@inspectredc inspectredc commented Apr 20, 2024

This completely separates out the vanilla flow from the rest of the rando/mods flow path. This will make it easier to make changes to the flow without needing to worry about changing the vanilla code.

This also rewrites how the rando/mods flow work into a more generic function which should cover all scenarios in an appropriate way. It should also keep the childEquips and adultEquips consistent so that it can be used in combination with the vanilla code for the case of mods.

Build Artifacts

@@ -1436,64 +1436,62 @@ Gfx* Gfx_TextureI8(Gfx* displayListHead, void* texture, s16 textureWidth, s16 te
return displayListHead;
}

void Inventory_SwapAgeEquipment(void) {
void Rando_Inventory_SwapAgeEquipment(void) {
Copy link
Contributor

Choose a reason for hiding this comment

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

At some point we should make an effort to move this type of thing to a file in soh land

@briaguya-ai briaguya-ai merged commit 4a576f4 into HarbourMasters:develop-macready Apr 20, 2024
8 checks passed
KiritoDv pushed a commit to KiritoDv/Shipwright that referenced this pull request May 6, 2024
* Split and clean up swap age logic

* reorganise conditions into one statement
briaguya-ai pushed a commit to briaguya-ai/Shipwright that referenced this pull request May 9, 2024
* Split and clean up swap age logic

* reorganise conditions into one statement
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.

3 participants