ACE3/addons/fortify/functions/fnc_modifyAction.sqf
PabstMirror eb53e7a2fe
Tools - document_functions.py: handle header sub indexs for arguments (#9303)
* tools - handle header sub indexs for arguements

* convert remaining

* Update coding-guidelines.md
2023-08-08 22:51:20 -05:00

31 lines
617 B
Plaintext

#include "script_component.hpp"
/*
* 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];