Fortify - Add token items to allow per-unit budgets#11071
Merged
PabstMirror merged 2 commits intomasterfrom Nov 4, 2025
Merged
Fortify - Add token items to allow per-unit budgets#11071PabstMirror merged 2 commits intomasterfrom
PabstMirror merged 2 commits intomasterfrom
Conversation
DartRuffian
reviewed
Sep 26, 2025
| */ | ||
|
|
||
| params ["_side"]; | ||
| params ["_side", ["_type", "", [""]]]; |
Contributor
There was a problem hiding this comment.
Why not just have the default as "side"?
Contributor
Author
There was a problem hiding this comment.
there are 2 calls using the new "side"
are 6 calls that need "", so they can remain unchanged
LinkIsGrim
approved these changes
Oct 12, 2025
rautamiekka
suggested changes
Oct 30, 2025
|
|
||
| private _budget = 0; | ||
| if (_type in ["", "side"]) then { | ||
| if (_type != "player") then { |
Contributor
There was a problem hiding this comment.
Suggested change
| if (_type != "player") then { | |
| if (_type isNotEqualTo "player") then { |
| _budget = (missionNamespace getVariable [format [QGVAR(Budget_%1), _side], -1]); | ||
| }; | ||
| if (_budget != -1 && {_type in ["", "player"]}) then { | ||
| if (_budget != -1 && {_type != "side"} && {"ACE_FortifyToken" in ([ACE_player] call EFUNC(common,uniqueItems))}) then { |
Contributor
There was a problem hiding this comment.
Suggested change
| if (_budget != -1 && {_type != "side"} && {"ACE_FortifyToken" in ([ACE_player] call EFUNC(common,uniqueItems))}) then { | |
| if (_budget != -1 && {_type isNotEqualTo "side"} && {"ACE_FortifyToken" in ([ACE_player] call EFUNC(common,uniqueItems))}) then { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds "currency" item token for fortify
Allowing fine grain control of spending