mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix hunger and thirst "working" hits way too high
By default this was multiplying all "Working" hunger and thirst hits by
10 @icomrade because (1 min 0.1) always picks 0.1. For example:
dayz_thirst = dayz_thirst + (5 / 0.1)
dayz_thirst = dayz_thirst + 50
A config variable isn't really needed for this, since it is only used in
one file. It can be easily configured in compiles.sqf which most servers
already overwrite anyway.
This reverts 62b7c21.
This commit is contained in:
@@ -334,10 +334,10 @@ if (!isDedicated) then {
|
||||
};
|
||||
|
||||
case "Working": {
|
||||
if (_calorieCount > 0) then { dayz_nutrition = dayz_nutrition - (_calorieCount / ((DZE_NutritionDivisor select 0) min 0.1)); };
|
||||
if (_thirstCount > 0) then { dayz_thirst = dayz_thirst + (_thirstCount / ((DZE_NutritionDivisor select 1) min 0.1)); };
|
||||
if (_hungerCount > 0) then { dayz_hunger = dayz_hunger + (_hungerCount / ((DZE_NutritionDivisor select 2) min 0.1)); };
|
||||
if (_tempCount > 0) then { dayz_temperatur = dayz_temperatur + (_tempCount / ((DZE_NutritionDivisor select 3) min 0.1)); };
|
||||
if (_calorieCount > 0) then { dayz_nutrition = dayz_nutrition - _calorieCount; };
|
||||
if (_thirstCount > 0) then { dayz_thirst = dayz_thirst + _thirstCount; };
|
||||
if (_hungerCount > 0) then { dayz_hunger = dayz_hunger + _hungerCount; };
|
||||
if (_tempCount > 0) then { dayz_temperatur = dayz_temperatur + _tempCount; };
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user