Move craft strings, wood piles, planks to epoch crafting

There is no need to use the dayz mod craft if it can be done with the normal epoch craft.
Also allow crafting wood piles directly from wooden logs.
This commit is contained in:
A Man
2019-11-02 14:45:54 +01:00
parent 9d77578e97
commit 3da345b865
2 changed files with 20 additions and 11 deletions

View File

@@ -11,11 +11,11 @@ class equip_rope : CA_Magazine {
class Crafting
{
text = $STR_BLD_craft_equip_rope;//"String"
script = "spawn player_craftItem;";
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {""};
output[] = {{"equip_string","CfgMagazines",2}};
input[] = {{"equip_rope","CfgMagazines",1}};
requiretools[] = {"ItemKnife"};
output[] = {{"equip_string",2}};
input[] = {{"equip_rope",1}};
};
};
};

View File

@@ -13,11 +13,20 @@ class ItemLog : CA_Magazine
class Crafting
{
text = $STR_BLD_craft_ItemLog;//"Wooden Plank"
script = "spawn player_craftItem;";
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemHatchet"};
output[] = {{"ItemPlank","CfgMagazines",2}};
input[] = {{"ItemLog","CfgMagazines",1}};
output[] = {{"ItemPlank",2}};
input[] = {{"ItemLog",1}};
};
class Crafting1
{
text = $STR_EQUIP_NAME_40;//"Wood Piles"
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemHatchet"};
output[] = {{"PartWoodPile",4}};
input[] = {{"ItemLog",1}};
};
};
};
@@ -36,12 +45,12 @@ class ItemPlank : CA_Magazine
{
class Crafting
{
text = $STR_BLD_craft_ItemPlank;//"Wood Piles"
script = "spawn player_craftItem;";
text = $STR_EQUIP_NAME_40;//"Wood Piles"
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
requiretools[] = {"ItemHatchet"};
output[] = {{"PartWoodPile","CfgMagazines",2}};
input[] = {{"ItemPlank","CfgMagazines",1}};
output[] = {{"PartWoodPile",2}};
input[] = {{"ItemPlank",1}};
};
};
};