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] - Compatibility with ACE 3.16 medical system #194

Merged
merged 3 commits into from
Dec 2, 2023

Conversation

Cre8or
Copy link
Collaborator

@Cre8or Cre8or commented Dec 2, 2023

Pull Request Description

When merged this pull request will:

Update the framework's medical functions to be compatible with the changes to the ACE medical system introduced in ACE 3.16. This fixes various game-breaking issues resulting from using custom Zen modules on players (such as immersive revive, or wounds healing), which were caused by overwriting internal ACE data with incorrect data types.

Additionally, as a minor QoL change, healWounds now assigns a score to each wound (stronger bleeding increases the score). It then heals wounds in decreasing score order - effectively prioritising injuries like large avulsions or velocity wounds over small bruises.

Fixes #191.

Release Notes

Fixed compatibility with the ACE medical system changes introduced in v3.16.

IMPORTANT

  • Testing has been completed as neccessary, depending on the nature & impact of the changes.
  • The Release Notes section below must be filled out appropriately to explain the changes made in this PR. This section will be used in Framework Changelogs.
  • If the contribution affects the wiki, please include your changes in this pull request so the wiki is consistently updated.
  • Contribution Guidelines are read, understood and applied.
  • Title of this PR uses our standard template [Descriptor] - Add|Fix|Improve|Change|Make|Remove {changes}.

- Refactored internal functions to be compatible the new medical variables used by ACE
- Merged wounds healing code for critical bleeding from immersiveRevive into healWounds, and added an optional third parameter
 - Modified EQUALS macro to work with any variable type (not just objects)
- Fixed body part hitpoints not always being decreased with each wound healed (this made it impossible to fix weapon sway)
@Cre8or Cre8or added bug Something isn't working technical debt We brought this upon ourselves labels Dec 2, 2023
@Cre8or Cre8or added this to the 1.7.0 milestone Dec 2, 2023
@Cre8or Cre8or requested review from Bubbus and dgibso29 December 2, 2023 10:31
@Cre8or Cre8or self-assigned this Dec 2, 2023
@github-actions github-actions bot requested a review from Joecuronium December 2, 2023 10:31
Copy link
Collaborator

@Bubbus Bubbus left a comment

Choose a reason for hiding this comment

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

Looks good, works good in test. I'm going to merge develop into this and then merge this back in.

@github-actions github-actions bot requested a review from Bubbus December 2, 2023 15:54
@Bubbus Bubbus merged commit 2bd55f1 into develop Dec 2, 2023
1 check passed
@Bubbus Bubbus deleted the fix/ace_medical_update branch December 2, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working technical debt We brought this upon ourselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Immersive Revive is no longer reliable.
2 participants