Skip to content

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

Merged
mharis001 merged 5 commits intozen-mod:masterfrom
LinkIsGrim:patch-1
Jan 25, 2024
Merged

Attributes - Add support for ACE Repair 'Enable' setting#742
mharis001 merged 5 commits intozen-mod:masterfrom
LinkIsGrim:patch-1

Conversation

@LinkIsGrim
Copy link
Copy Markdown
Contributor

When merged this pull request will:

  • Title.

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

Comment thread addons/attributes/initAttributes.sqf Outdated
};

if (isClass (configFile >> "CfgPatches" >> "ace_repair")) then {
if (isClass (configFile >> "CfgPatches" >> "ace_repair") && {missionNamespace getVariable ["ace_repair_enabled", false]}) then {
Copy link
Copy Markdown
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 LinkIsGrim requested a review from mharis001 January 20, 2024 17:13
@LinkIsGrim
Copy link
Copy Markdown
Contributor Author

Seems to be working correctly.

@mharis001 mharis001 merged commit 13fb246 into zen-mod:master Jan 25, 2024
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.

2 participants