mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
Performance
This commit is contained in:
parent
ea28d73468
commit
051450f010
@ -37,13 +37,13 @@ if ((_pos isEqualTo "ERROR") || ("_text" isEqualTo "ERROR")) exitWith
|
|||||||
|
|
||||||
_num = DMS_MissionCount;
|
_num = DMS_MissionCount;
|
||||||
|
|
||||||
call
|
switch (_difficulty) do
|
||||||
{
|
{
|
||||||
if(_difficulty == "easy") exitWith {_color = "ColorGreen"};
|
case "easy": {_color = "ColorGreen";};
|
||||||
if(_difficulty == "moderate") exitWith {_color = "ColorYellow"};
|
case "moderate": {_color = "ColorYellow";};
|
||||||
if(_difficulty == "difficult") exitWith {_color = "ColorRed"};
|
case "difficult": {_color = "ColorRed";};
|
||||||
if(_difficulty == "hardcore") exitWith {_color = "ColorBlack"};
|
case "hardcore" : {_color = "ColorBlack";};
|
||||||
_color = _difficulty;
|
default {_color = _difficulty;};
|
||||||
};
|
};
|
||||||
|
|
||||||
_circle = createMarker [format ["DMS_MissionMarkerCircle%1",_num], _pos];
|
_circle = createMarker [format ["DMS_MissionMarkerCircle%1",_num], _pos];
|
||||||
|
@ -83,10 +83,10 @@ if !(DMS_ai_default_items isEqualTo []) then
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
call
|
switch (_type) do
|
||||||
{
|
{
|
||||||
if (_type == "random") exitWith { _type = DMS_random_AI call BIS_fnc_selectRandom;};
|
case "random" : {_type = DMS_random_AI call BIS_fnc_selectRandom;};
|
||||||
if (_type == "unarmed") exitWith { _type = "assault";_unarmed = true; };
|
case "unarmed" : {_type = "assault";_unarmed = true;};
|
||||||
};
|
};
|
||||||
|
|
||||||
// Unit name
|
// Unit name
|
||||||
|
Loading…
Reference in New Issue
Block a user