mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Inlined selection check
This commit is contained in:
parent
5c33f7736c
commit
1253d1267c
@ -108,11 +108,11 @@ if (_type in _initializedClasses) exitWith {};
|
||||
} else {
|
||||
private "_action";
|
||||
_action = [_name, _text, _icon, _statement, _condition, {}, [_x, "MiscRepair"], _selection, 4] call EFUNC(interact_menu,createAction);
|
||||
if (_selection isEqualTo [0, 0, 0]) then {
|
||||
[_type, 0, ["ACE_MainActions", QGVAR(Repair)], _action] call EFUNC(interact_menu,addActionToClass);
|
||||
} else {
|
||||
[_type, 0, [], _action] call EFUNC(interact_menu,addActionToClass);
|
||||
}
|
||||
[ _type,
|
||||
0,
|
||||
if (_selection isEqualTo [0, 0 ,0]) then { ["ACE_MainActions", QGVAR(Repair)] } else { [] },
|
||||
_action
|
||||
] call EFUNC(interact_menu,addActionToClass);
|
||||
};
|
||||
};
|
||||
} forEach _hitPoints;
|
||||
|
Loading…
Reference in New Issue
Block a user