:: itemAvailability [script]

/* intended to condense the clothing/toy/etc availability checks into something less asinine */
window.isItemAccessible = function(string) {

	const V = State.variables;

	if (State.variables.cheatMode === 1){
		return true;
	} else {
		switch(string) {
		case 'attractive lingerie for a pregnant woman':
			if ((V.arcologies[0].FSRepopulationFocus > 0) || (V.clothesBoughtMaternityLingerie === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a bunny outfit':
			if ((V.arcologies[0].FSGenderFundamentalist > 0) || (V.clothesBoughtBunny === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'body oil':
			if ((V.arcologies[0].FSPhysicalIdealist > 0) || (V.clothesBoughtOil === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'chains':
			if ((V.arcologies[0].FSDegradationist > 0) || (V.clothesBoughtChains === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a chattel habit':
			if ((V.arcologies[0].FSChattelReligionist > 0) || (V.clothesBoughtHabit === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'conservative clothing':
			if ((V.arcologies[0].FSPaternalist > 0) || (V.clothesBoughtConservative === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'harem gauze':
			if ((V.arcologies[0].FSArabianRevivalist > 0) || (V.clothesBoughtHarem === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a huipil':
			if ((V.arcologies[0].FSAztecRevivalist > 0) || (V.clothesBoughtHuipil === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a kimono':
			if ((V.arcologies[0].FSEdoRevivalist > 0) || (V.clothesBoughtKimono === 1) || (V.continent === 'Japan')) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a maternity dress':
			if ((V.arcologies[0].FSRepopulationFocus > 0) || (V.clothesBoughtMaternityDress === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a slutty qipao':
			if ((V.arcologies[0].FSChineseRevivalist > 0) || (V.clothesBoughtQipao === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a long qipao':
			if ((V.arcologies[0].FSChineseRevivalist > 0) || (V.clothesBoughtCultural === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'stretch pants and a crop-top':
			if ((V.arcologies[0].FSHedonisticDecadence > 0) || (V.clothesBoughtLazyClothes === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a toga':
			if ((V.arcologies[0].FSRomanRevivalist > 0) || (V.clothesBoughtToga === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'Western clothing':
			if ((V.arcologies[0].FSPastoralist > 0) || (V.clothesBoughtWestern === 1)) {
				return true;
			} else {
				return false;
			}
			break;

		case 'battlearmor':
		case 'a military uniform':
		case 'a red army uniform':
		case 'battledress':
			if (V.clothesBoughtMilitary === 1) {
				return true;
			} else {
				return false;
			}
			break;

		case 'a biyelgee costume':
		case 'a dirndl':
		case 'lederhosen':
		case 'a mounty outfit':
			if (V.clothesBoughtCultural === 1) {
				return true;
			} else {
				return false;
			}
			break;

		case 'a burqa':
		case 'a burkini':
		case 'a blouse and hijab':
		case 'a niqab and abaya':
			if (V.clothesBoughtMiddleEastern === 1 || V.continent === 'the Middle East') {
				return true;
			} else {
				return false;
			}
			break;
			
		case 'a klan robe':
		case 'a schutzstaffel uniform':
		case 'a slutty schutzstaffel uniform':
			if (V.clothesBoughtPol === 1) {
				return true;
			} else {
				return false;
			}
			break;

		case 'shimapan panties':
			if (V.clothesBoughtPantsu === 1 || V.continent === 'Japan') {
				return true;
			} else {
				return false;
			}
			break;

		case 'bowtie':
			if ((V.arcologies[0].FSGenderFundamentalist > 0) || (V.clothesBoughtBunny === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'ancient Egyptian':
			if ((V.arcologies[0].FSEgyptianRevivalist > 0) || (V.clothesBoughtEgypt === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'massive dildo gag':
			if (V.toysBoughtGags === 1) {
				return true;
			} else {
				return false;
			}
			break;
		case 'a small empathy belly': case 'a medium empathy belly': case 'a large empathy belly': case 'a huge empathy belly':
			if ((V.arcologies[0].FSRepopulationFocus > 0) || (V.clothesBoughtBelly === 1)) {
				return true;
			} else {
				return false;
			}
			break;
		case 'long dildo': case 'long, large dildo': case 'long, huge dildo':
			if (V.toysBoughtDildos === 1) {
				return true;
			} else {
				return false;
			}
			break;
		case 'long plug': case 'long, large plug': case 'long, huge plug':
			if (V.toysBoughtButtPlugs === 1) {
				return true;
			} else {
				return false;
			}
			break;
		case 'tail': case 'cat tail': case 'fox tail':
			if (V.toysBoughtButtPlugTails === 1) {
				return true;
			} else {
				return false;
			}
			break;
		default:
			return true;
			break;
		}
	}
};