-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Remove legacy enum handling for and the extern list of field types #74543
base: master
Are you sure you want to change the base?
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered. |
2750ad2
to
5a30768
Compare
Remove remaining fd_null Simplify weird field type loading /tests Remove legacy_enum_id s Rest of /src Remove the list proper Merge weird nested function Make an early return earlier Sanity check some needless if checks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-requesting reviews from non-collaborators: @Fris0uman
@Procyonae could you please resolve conflicts? |
Summary
None
Purpose of change
Extern bad
Random ancient legacy handling bad
Describe the solution
Replaces the extern list with the preferred per cpp static const definitions
Removes the legacy id code that I unhooked in #74497
Changes some gross if statement chains to gross if else statement chains, will probably make a followup PR changing them to something nicer
Replaces all fd_null usages with field_type_str_id::NULL_ID()
Make ammo effect's aoe_field_type and trail_field_type string ids instead of int ids and not load as raw strings first
Describe alternatives you've considered
Testing
Additional context