diff --git a/js/003-data/miscData.js b/js/003-data/miscData.js index 31e09d22812e5a63eeba0fb70e8a1a13e6677166..4a0891fabf9fc25af3964c9523e2d61f1218297f 100644 --- a/js/003-data/miscData.js +++ b/js/003-data/miscData.js @@ -1912,49 +1912,49 @@ App.Data.misc = { name: "Maternity lingerie", value: "attractive lingerie for a pregnant woman", fs: "FSRepopulationFocus", - unlock: function(slave) { if (V.clothesBoughtMaternityLingerie > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtMaternityLingerie > 0) { return true; } } }, { name: "Bunny outfit", value: "a bunny outfit", fs: "FSGenderFundamentalist", - unlock: function(slave) { if (V.clothesBoughtBunny > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtBunny > 0) { return true; } } }, { name: "Body oil", value: "body oil", fs: "FSPhysicalIdealist", - unlock: function(slave) { if (V.clothesBoughtOil > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtOil > 0) { return true; } } }, { name: "Chattel habit", value: "a chattel habit", fs: "FSChattelReligionist", - unlock: function(slave) { if (V.clothesBoughtHabit > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtHabit > 0) { return true; } } }, { name: "Conservative clothing", value: "conservative clothing", fs: "FSPaternalist", - unlock: function(slave) { if (V.clothesBoughtConservative > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtConservative > 0) { return true; } } }, { name: "Harem gauze", value: "harem gauze", fs: "FSArabianRevivalist", - unlock: function(slave) { if (V.clothesBoughtHarem > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtHarem > 0) { return true; } } }, { name: "Huipil", value: "a huipil", fs: "FSAztecRevivalist", - unlock: function(slave) { if (V.clothesBoughtHuipil > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtHuipil > 0) { return true; } } }, { name: "Kimono", value: "a kimono", fs: "FSEdoRevivalist", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtKimono > 0 || V.continent === "Japan") { return true; } @@ -1964,69 +1964,69 @@ App.Data.misc = { name: "Maternity dress", value: "a maternity dress", fs: "FSRepopulationFocus", - unlock: function(slave) { if (V.clothesBoughtMaternityDress > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtMaternityDress > 0) { return true; } } }, { name: "Qipao (slutty)", value: "a slutty qipao", fs: "FSChineseRevivalist", - unlock: function(slave) { if (V.clothesBoughtQipao > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtQipao > 0) { return true; } } }, { name: "Qipao (long)", value: "a long qipao", fs: "FSChineseRevivalist", - unlock: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } } }, { name: "Stretch pants and a crop-top", value: "stretch pants and a crop-top", fs: "FSHedonisticDecadence", - unlock: function(slave) { if (V.clothesBoughtLazyClothes > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtLazyClothes > 0) { return true; } } }, { name: "Toga", value: "a toga", fs: "FSRomanRevivalist", - unlock: function(slave) { if (V.clothesBoughtToga > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtToga > 0) { return true; } } }, { name: "Western clothing", value: "Western clothing", fs: "FSPastoralist", - unlock: function(slave) { if (V.clothesBoughtWestern > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtWestern > 0) { return true; } } }, { name: "Courtesan dress", value: "a courtesan dress", fs: "FSSlaveProfessionalism", - unlock: function(slave) { if (V.clothesBoughtCourtesan > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtCourtesan > 0) { return true; } } }, { name: "Bimbo outfit", value: "a bimbo outfit", fs: "FSIntellectualDependency", - unlock: function(slave) { if (V.clothesBoughtBimbo > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtBimbo > 0) { return true; } } }, { name: "Petite admi outfit", value: "petite admi outfit", fs: "FSPetiteAdmiration", - unlock: function(slave) { if (V.clothesBoughtPetite > 0) { return true; } } - }, - {name: "Battlearmor", value: "battlearmor", unlock: function(slave) { if (V.clothesBoughtMilitary > 0) { return true; } }}, - {name: "Military uniform", value: "a military uniform", unlock: function(slave) { if (V.clothesBoughtMilitary > 0) { return true; } }}, - {name: "Red Army uniform", value: "a red army uniform", unlock: function(slave) { if (V.clothesBoughtMilitary > 0) { return true; } }}, - {name: "Battledress", value: "battledress", unlock: function(slave) { if (V.clothesBoughtMilitary > 0) { return true; } }}, - {name: "Biyelgee costume", value: "a biyelgee costume", unlock: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, - {name: "Dirndl", value: "a dirndl", unlock: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, - {name: "Lederhosen", value: "lederhosen", unlock: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, - {name: "Mounty outfit", value: "a mounty outfit", unlock: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, - {name: "Hanbok", value: "a hanbok", unlock: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, + isUnlocked: function(slave) { if (V.clothesBoughtPetite > 0) { return true; } } + }, + {name: "Battlearmor", value: "battlearmor", isUnlocked: function(slave) { if (V.clothesBoughtMilitary > 0) { return true; } }}, + {name: "Military uniform", value: "a military uniform", isUnlocked: function(slave) { if (V.clothesBoughtMilitary > 0) { return true; } }}, + {name: "Red Army uniform", value: "a red army uniform", isUnlocked: function(slave) { if (V.clothesBoughtMilitary > 0) { return true; } }}, + {name: "Battledress", value: "battledress", isUnlocked: function(slave) { if (V.clothesBoughtMilitary > 0) { return true; } }}, + {name: "Biyelgee costume", value: "a biyelgee costume", isUnlocked: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, + {name: "Dirndl", value: "a dirndl", isUnlocked: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, + {name: "Lederhosen", value: "lederhosen", isUnlocked: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, + {name: "Mounty outfit", value: "a mounty outfit", isUnlocked: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, + {name: "Hanbok", value: "a hanbok", isUnlocked: function(slave) { if (V.clothesBoughtCultural > 0) { return true; } }}, { name: "Burqa", value: "a burqa", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtMiddleEastern > 0 || V.continent === "the Middle East") { return true; } @@ -2035,7 +2035,7 @@ App.Data.misc = { { name: "Niqab and abaya", value: "a niqab and abaya", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtMiddleEastern > 0 || V.continent === "the Middle East") { return true; } @@ -2044,7 +2044,7 @@ App.Data.misc = { { name: "Hijab and blouse", value: "a hijab and blouse", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtConservative > 0 && (V.clothesBoughtMiddleEastern > 0 || V.continent === "the Middle East")) { return true; } @@ -2053,67 +2053,67 @@ App.Data.misc = { { name: "Burkini", value: "a burkini", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtSwimwear > 0 && (V.clothesBoughtMiddleEastern > 0 || V.continent === "the Middle East")) { return true; } } }, - {name: "Santa dress", value: "a Santa dress", unlock: function(slave) { if (V.clothesBoughtCostume > 0) { return true; } }}, + {name: "Santa dress", value: "a Santa dress", isUnlocked: function(slave) { if (V.clothesBoughtCostume > 0) { return true; } }}, - {name: "Klan robe", value: "a klan robe", unlock: function(slave) { if (V.clothesBoughtPol > 0) { return true; } }}, - {name: "Slutty klan robe", value: "a slutty klan robe", unlock: function(slave) { if (V.clothesBoughtPol > 0) { return true; } }}, - {name: "Schutzstaffel uniform", value: "a schutzstaffel uniform", unlock: function(slave) { if (V.clothesBoughtPol > 0) { return true; } }}, - {name: "Slutty schutzstaffel uniform", value: "a slutty schutzstaffel uniform", unlock: function(slave) { if (V.clothesBoughtPol > 0) { return true; } }}, + {name: "Klan robe", value: "a klan robe", isUnlocked: function(slave) { if (V.clothesBoughtPol > 0) { return true; } }}, + {name: "Slutty klan robe", value: "a slutty klan robe", isUnlocked: function(slave) { if (V.clothesBoughtPol > 0) { return true; } }}, + {name: "Schutzstaffel uniform", value: "a schutzstaffel uniform", isUnlocked: function(slave) { if (V.clothesBoughtPol > 0) { return true; } }}, + {name: "Slutty schutzstaffel uniform", value: "a slutty schutzstaffel uniform", isUnlocked: function(slave) { if (V.clothesBoughtPol > 0) { return true; } }}, - {name: "Nice business attire", value: "nice business attire", unlock: function(slave) { if (V.clothesBoughtCareer > 0) { return true; } }}, - {name: "Nurse (nice)", value: "a nice nurse outfit", unlock: function(slave) { if (V.clothesBoughtCareer > 0) { return true; } }}, - {name: "Police uniform", value: "a police uniform", unlock: function(slave) { if (V.clothesBoughtCareer > 0) { return true; } }}, + {name: "Nice business attire", value: "nice business attire", isUnlocked: function(slave) { if (V.clothesBoughtCareer > 0) { return true; } }}, + {name: "Nurse (nice)", value: "a nice nurse outfit", isUnlocked: function(slave) { if (V.clothesBoughtCareer > 0) { return true; } }}, + {name: "Police uniform", value: "a police uniform", isUnlocked: function(slave) { if (V.clothesBoughtCareer > 0) { return true; } }}, { name: "Maid (nice)", value: "a nice maid outfit", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtCareer > 0 || V.PC.career === "servant") { return true; } } }, - {name: "Ballgown", value: "a ball gown", unlock: function(slave) { if (V.clothesBoughtDresses > 0) { return true; } }}, - {name: "Gothic lolita dress", value: "a gothic lolita dress", unlock: function(slave) { if (V.clothesBoughtDresses > 0) { return true; } }}, - - {name: "Cybersuit", value: "a cybersuit", unlock: function(slave) { if (V.clothesBoughtBodysuits > 0) { return true; } }}, - {name: "Latex catsuit", value: "a latex catsuit", unlock: function(slave) { if (V.clothesBoughtBodysuits > 0) { return true; } }}, - - {name: "Button-up shirt and panties", value: "a button-up shirt and panties", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Button-up shirt", value: "a button-up shirt", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Cutoffs", value: "cutoffs", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Jeans", value: "jeans", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Leather pants and a tube top", value: "leather pants and a tube top", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Leather pants", value: "leather pants", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Oversized t-shirt", value: "an oversized t-shirt", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Sweater and cutoffs", value: "a sweater and cutoffs", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Sweater and panties", value: "a sweater and panties", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Sweater", value: "a sweater", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "T-shirt and jeans", value: "a t-shirt and jeans", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "T-shirt and panties", value: "a t-shirt and panties", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "T-shirt", value: "a t-shirt", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Tank-top and panties", value: "a tank-top and panties", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Tank-top", value: "a tank-top", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - {name: "Tube top", value: "a tube top", unlock: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, - - {name: "Boyshorts", value: "boyshorts", unlock: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, - {name: "Bra", value: "a bra", unlock: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, - {name: "Kitty lingerie", value: "kitty lingerie", unlock: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, - {name: "Panties and pasties", value: "panties and pasties", unlock: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, - {name: "Skimpy loincloth", value: "a skimpy loincloth", unlock: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, - {name: "Thong", value: "a thong", unlock: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, - {name: "Pasties", value: "pasties", unlock: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, + {name: "Ballgown", value: "a ball gown", isUnlocked: function(slave) { if (V.clothesBoughtDresses > 0) { return true; } }}, + {name: "Gothic lolita dress", value: "a gothic lolita dress", isUnlocked: function(slave) { if (V.clothesBoughtDresses > 0) { return true; } }}, + + {name: "Cybersuit", value: "a cybersuit", isUnlocked: function(slave) { if (V.clothesBoughtBodysuits > 0) { return true; } }}, + {name: "Latex catsuit", value: "a latex catsuit", isUnlocked: function(slave) { if (V.clothesBoughtBodysuits > 0) { return true; } }}, + + {name: "Button-up shirt and panties", value: "a button-up shirt and panties", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Button-up shirt", value: "a button-up shirt", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Cutoffs", value: "cutoffs", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Jeans", value: "jeans", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Leather pants and a tube top", value: "leather pants and a tube top", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Leather pants", value: "leather pants", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Oversized t-shirt", value: "an oversized t-shirt", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Sweater and cutoffs", value: "a sweater and cutoffs", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Sweater and panties", value: "a sweater and panties", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Sweater", value: "a sweater", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "T-shirt and jeans", value: "a t-shirt and jeans", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "T-shirt and panties", value: "a t-shirt and panties", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "T-shirt", value: "a t-shirt", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Tank-top and panties", value: "a tank-top and panties", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Tank-top", value: "a tank-top", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + {name: "Tube top", value: "a tube top", isUnlocked: function(slave) { if (V.clothesBoughtCasual > 0) { return true; } }}, + + {name: "Boyshorts", value: "boyshorts", isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, + {name: "Bra", value: "a bra", isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, + {name: "Kitty lingerie", value: "kitty lingerie", isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, + {name: "Panties and pasties", value: "panties and pasties", isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, + {name: "Skimpy loincloth", value: "a skimpy loincloth", isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, + {name: "Thong", value: "a thong", isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, + {name: "Pasties", value: "pasties", isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0) { return true; } }}, { name: "Leather pants and pasties", value: "leather pants and pasties", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0 && V.clothesBoughtCasual > 0) { return true; } @@ -2122,7 +2122,7 @@ App.Data.misc = { { name: "T-shirt and thong", value: "a t-shirt and thong", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0 && V.clothesBoughtCasual > 0) { return true; } @@ -2131,7 +2131,7 @@ App.Data.misc = { { name: "Tube top and thong", value: "a tube top and thong", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0 && V.clothesBoughtCasual > 0) { return true; } @@ -2140,34 +2140,34 @@ App.Data.misc = { { name: "Oversized t-shirt and boyshorts", value: "an oversized t-shirt and boyshorts", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtUnderwear > 0 && V.clothesBoughtCasual > 0) { return true; } } }, - {name: "Sport shorts and a sports bra", value: "sport shorts and a sports bra", unlock: function(slave) { if (V.clothesBoughtSports > 0) { return true; } }}, - {name: "Sport shorts", value: "sport shorts", unlock: function(slave) { if (V.clothesBoughtSports > 0) { return true; } }}, - {name: "Sports bra", value: "a sports bra", unlock: function(slave) { if (V.clothesBoughtSports > 0) { return true; } }}, + {name: "Sport shorts and a sports bra", value: "sport shorts and a sports bra", isUnlocked: function(slave) { if (V.clothesBoughtSports > 0) { return true; } }}, + {name: "Sport shorts", value: "sport shorts", isUnlocked: function(slave) { if (V.clothesBoughtSports > 0) { return true; } }}, + {name: "Sports bra", value: "a sports bra", isUnlocked: function(slave) { if (V.clothesBoughtSports > 0) { return true; } }}, { name: "Sport shorts and a t-shirt", value: "sport shorts and a t-shirt", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtSports && V.clothesBoughtCasual) { return true; } } }, - {name: "Pony outfit (nice)", value: "a nice pony outfit", unlock: function(slave) { if (V.clothesBoughtPony > 0) { return true; } }}, - {name: "Pony outfit (slutty)", value: "a slutty pony outfit", unlock: function(slave) { if (V.clothesBoughtPony > 0) { return true; } }}, + {name: "Pony outfit (nice)", value: "a nice pony outfit", isUnlocked: function(slave) { if (V.clothesBoughtPony > 0) { return true; } }}, + {name: "Pony outfit (slutty)", value: "a slutty pony outfit", isUnlocked: function(slave) { if (V.clothesBoughtPony > 0) { return true; } }}, - {name: "Monokini", value: "a monokini", unlock: function(slave) { if (V.clothesBoughtSwimwear > 0) { return true; } }}, - {name: "One-piece swimsuit", value: "a one-piece swimsuit", unlock: function(slave) { if (V.clothesBoughtSwimwear > 0) { return true; } }}, + {name: "Monokini", value: "a monokini", isUnlocked: function(slave) { if (V.clothesBoughtSwimwear > 0) { return true; } }}, + {name: "One-piece swimsuit", value: "a one-piece swimsuit", isUnlocked: function(slave) { if (V.clothesBoughtSwimwear > 0) { return true; } }}, { name: "Striped bra", value: "a striped bra", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtPantsu > 0 || V.continent === "Japan") { return true; } @@ -2176,7 +2176,7 @@ App.Data.misc = { { name: "Striped panties", value: "striped panties", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtPantsu > 0 || V.continent === "Japan") { return true; } @@ -2185,7 +2185,7 @@ App.Data.misc = { { name: "Striped underwear", value: "striped underwear", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.clothesBoughtPantsu > 0 || continent === "Japan") { return true; } @@ -2225,7 +2225,7 @@ App.Data.misc = { name: "Chains", value: "chains", fs: "FSDegradationist", - unlock: function(slave) { if (V.clothesBoughtChains > 0) { return true; } } + isUnlocked: function(slave) { if (V.clothesBoughtChains > 0) { return true; } } }, {name: "Go naked", value: "no clothing"}, {name: "Penitent nun", value: "a penitent nuns habit"}, @@ -2305,7 +2305,7 @@ App.Data.misc = { { name: "Supportive band", value: "a support band", - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.belly > 10000) { return true; @@ -2320,7 +2320,7 @@ App.Data.misc = { value: "a small empathy belly", fs: "FSRepopulationFocus", rs: "boughtBelly", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.boughtBelly > 0) { if (slave) { if (slave.belly < 1500 && slave.weight < 130) { @@ -2337,7 +2337,7 @@ App.Data.misc = { value: "a medium empathy belly", fs: "FSRepopulationFocus", rs: "boughtBelly", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.boughtBelly > 0) { if (slave) { if (slave.belly < 1500 && slave.weight < 130) { @@ -2354,7 +2354,7 @@ App.Data.misc = { value: "a large empathy belly", fs: "FSRepopulationFocus", rs: "boughtBelly", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.boughtBelly > 0) { if (slave) { if (slave.belly < 1500 && slave.weight < 130) { @@ -2371,7 +2371,7 @@ App.Data.misc = { value: "a huge empathy belly", fs: "FSRepopulationFocus", rs: "boughtBelly", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.boughtBelly > 0) { if (slave) { if (slave.belly < 1500 && slave.weight < 130) { @@ -2396,7 +2396,7 @@ App.Data.misc = { { name: "Smart bullet vibrator", value: "smart bullet vibrator", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.toysBoughtSmartVibes > 0) { return true; } @@ -2405,7 +2405,7 @@ App.Data.misc = { { name: "Dildo", value: "dildo", - unlock: function(slave) { + isUnlocked: function(slave) { if (slave.vagina < 0) { return false; } else { @@ -2417,7 +2417,7 @@ App.Data.misc = { name: "Long dildo", value: "long dildo", rs: "buyBigDildos", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.buyBigDildos > 0) { if (slave) { if (slave.vagina < 0) { @@ -2436,7 +2436,7 @@ App.Data.misc = { { name: "Large dildo", value: "large dildo", - unlock: function(slave) { + isUnlocked: function(slave) { if (slave.vagina < 0) { return false; } else { @@ -2448,7 +2448,7 @@ App.Data.misc = { name: "Long, large dildo", value: "long, large dildo", rs: "buyBigDildos", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.buyBigDildos > 0) { if (slave) { if (slave.vagina < 0) { @@ -2467,7 +2467,7 @@ App.Data.misc = { { name: "Huge dildo", value: "huge dildo", - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.vagina < 0) { return false; @@ -2485,7 +2485,7 @@ App.Data.misc = { name: "Long, huge dildo", value: "long, huge dildo", rs: "buyBigDildos", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.buyBigDildos > 0) { if (slave) { if (slave.vagina < 0) { @@ -2510,7 +2510,7 @@ App.Data.misc = { { name: "Vibrating attachment", value: "vibrator", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.toysBoughtVaginalAttachments > 0) { if (slave) { if (slave.vagina < 0) { @@ -2535,7 +2535,7 @@ App.Data.misc = { { name: "Bullet vibrator", value: "bullet vibrator", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.toysBoughtVaginalAttachments > 0) { // TODO: copying from old slave interact, is this correct? if (slave) { if (slave.dick < 1) { @@ -2552,7 +2552,7 @@ App.Data.misc = { { name: "Smart bullet vibrator", value: "smart bullet vibrator", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.toysBoughtVaginalAttachments > 0) { // TODO: copying from old slave interact, is this correct? if (slave) { if (slave.dick < 1) { @@ -2580,7 +2580,7 @@ App.Data.misc = { name: "Long plug", value: "long plug", rs: "toysBoughtButtPlugs", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.toysBoughtButtPlugs > 0) { if (slave) { if (!(slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) { @@ -2602,7 +2602,7 @@ App.Data.misc = { name: "Long, large plug", value: "long, large plug", rs: "toysBoughtButtPlugs", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.toysBoughtButtPlugs > 0) { if (slave) { if (!(slave.breedingMark !== 1 || V.propOutcome === 0 || V.eugenicsFullControl === 1 || V.arcologies[0].FSRestart === "unset")) { @@ -2619,7 +2619,7 @@ App.Data.misc = { { name: "Huge plug", value: "huge plug", - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.anus < 2) { return `Slave's anus is too small for this right now`; @@ -2635,7 +2635,7 @@ App.Data.misc = { name: "Long, huge plug", value: "long, huge plug", rs: "toysBoughtButtPlugs", - unlock: function(slave) { + isUnlocked: function(slave) { if (V.toysBoughtButtPlugs > 0) { if (slave) { if (slave.anus < 2) { @@ -2692,7 +2692,7 @@ App.Data.misc = { chastityPenis: 0, chastityVagina: 1 }, - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.vagina > -1) { return true; @@ -2711,7 +2711,7 @@ App.Data.misc = { chastityPenis: 0, chastityVagina: 1 }, - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.vagina > -1) { return true; @@ -2730,7 +2730,7 @@ App.Data.misc = { chastityPenis: 1, chastityVagina: 0 }, - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.dick > 0) { return true; @@ -2749,7 +2749,7 @@ App.Data.misc = { chastityPenis: 1, chastityVagina: 0 }, - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.dick > 0) { return true; @@ -2768,7 +2768,7 @@ App.Data.misc = { chastityPenis: 1, chastityVagina: 1 }, - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.vagina > -1 && slave.dick > 0) { return true; @@ -2787,7 +2787,7 @@ App.Data.misc = { chastityPenis: 1, chastityVagina: 1 }, - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.vagina > -1 && slave.dick > 0) { return true; @@ -2803,7 +2803,7 @@ App.Data.misc = { updateSlave: { choosesOwnChastity: 1, }, - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.choosesOwnChastity !== 1) { return true; @@ -2819,7 +2819,7 @@ App.Data.misc = { updateSlave: { choosesOwnChastity: 0, }, - unlock: function(slave) { + isUnlocked: function(slave) { if (slave) { if (slave.choosesOwnChastity > 0) { return true; diff --git a/src/js/itemAvailability.js b/src/js/itemAvailability.js index f864009c05fd3e5c23b46575aa9f9e6a872004f7..558133adbe30eaaaa4f6230192a49e248d2ebf94 100644 --- a/src/js/itemAvailability.js +++ b/src/js/itemAvailability.js @@ -287,7 +287,7 @@ window.isClothingAccessible = (function() { return array; } function isAvailable(item, slave) { - if (!(item.hasOwnProperty("unlock")) && !(item.hasOwnProperty("fs")) && !(item.hasOwnProperty("rs"))) { + if (!(item.hasOwnProperty("isUnlocked")) && !(item.hasOwnProperty("fs")) && !(item.hasOwnProperty("rs"))) { // No restriction, this clothing item is available to everyone return true; } @@ -301,8 +301,8 @@ window.isClothingAccessible = (function() { return true; } } - if (item.hasOwnProperty("unlock")) { - return item.unlock(slave); + if (item.hasOwnProperty("isUnlocked")) { + return item.isUnlocked(slave); } return false; }