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

Refactor fleet missions' code | Part 09 | Defense systems rebuild #102

Merged
merged 7 commits into from
Apr 11, 2020

Conversation

mdziekon
Copy link
Owner

Summary:

When calculating the result of an attack, all three missions (attack, destruction & group attack) have separate, hardcoded implementation of defender's defense systems rebuilding. This should be moved to a shared utility to prevent code duplication & unify their behaviour (especially since there's a difference right now, looks like a simple miss type from the old days).

Changelog:

  • Export defense systems rebuild calculation into a separate function
    • Function export (as utility)
    • Use in Regular attack
    • Use in Group attack (ACS)
    • Use in Moon destruction

Related issues or PRs:

@mdziekon mdziekon added pr:bugfix All pull requests related to fixing bugs pr:enhancement_request All pull requests related to enhancements proposals labels Apr 11, 2020
@mdziekon mdziekon added this to In progress in Basic modernisation via automation Apr 11, 2020
@mdziekon mdziekon merged commit 78da871 into master Apr 11, 2020
Basic modernisation automation moved this from In progress to Done Apr 11, 2020
@mdziekon mdziekon deleted the mdziekon/91/fleet-mission-attack-refactor-part09 branch April 11, 2020 23:58
@mdziekon mdziekon removed this from Done in Basic modernisation Apr 8, 2022
@mdziekon mdziekon added this to In progress in Flight Control refactor via automation Apr 8, 2022
@mdziekon mdziekon moved this from In progress to Done in Flight Control refactor Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:bugfix All pull requests related to fixing bugs pr:enhancement_request All pull requests related to enhancements proposals
Projects
Development

Successfully merging this pull request may close these issues.

None yet

1 participant