mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Move sharpen action to ItemKnifeBlunt
Avoids confusing message "Missing ItemKnifeBlunt to do this"
This commit is contained in:
@@ -8,13 +8,4 @@ class equip_brick : CA_Magazine
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_brick.paa";
|
||||
displayName = $STR_ITEM_NAME_equip_brick;
|
||||
descriptionShort = $STR_ITEM_DESC_equip_brick;
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class FixKnife
|
||||
{
|
||||
text = $STR_ACTIONS_FIX_KNIFE;
|
||||
script = "; ['ItemKnifeBlunt','ItemKnife'] spawn player_sharpen;";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -61,4 +61,17 @@ class ItemKnifeBlunt : ItemKnife_Base
|
||||
{
|
||||
scope = public;
|
||||
descriptionShort = $STR_EQUIP_CODE_DESC_4;
|
||||
class ItemActions
|
||||
{
|
||||
class FixKnife
|
||||
{
|
||||
text = $STR_ACTIONS_FIX_KNIFE;
|
||||
script = "; ['ItemKnifeBlunt','ItemKnife'] spawn player_sharpen;";
|
||||
};
|
||||
class Use
|
||||
{
|
||||
text= $STR_EQUIP_KNIFE_ACTION;
|
||||
script="spawn player_harvestPlant;";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -21,8 +21,8 @@ if (isNil "_waterUsed") exitWith {
|
||||
};
|
||||
|
||||
// item is missing or tools are missing
|
||||
if (!(_item IN items player)) exitWith {
|
||||
_displayName = getText (configFile >> "CfgWeapons" >> _item >> "displayName");
|
||||
if !("equip_brick" IN magazines player) exitWith {
|
||||
_displayName = getText (configFile >> "CfgMagazines" >> "equip_brick" >> "displayName");
|
||||
format [localize "str_missing_to_do_this",_displayName] call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user