mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Consolidate DZE_ActionInProgress and r_action_count to one variable
There is no point in having two variables for the same purpose. It is also pointless to keep an action count tally like r_action_count was doing, since it is only ever checked for being 0 or 1. Any count higher or lower than that is irrelevant. I will make this change in vanilla too.
This commit is contained in:
@@ -65,7 +65,7 @@ class PartWoodPile : CA_Magazine
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_242;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; // r_action_count = r_action_count + 1;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"sawmill"};
|
||||
requiretools[] = {"ItemToolbox","ItemKnife"};
|
||||
output[] = {{"PartWoodLumber",1}};
|
||||
@@ -74,7 +74,7 @@ class PartWoodPile : CA_Magazine
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_243;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; // r_action_count = r_action_count + 1;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemKnife"};
|
||||
output[] = {{"WoodenArrow",3}};
|
||||
@@ -84,7 +84,7 @@ class PartWoodPile : CA_Magazine
|
||||
class Crafting2
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_244;
|
||||
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;"; // r_action_count = r_action_count + 1;
|
||||
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
requiretools[] = {"ItemToolbox","ItemKnife"};
|
||||
output[] = {{"stick_fence_kit",1}};
|
||||
|
||||
Reference in New Issue
Block a user