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

Attributes - Add support for ACE Repair 'Enable' setting #742

Merged
merged 5 commits into from
Jan 25, 2024

Conversation

LinkIsGrim
Copy link
Contributor

When merged this pull request will:

  • Title.

See acemod/ACE3#8070, setting requires mission restart so should be fine.

@@ -953,7 +953,7 @@ if (isClass (configFile >> "CfgPatches" >> "ace_medical")) then {
] call FUNC(addAttribute);
};

if (isClass (configFile >> "CfgPatches" >> "ace_repair")) then {
if (isClass (configFile >> "CfgPatches" >> "ace_repair") && {missionNamespace getVariable ["ace_repair_enabled", false]}) then {
Copy link
Member

Choose a reason for hiding this comment

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

This runs at preInit where settings aren't guaranteed. Likely need to use the condition parameter of the addAttribute function.

@mharis001 mharis001 added the enhancement Improves an existing feature label Sep 7, 2023
@mharis001 mharis001 added this to the 1.15.0 milestone Sep 7, 2023
@LinkIsGrim
Copy link
Contributor Author

Seems to be working correctly.

@mharis001 mharis001 merged commit 13fb246 into zen-mod:master Jan 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants