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

Improve performance and readability; add new features #521

Merged
merged 1 commit into from
Jan 3, 2025
Merged

Conversation

LTS-FFXIV
Copy link
Member

This pull request includes several changes to the BasicRotations/Melee/MNK_Default.cs and RotationSolver.Basic/DataCenter.cs files, focusing on enhancing functionality and improving code quality. The most important changes are grouped by theme as follows:

Functionality Enhancements:

  • Modified the EmergencyAbility method to include logic for handling chakra usage based on the Brotherhood status and chakra levels.
  • Updated the AttackAbility method to streamline the use of abilities like Enlightenment and Howling Fist based on the HowlingSingle configuration.

Configuration Updates:

  • Changed the default value of the HowlingSingle property to false in MNK_Default.cs.
  • Introduced a new configurable property CastingStopTime in the Configs.cs file to control the time before a cast finishes that actions are stopped.

Code Quality Improvements:

  • Replaced LINQ queries with more efficient loops and simplified condition checks in DataCenter.cs. [1] [2] [3]
  • Replaced array initializations with Array.Empty<T>() and new List<T>() for better performance and readability in DataCenter.cs. [1] [2]

These changes collectively improve the functionality and performance of the codebase while making it easier to maintain and extend in the future.

Refactored multiple classes to replace LINQ methods with loops for better performance. Updated properties and methods in `MNK_Default`, `MonkRotation`, and `Configs` classes for enhanced functionality and configurability. Removed unused `using` directives and simplified conditions in various methods. Added new properties and methods to handle specific game logic and improve code readability.
@LTS-FFXIV LTS-FFXIV merged commit da9022e into main Jan 3, 2025
@LTS-FFXIV LTS-FFXIV deleted the moretesting branch January 4, 2025 11:38
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.

1 participant