Skip to content

Update half factor for Unity BGE - #110

Merged
APN-Pucky merged 3 commits into
masterfrom
update_unity
May 22, 2026
Merged

APN-Pucky merged 3 commits into
masterfrom
update_unity

Conversation

@APN-Pucky

Copy link
Copy Markdown
Owner

Closes: #109

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the simulator’s Passive BGE Unity healing to match the new game description (Unity now heals for full Coalition value rather than half), addressing issue #109.

Changes:

  • Adjust Unity BGE self-heal from (coalition_value + 1)/2 to coalition_value.
  • Introduce a local variable for the heal amount and update the Unity debug output accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sim.cpp Outdated
Comment thread sim.cpp Outdated
Comment on lines +1908 to +1914
@@ -1909,9 +1909,9 @@ struct PerformAttack
if (__builtin_expect(fd->bg_effects[fd->tapi][PassiveBGE::unity] && coalition_value, false)
&& can_be_healed(att_status))
{
_DEBUG_MSG(1, "Unity: %s heals itself for %u\n",
status_description(att_status).c_str(), (coalition_value + 1)/2);
att_status->add_hp((coalition_value + 1)/2);
auto value = coalition_value; // No longer the old (coalition_value + 1)/2 per issue #109
_DEBUG_MSG(1, "Unity: %s heals itself for %u\n", status_description(att_status).c_str(), value );
att_status->add_hp(value);
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Agent-Logs-Url: https://github.com/APN-Pucky/tyrant_optimize/sessions/0b96575c-c882-4843-aee1-954eb3784765

Co-authored-by: APN-Pucky <4533248+APN-Pucky@users.noreply.github.com>

Copilot AI commented May 22, 2026

Copy link
Copy Markdown

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • dl.google.com
    • Triggering command: /usr/lib/apt/methods/https /usr/lib/apt/methods/https (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@APN-Pucky
APN-Pucky marked this pull request as ready for review May 22, 2026 21:45
@APN-Pucky
APN-Pucky merged commit adf7c93 into master May 22, 2026
5 checks passed
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.

BGE "Unity" changed

3 participants