Skip to content

Commit

Permalink
Refactor Aeon ACU Enhancements Script (#6502)
Browse files Browse the repository at this point in the history
Continuing the refactor of #6498 

---------

Co-authored-by: lL1l1 <[email protected]>
  • Loading branch information
MrRowey and lL1l1 authored Nov 6, 2024
1 parent 3f034d1 commit 1491ad6
Show file tree
Hide file tree
Showing 2 changed files with 299 additions and 201 deletions.
2 changes: 1 addition & 1 deletion changelog/snippets/other.6498.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- (#6498) Refactor the Enhancements section in the Unit script file to replace the long if/else chain with a more modular design. Each enhancement should have its own dedicated function, enabling cleaner code organization and easier maintenance. The CreateEnhancement function will then call the appropriate enhancement function based on specific enhancement criteria.
- (#6498, #6502) Refactor the Enhancements section in the ACU/SACU scripts to replace the long if/else chain with a more modular design that is easier to maintain and hook. Each enhancement has its own dedicated function, named with the format `ProcessEnhancement[EnhancementName]`. The CreateEnhancement function now calls the appropriate enhancement function automatically by that name format.
Loading

0 comments on commit 1491ad6

Please sign in to comment.