Localize player_craftItem near check

This commit is contained in:
A Man
2019-10-20 20:18:41 +02:00
parent 8f10a36b99
commit ba8ff32cd7
4 changed files with 8 additions and 4 deletions

View File

@@ -66,7 +66,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> DZE_buildItem >> "ItemActi
_isNear = count (nearestObjects [_pos, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
if(_isNear == 0) then {
_abort = true;
_reason = localize "STR_BLD_name_ItemWorkshop";
_reason = localize "STR_EPOCH_WORKBENCH_NEARBY";
};
};
case "fueltank":

View File

@@ -66,7 +66,7 @@ _needNear = getArray (configFile >> "CfgMagazines" >> _item >> "ItemActions" >>
_isNear = count (nearestObjects [_pos, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
if(_isNear == 0) then {
_abort = true;
_reason = localize "STR_BLD_name_ItemWorkshop";
_reason = localize "STR_EPOCH_WORKBENCH_NEARBY";
};
};
case "fueltank":

View File

@@ -53,14 +53,14 @@ if ("fire" in _needNear) then {
_isNear = {inflamed _x} count (_pPos nearObjects _distance);
if(_isNear == 0) then {
_abort = true;
_reason = "fire";
_reason = localize "STR_EPOCH_FIRE";
};
};
if ("workshop" in _needNear) then {
_isNear = count (nearestObjects [player, ["Wooden_shed_DZ","WoodShack_DZ","WorkBench_DZ"], _distance]);
if(_isNear == 0) then {
_abort = true;
_reason = "workshop";
_reason = localize "STR_EPOCH_WORKBENCH_NEARBY";
};
};
if (_abort) exitWith {

View File

@@ -16853,6 +16853,10 @@
<German>Feuer (angezündet)</German>
<Czech>Ohniště (hořící)</Czech>
</Key>
<Key ID="STR_EPOCH_WORKBENCH_NEARBY">
<English>Workbench, Wooden Shed or Wood Shack</English>
<German>Werkbank, Holzschuppen oder Holzhütte</German>
</Key>
<Key ID="STR_EPOCH_HUMANS_NEARBY">
<English>Humans Nearby</English>
<German>Spieler in der Nähe</German>