mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-10 10:12:54 +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;";
|
||||
};
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user