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

Extract get killer method in Player:onDeath #4427

Merged
merged 3 commits into from
Apr 29, 2023

Conversation

ranisalt
Copy link
Member

Pull Request Prelude

Changes Proposed

Issues addressed:
Doing some cleanup in this file, I noticed there was duplication when checking if the killer/most damage attacker were players. Extracting to a function allowed reusing the code and making it simpler, with less indentation levels and temporary values.

EPuncker
EPuncker previously approved these changes Apr 27, 2023
@EPuncker EPuncker added the enhancement Increase or improvement in quality, value, or extent label Apr 27, 2023
Copy link
Contributor

@MillhioreBT MillhioreBT left a comment

Choose a reason for hiding this comment

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

LGTM

@ranisalt ranisalt requested a review from EPuncker April 28, 2023 15:57
@ranisalt ranisalt merged commit 42473f3 into otland:master Apr 29, 2023
@ranisalt ranisalt deleted the player-death-cleanup branch April 29, 2023 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Increase or improvement in quality, value, or extent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants