Skip to content

Added and implemented TrailType enum#5059

Merged
Archez merged 4 commits intoHarbourMasters:developfrom
link5669:develop
Feb 18, 2025
Merged

Added and implemented TrailType enum#5059
Archez merged 4 commits intoHarbourMasters:developfrom
link5669:develop

Conversation

@link5669
Copy link
Contributor

@link5669 link5669 commented Feb 13, 2025

This is a revival of an older PR.

This PR resolves issue #1537. I've created an implemented a TrailType enum to reduce magic numbers in the codebase.

Build Artifacts

Copy link
Contributor

@briaguya0 briaguya0 left a comment

Choose a reason for hiding this comment

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

my first instinct was to check if decomp docs matched, but trailType is new to soh (added in #1473)

it'd be great to use this PR as an opportunity to document that with comments. just adding // SOH [Enhancements] to the lines where trailType is added to a struct would go a long way

@link5669
Copy link
Contributor Author

link5669 commented Feb 14, 2025

@briaguya-ai should I refactor some of the trail code into functions in this PR or should I limit this just to the enum change? There's some unnecessarily repeated code, especially in the switch statement

@briaguya0
Copy link
Contributor

@briaguya-ai should I refactor some of the trail code into functions in this PR or should I limit this just to the enum change? There's some unnecessarily repeated code, especially in the switch statement

i think leaving this PR as just the enum change makes sense. you can branch off this branch and make a new PR for the refactor, and if this doesn't land before that we can just get this change in via that

@Archez Archez merged commit cc25c96 into HarbourMasters:develop Feb 18, 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