Skip to content

Commit

Permalink
Field Rations - Log ration magazines without item property to RPT (#1…
Browse files Browse the repository at this point in the history
…0677)

* Field Rations - Log ration magazines without item property to RPT

* Update addons/field_rations/functions/fnc_scanFieldRations.sqf

Co-authored-by: johnb432 <[email protected]>

* Update addons/field_rations/functions/fnc_scanFieldRations.sqf

Co-authored-by: johnb432 <[email protected]>

---------

Co-authored-by: johnb432 <[email protected]>
  • Loading branch information
LinkIsGrim and johnb432 authored Jan 20, 2025
1 parent 81392aa commit d5f356e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions addons/field_rations/functions/fnc_scanFieldRations.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ private _fnc_isFieldRationItem = toString {
_list set [configName _x, ""];
} forEach (_fnc_isFieldRationItem configClasses _cfgWeapons);

private _magsMissingItemProperty = [];
{
_list set [configName _x, ""];
if (getNumber (_x >> "ACE_asItem") == 0 && {getNumber (_x >> "ACE_isUnique") == 0}) then {
_magsMissingItemProperty pushBack configName _x;
};
} forEach (_fnc_isFieldRationItem configClasses _cfgMagazines);

if (_magsMissingItemProperty isNotEqualTo []) then {
WARNING_1("[ACE] field_rations - the following magazines are valid rations but do not have item property - %1",_magsMissingItemProperty joinString ", ");
};

uiNamespace setVariable [QXGVAR(fieldRationItems), compileFinal _list];

0 comments on commit d5f356e

Please sign in to comment.