Refactor getAdaptiveVehicle

This commit is contained in:
Wyqer 2019-12-03 16:56:30 +01:00
parent 49b4831c35
commit 54188c3adc
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 2 additions and 6 deletions

View File

@ -2,7 +2,7 @@
File: fn_getAdaptiveVehicle.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2019-11-25
Last Update: 2019-11-25
Last Update: 2019-11-26
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
@ -15,8 +15,4 @@
Vehicle classname [STRING]
*/
if (combat_readiness < 40) then {
selectRandom opfor_vehicles_low_intensity
} else {
selectRandom opfor_vehicles
};
selectRandom ([opfor_vehicles, opfor_vehicles_low_intensity] select (combat_readiness < 40))