Skip to content

shipinit dont show master sword#4989

Merged
aMannus merged 27 commits intoHarbourMasters:developfrom
briaguya0:shipinit-dont-show-master-sword
Feb 12, 2025
Merged

shipinit dont show master sword#4989
aMannus merged 27 commits intoHarbourMasters:developfrom
briaguya0:shipinit-dont-show-master-sword

Conversation

@briaguya0
Copy link
Contributor

@briaguya0 briaguya0 commented Feb 4, 2025

what this does:

what this doesn't do

  • address any concerns about this using OnPlayerUpdate - it's just doing the same thing as before but using shipinit instead

Build Artifacts

Copy link
Contributor

@aMannus aMannus left a comment

Choose a reason for hiding this comment

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

Small shipinit comment. Also, not entirely sure how we should fix the OnPlayerUpdate problem, maybe run it on a hook when that B button gets updated in the first place?

Comment on lines +114 to +115

static RegisterShipInitFunc initFuncAlways(RegisterNoMasterSword);
Copy link
Contributor

Choose a reason for hiding this comment

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

You'll want to change this to static RegisterShipInitFunc initFunc(RegisterNoMasterSword, { "IS_RANDO" });

This way it gets registered and unregistered on save file load, instead of on boot and checkbox toggling. At that point any of the other IS_RANDO checks can also be removed.

@aMannus aMannus merged commit 37fd39c into HarbourMasters:develop Feb 12, 2025
5 checks passed
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.

4 participants