Form better message when not enough fuel is in a fuel tank

This commit is contained in:
A Man
2021-06-06 21:29:41 +02:00
parent 6becd3d89f
commit 93bf494c3a
2 changed files with 4 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ _qty = _qty5 + _qty20 + _qty210;
_fuelNeeded = (_qty5 * 5) + (_qty20 * 20) + (_qty210 * 210);
//Inform if there is not enough to fill all containers in inventory, then proceed to fill available containers
if (_fuelAmount < _fuelNeeded) then {format[localize "str_fill_notenough",typeOf _cursorTarget,_fuelAmount,_fuelNeeded] call dayz_rollingMessages;};
if (_fuelAmount < _fuelNeeded) then {format[localize "str_fill_notenough",_fuelAmount,_fuelNeeded] call dayz_rollingMessages;};
//If there is not enough to fill any of their cans then exit
if (_fuelAmount < 5 or (_fuelAmount < 20 && _qty5 == 0) or (_fuelAmount < 210 && (_qty5 == 0 && _qty20 == 0))) exitWith {dayz_actionInProgress = false;};

View File

@@ -1279,9 +1279,9 @@
<Dutch>Deze %1 heeft niet voldoende brandstof.</Dutch>
</Key>
<Key ID="str_fill_notenough">
<English>%1 does not have enough fuel to fill all containers. Estimated %2 litres left (You needed %3 litres)</English>
<German>%1 hat nicht genug Kraftstoff, um alle Kraftstoffbehälter zu füllen. Es sind noch ungefähr %2 Liter übrig. (Du brauchst %3 Liter)</German>
<Russian>Не достаточно топлива для заполнения всех контейнеров. Осталось около %2л. (Вам нужно %3л)</Russian>
<English>The fuel tank does not have enough fuel to fill all containers. Estimated %1 litres left (You needed %2 litres)</English>
<German>Der Treibstofftank hat nicht genug Kraftstoff, um alle Kraftstoffbehälter zu füllen. Es sind noch ungefähr %1 Liter übrig. (Du brauchst %2 Liter)</German>
<Russian>Не достаточно топлива для заполнения всех контейнеров. Осталось около %1л. (Вам нужно %2л)</Russian>
</Key>
<Key ID="str_fill_success">
<English>You have filled %1 fuel container(s) with fuel. %2 has an estimated %3 litres of fuel left.</English>