Skip to content

Commit

Permalink
fix items_cost
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Dec 17, 2024
1 parent 3224eae commit b5ad72e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arma/client/addons/gear/functions/fnc_shop_items_cost.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ private _cost = 0;
if (_need > 0) then {
private _class = [_x] call FUNC(shop_item_listing);
([_class, false] call FUNC(shop_item_price)) params ["_personal", "_company"];
_cost = switch (_mode) do {
private _price = switch (_mode) do {
case 0: {
_personal
};
Expand All @@ -31,7 +31,8 @@ private _cost = 0;
default {
0
};
} * _need;
};
_cost = _cost + (_price * _need);
};
} forEach _items;

Expand Down

0 comments on commit b5ad72e

Please sign in to comment.