From 24f6a0ab9aaabf2b7cf5da1ea450daf220bf17e6 Mon Sep 17 00:00:00 2001 From: icomrade Date: Sat, 30 Jul 2016 17:06:46 -0400 Subject: [PATCH] Correct build text --- SQF/dayz_code/actions/modular_build.sqf | 4 ++-- SQF/dayz_code/actions/player_build.sqf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SQF/dayz_code/actions/modular_build.sqf b/SQF/dayz_code/actions/modular_build.sqf index b67b9c7c0..caae3aac2 100644 --- a/SQF/dayz_code/actions/modular_build.sqf +++ b/SQF/dayz_code/actions/modular_build.sqf @@ -417,6 +417,8 @@ if (_canBuild select 0) then { while {_isOk} do { //publish phase + format[localize "str_epoch_player_139",_text, (_counter + 1),_limit] call dayz_rollingMessages; //report how many steps are done out of total limit + ["Working",0,[100,15,10,0]] call dayz_NutritionSystem; player playActionNow "Medic"; //animation @@ -461,8 +463,6 @@ if (_canBuild select 0) then { _counter = _counter + 1; }; - format[localize "str_epoch_player_139",_text, _counter,_limit] call dayz_rollingMessages; //report how many steps are done out of total limit - if(_counter == _limit) exitWith { //if all steps done proceed with next step, otherwise cancel publish _isOk = false; _proceed = true; diff --git a/SQF/dayz_code/actions/player_build.sqf b/SQF/dayz_code/actions/player_build.sqf index a0ebcf28c..c8d0c7381 100644 --- a/SQF/dayz_code/actions/player_build.sqf +++ b/SQF/dayz_code/actions/player_build.sqf @@ -327,6 +327,8 @@ if (_canBuild select 0) then { _counter = 0; while {_isOk} do { + + format[localize "str_epoch_player_139",_text, (_counter + 1),_limit] call dayz_rollingMessages; ["Working",0,[100,15,10,0]] call dayz_NutritionSystem; player playActionNow "Medic"; @@ -371,8 +373,6 @@ if (_canBuild select 0) then { _counter = _counter + 1; }; - format[localize "str_epoch_player_139",_text, _counter,_limit] call dayz_rollingMessages; - if(_counter == _limit) exitWith { _isOk = false; _proceed = true;