Update player_sharpen.sqf

Fixes extra knife being deleted if player already had a fully sharpened
knife on their toolbelt (duplicate weapon).

Vanilla commit:

0332fcbe71
This commit is contained in:
ebayShopper
2017-03-20 18:18:04 -04:00
parent d4eb7ac6e4
commit 8b3f28dc0c
5 changed files with 21 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ if (_this in items player) then {
_bag addWeaponCargoGlobal [_this,1];
} else {
[_this,2,1] call fn_dropItem;
systemChat format[localize "str_epoch_player_314",_this];
systemChat format[localize "str_actions_noroom",_this];
};
} else {
//Remove melee magazines (BIS_fnc_invAdd fix)
@@ -30,7 +30,7 @@ if (_this in items player) then {
if !([player,_this] call BIS_fnc_invAdd) then {
systemChat localize "str_epoch_player_107";
[_this,2,1] call fn_dropItem;
systemChat format[localize "str_epoch_player_314",_this];
systemChat format[localize "str_actions_noroom",_this];
};
true call dz_fn_meleeMagazines;
};