mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +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:
@@ -13,7 +13,7 @@ class ItemTent : CA_Magazine
|
||||
class Build
|
||||
{
|
||||
text = $STR_PITCH_TENT;
|
||||
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
|
||||
script = "spawn player_build;";
|
||||
require[] = {};
|
||||
consume[] = {"ItemTent"};
|
||||
create = "TentStorage";
|
||||
@@ -23,7 +23,7 @@ class ItemTent : CA_Magazine
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_270;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; // r_action_count = r_action_count + 1;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","ItemKnife"};
|
||||
output[] = {{"desert_net_kit",1}};
|
||||
@@ -32,7 +32,7 @@ class ItemTent : CA_Magazine
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_271;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; // r_action_count = r_action_count + 1;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","ItemKnife"};
|
||||
output[] = {{"forest_net_kit",1}};
|
||||
@@ -57,7 +57,7 @@ class ItemDomeTent : CA_Magazine
|
||||
class Build
|
||||
{
|
||||
text = $STR_PITCH_DOME_TENT;
|
||||
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
|
||||
script = "spawn player_build;";
|
||||
require[] = {};
|
||||
consume[] = {"ItemDomeTent"};
|
||||
create = "DomeTentStorage";
|
||||
@@ -67,7 +67,7 @@ class ItemDomeTent : CA_Magazine
|
||||
class Crafting1
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_271;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;"; // r_action_count = r_action_count + 1;
|
||||
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","ItemKnife"};
|
||||
output[] = {{"forest_net_kit",1}};
|
||||
@@ -95,7 +95,7 @@ class ItemDesertTent : CA_Magazine
|
||||
class Build
|
||||
{
|
||||
text = $STR_PITCH_DESERT_TENT;
|
||||
script = "spawn player_build;"; //r_action_count = r_action_count + 1; set in sqf
|
||||
script = "spawn player_build;";
|
||||
require[] = {};
|
||||
consume[] = {"ItemDesertTent"};
|
||||
create = "DesertTentStorage";
|
||||
@@ -103,7 +103,7 @@ class ItemDesertTent : CA_Magazine
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_270;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;"; // r_action_count = r_action_count + 1;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
requiretools[] = {"ItemToolbox","ItemKnife"};
|
||||
output[] = {{"desert_net_kit",1}};
|
||||
|
||||
Reference in New Issue
Block a user