Update arrow and quiver classnames

Vanilla development commit:

1561c3cfd8
This commit is contained in:
ebaydayz
2016-08-12 14:00:32 -04:00
parent 8f58baf3f2
commit 36196661ea
10 changed files with 31 additions and 31 deletions

View File

@@ -3,8 +3,8 @@ private ["_qty_arrows","_qty_quivers","_control","_qty_quiverarrows","_qty_quive
disableSerialization;
call gear_ui_init;
_qty_arrows = {_x == "WoodenArrow"} count magazines player;
_qty_quivers = {_x == "Quiver"} count magazines player;
_qty_arrows = {_x == "1Rnd_Arrow_Wood"} count magazines player;
_qty_quivers = {_x == "12Rnd_Quiver_Wood"} count magazines player;
_control = uiNamespace getVariable 'uiControl';
_qty_quiverarrows = gearSlotAmmoCount _control;
@@ -13,11 +13,11 @@ _qty_quiverfreeslots = 12-_qty_quiverarrows;
//if (_qty_quivers > 1) exitWith { localize "str_quiver_reachlimit" call dayz_rollingMessages;};
if (_qty_quiverfreeslots > 0) then {
_qty_arrows2add = _qty_quiverfreeslots min _qty_arrows;
player removeMagazine "Quiver";
player removeMagazine "12Rnd_Quiver_Wood";
for "_x" from 1 to _qty_arrows2add do {
player removeMagazine "WoodenArrow";
player removeMagazine "1Rnd_Arrow_Wood";
};
player addMagazine ["Quiver",_qty_quiverarrows+_qty_arrows2add];
player addMagazine ["12Rnd_Quiver_Wood",_qty_quiverarrows+_qty_arrows2add];
format[localize "str_quiver_addarrows",_qty_arrows2add] call dayz_rollingMessages;
} else {
localize "str_quiver_full" call dayz_rollingMessages;