2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2023-08-09 03:51:20 +00:00
|
|
|
/*
|
2021-10-14 15:46:43 +00:00
|
|
|
* Author: PabstMirror
|
|
|
|
* Modifies the fortify action, shows current budget.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Target <OBJECT>
|
|
|
|
* 1: Player <OBJECT>
|
|
|
|
* 2: Args <ANY>
|
|
|
|
* 3: Action Data <ARRAY>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [player, player, [], []] call ace_fortify_fnc_modifyAction
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["", "_player", "", "_actionData"];
|
|
|
|
|
|
|
|
private _budget = [side group _player] call FUNC(getBudget);
|
|
|
|
private _actionText = if (_budget > 0) then {
|
|
|
|
format ["%1 [$%2]", LLSTRING(fortify), _budget];
|
|
|
|
} else {
|
|
|
|
LLSTRING(fortify);
|
|
|
|
};
|
|
|
|
|
|
|
|
_actionData set [1, _actionText];
|