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

fix: Captains and CM not healing (loop from 1) #351

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

EttyKitty
Copy link
Collaborator

@EttyKitty EttyKitty commented Dec 28, 2024

Description of changes

  • Changed the loop to start at 0. The loop was starting at 1, the captains and chapter master sit at 0.

Reasons for changes

  • To fix a bug.

Related links

Summary by Sourcery

Bug Fixes:

  • Fix an issue where Captains and Combat Medics were not receiving healing.

Copy link
Contributor

sourcery-ai bot commented Dec 28, 2024

Reviewer's Guide by Sourcery

This PR fixes a bug where Captains and CM were not being healed by the Apothecary. The bug was caused by the loop starting at index 1 instead of 0. The fix changes the loop start index to 0, ensuring all units are checked and potentially healed.

File-Level Changes

Change Details Files
Fix loop start index
  • Changed the loop start index from 1 to 0 in the apothecary_simple function to include all units in the healing check.
scripts/scr_apothecary_ground/scr_apothecary_ground.gml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions github-actions bot added the PR: Fix This is a fix for a bug label Dec 28, 2024
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @EttyKitty - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Please expand the PR description to explain that this fixes an off-by-one error where units at index 0 (typically company officers) were being skipped in the healing loop.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@EttyKitty EttyKitty merged commit 9db0ff7 into Adeptus-Dominus:main Dec 28, 2024
6 checks passed
@EttyKitty EttyKitty deleted the pr/fix-captains-cm branch December 28, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: Fix This is a fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant