/*
	File: fn_licenseType.sqf
	Author: Bryan "Tonic" Boardwine
	
	Description:
	Returns the short-var of the license name to a long var and display name.
*/
private["_type","_ret","_var","_mode"];
_type = [_this,0,"",[""]] call BIS_fnc_param;
_mode = [_this,1,-1,[0]] call BIS_fnc_param;
if(_type == "" OR _mode == -1) exitWith {[]};

switch (_mode) do
{
	case 0:
	{
		switch (_type) do
		{
			case "driver": {_var = "license_civ_driver"}; //Drivers License cost
			case "boat": {_var = "license_civ_boat"}; //Boating license cost
			case "pilot": {_var = "license_civ_air"}; //Pilot/air license cost
			case "gun": {_var = "license_civ_gun"}; //Firearm/gun license cost
			case "dive": {_var = "license_civ_dive"}; //Diving license cost
			case "oil": {_var = "license_civ_oil"}; //Oil processing license cost
			case "cair": {_var = "license_cop_air"}; //Cop Pilot License cost
			case "swat": {_var = "license_cop_swat"}; //Swat License cost
			case "cg": {_var = "license_cop_cg"}; //Coast guard license cost
			case "heroin": {_var = "license_civ_heroin"}; //Heroin processing license cost
			case "marijuana": {_var = "license_civ_marijuana"}; //Marijuana processing license cost
			case "medmarijuana": {_var = "license_civ_medmarijuana"}; //Medical Marijuana processing license cost
			case "gang": {_var = "license_civ_gang"}; //Gang license cost
			case "rebel": {_var = "license_civ_rebel"}; //Rebel License
			case "truck":{_var = "license_civ_truck"}; //Truck License
			case "diamond": {_var = "license_civ_diamond"};
			case "salt": {_var = "license_civ_salt"};
			case "cokep": {_var = "license_civ_coke"};
			case "sand": {_var = "license_civ_sand"};
			case "iron": {_var = "license_civ_iron"};
			case "copper": {_var = "license_civ_copper"};
			case "cement": {_var = "license_civ_cement"};
			case "mair": {_var = "license_med_air"};
			case "home": {_var = "license_civ_home"};
			case "insurance": {_var = "license_civ_insurance"};
			case "Taxi": {_var = "license_civ_Taxi"};
			case "Bus": {_var = "license_civ_Bus"};
			case "Lawyer": {_var = "license_civ_Lawyer"};
			case "Marksmen": {_var = "license_civ_Marksmen"};
			case "Elite": {_var = "license_civ_Elite"};
			case "lsd": {_var = "license_civ_lsd"};
			case "bountyhunter": {_var = "license_civ_bountyhunter"};
			case "ecstasy": {_var = "license_civ_ecstasy"};
			case "riflemen": {_var = "license_civ_riflemen"};
			case "diystore": {_var = "license_civ_diystore"};
			case "gundealer": {_var = "license_civ_gundealer"};
			case "loans": {_var = "license_civ_loans"};
			case "MORNINGSTAR": {_var = "license_civ_MORNINGSTAR"};
			case "NARCOS": {_var = "license_civ_NARCOS"};
			case "SHADOWS": {_var = "license_civ_SHADOWS"};
			case "TEC": {_var = "license_civ_TEC"};
			case "BSOC": {_var = "license_civ_BSOC"};
			case "news": {_var = "license_civ_news"};
			case "terrorist": {_var = "license_civ_terrorist"};
			case "mafia": {_var = "license_civ_mafia"};
			case "guard": {_var = "license_civ_guard"};
			case "cartel": {_var = "license_civ_cartel"};
			default {_var = ""};
		};
	};
	
	case 1:
	{
		switch (_type) do
		{
			case "license_civ_driver": {_var = "driver"}; //Drivers License cost
			case "license_civ_boat": {_var = "boat"}; //Boating license cost
			case "license_civ_air": {_var = "pilot"}; //Pilot/air license cost
			case "license_civ_gun": {_var = "gun"}; //Firearm/gun license cost
			case "license_civ_dive": {_var = "dive"}; //Diving license cost
			case "license_civ_oil": {_var = "oil"}; //Oil processing license cost
			case "license_cop_air": {_var = "cair"}; //Cop Pilot License cost
			case "license_cop_swat": {_var = "swat"}; //Swat License cost
			case "license_cop_cg": {_var = "cg"}; //Coast guard license cost
			case "license_civ_heroin": {_var = "heroin"}; //Heroin processing license cost
			case "license_civ_marijuana": {_var = "marijuana"}; //Marijuana processing license cost
			case "license_civ_medmarijuana": {_var = "medmarijuana"}; //Medical Marijuana processing license cost
			case "license_civ_gang": {_var = "gang"}; //Gang license cost
			case "license_civ_rebel": {_var = "rebel"}; //Rebel License
			case "license_civ_truck":{_var = "truck"}; //Truck License
			case "license_civ_diamond": {_var = "diamond"};
			case "license_civ_salt": {_var = "salt"};
			case "license_civ_coke": {_var = "cokep"};
			case "license_civ_sand": {_var = "sand"};
			case "license_civ_iron": {_var = "iron"};
			case "license_civ_copper": {_var = "copper"};
			case "license_civ_cement": {_var = "cement"};
			case "license_med_air": {_var = "mair"};
			case "license_civ_home": {_var = "home"};
			case "license_civ_insurance": {_var = "insurance"};
			case "license_civ_Taxi": {_var = "Taxi"};
			case "license_civ_Bus": {_var = "Bus"};
			case "license_civ_Lawyer": {_var = "Lawyer"};
			case "license_civ_Marksmen": {_var = "Marksmen"};
			case "license_civ_Elite": {_var = "Elite"};
			case "license_civ_lsd": {_var = "lsd"};
			case "license_civ_bountyhunter": {_var = "bountyhunter"};
			case "license_civ_ecstasy": {_var = "ecstasy"};
			case "license_civ_riflemen": {_var = "riflemen"};
			case "license_civ_diystore": {_var = "diystore"};
			case "license_civ_gundealer": {_var = "gundealer"};
			case "license_civ_loans": {_var = "loans"};
			case "license_civ_MORNINGSTAR": {_var = "MORNINGSTAR"};
			case "license_civ_NARCOS": {_var = "NARCOS"};
			case "license_civ_SHADOWS": {_var = "SHADOWS"};
			case "license_civ_TEC": {_var = "TEC"};
			case "license_civ_BSOC": {_var = "BSOC"};
			case "license_civ_news": {_var = "news"};
			case "license_civ_terrorist": {_var = "terrorist"};
			case "license_civ_mafia": {_var = "mafia"};
			case "license_civ_guard": {_var = "guard"};
			case "license_civ_cartel": {_var = "cartel"};
			default {_var = ""};
		};
	};
};

_ret = [_var,(if(_var != "") then {([_var] call life_fnc_varToStr)})];
_ret;