adjustments to errors generated in the .rpt

This commit is contained in:
Bear
2025-01-25 03:31:51 -03:00
parent f84e5ac7b0
commit 368ae82b7a
6 changed files with 55 additions and 9 deletions

View File

@@ -26,6 +26,10 @@ suits = [
];
headgears = [
"",
"",
"",
"",
"",
"",
"",
@@ -101,6 +105,20 @@ facewears = [
"CUP_G_WristWatch",
"G_EyeProtectors_F"
];
_unit forceAddUniform (selectRandom suits);
_unit addHeadgear (selectRandom headgears);
_unit addGoggles (selectRandom facewears);
_randomSuit = selectRandom suits
if (((_randomSuit) != "") || (!isNull(_randomSuit))) then
{
_unit forceAddUniform _randomSuit;
}; // IF Statement criado por que sim
_randomHeadgear = selectRandom headgears
if (((_randomHeadgear) != "") || (!isNull(_randomHeadgear))) then
{
_unit addHeadgear _randomHeadgear;
}; // IF Statement criado para parar com erros no log
_randomFacewears = selectRandom facewears
if (((_randomFacewears) != "") || (!isNull(_randomFacewears))) then
{
_unit addGoggles _randomFacewears;
}; // IF Statement criado para parar com erros no log