/*
	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 "scoobysnax": {_var = "license_civ_scoobysnax"}; //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 "meth": {_var = "license_civ_meth"};  
			case "uran": {_var = "license_civ_uran"};
			case "warhead": {_var = "license_civ_warhead"};
			case "diamond": {_var = "license_civ_diamond"};
			case "salt": {_var = "license_civ_salt"};
			case "cocaine": {_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 "grapes": {_var = "license_civ_grapes"};
            case "moonshine": {_var = "license_civ_moonshine"};	
            case "tabak": {_var = "license_civ_tabak"};
            case "zigarren": {_var = "license_civ_zigarren"};
			
			
			// licenzen
			case "adac": {_var = "license_adac"};
			case "adac_air": {_var = "license_adac_air"};
			case "adac_truck": {_var = "license_adac_truck"};
			case "adac_driver": {_var = "license_adac_driver"};
			


			// goods 
			case "sugar": {_var = "license_civ_sugar"};
			case "kokain": {_var = "license_civ_kokain"};
			case "silver":  {_var = "license_civ_silver"};
			case "gold":  {_var = "license_civ_gold"};
            case "liquor": {_var = "license_civ_liquor"};
            case "beer": {_var = "license_civ_liquor"};
            case "stiller": {_var = "license_civ_stiller"};
            case "whiskey": {_var = "license_civ_stiller"};
            case "moonshine": {_var = "license_civ_stiller"};
            case "bottledshine": {_var = "license_civ_bottler"};
            case "bottledbeer": {_var = "license_civ_bottler"};
            case "bottledwhiskey": {_var = "license_civ_bottler"};
            case "bottler": {_var = "license_civ_bottler"};
            case "glassbottle": {_var = "license_civ_bottler"};
			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_scoobysnax": {_var = "scoobysnax"}; //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_meth": {_var = "meth"}; 
			case "license_civ_uran": {_var = "uran"};
			case "license_civ_warhead": {_var = "warhead"};
			case "license_civ_diamond": {_var = "diamond"};
			case "license_civ_salt": {_var = "salt"};
			case "license_civ_coke": {_var = "cocaine"};
			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_grapes": {_var = "grapes"};
            case "license_civ_moonshine": {_var = "moonshine"};
            case "license_civ_tabak": {_var = "tabak"};
            case "license_civ_zigarren": {_var = "zigarren"};
			
			// licenzen
			case "license_adac": {_var = "adac"};
			case "license_adac_air": {_var = "adac_air"};
			case "license_adac_truck": {_var = "adac_truck"};
			case "license_adac_driver": {_var = "adac_driver"};


			
			// goods 
			case "license_civ_sugar": {_var = "sugar"};
			case "license_civ_kokain": {_var = "kokain"};
			case "license_civ_silver":  {_var = "silver"};
			case "license_civ_gold":  {_var = "gold"};
			
			
            case "license_civ_liquor": {_var = "liquor"};
            case "license_civ_liquor": {_var = "beer"};
            case "license_civ_stiller": {_var = "stiller"};
            case "license_civ_stiller": {_var = "whiskey"};
            case "license_civ_stiller": {_var = "moonshine"};
            case "license_civ_bottler": {_var = "bottledshine"};
            case "license_civ_bottler": {_var = "bottledbeer"};
            case "license_civ_bottler": {_var = "bottledwhiskey"};
            case "license_civ_bottler": {_var = "bottler"};
            case "license_civ_bottler": {_var = "glassbottle"};
			default {_var = ""};
		};
	};
};

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