mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
give attributes random data to use 2 decimal places
This commit is contained in:
parent
2f59263638
commit
d3b621b827
@ -54,7 +54,7 @@ if (_customVarIndex != -1) then {
|
||||
};
|
||||
_currentVal = missionNamespace getVariable [_varName, _defaultVarValues select _customVarIndex];
|
||||
if (_randomizeData isEqualTo 1) then {
|
||||
_data = round(random _data);
|
||||
_data = parseNumber ((random _data) toFixed 2);
|
||||
};
|
||||
if (_data != 0) then {
|
||||
_newValue = ((_currentVal + _data) min _max) max _min;
|
||||
|
Loading…
Reference in New Issue
Block a user