code:
var Remtairy = Remtairy || {};
Remtairy.Version = Remtairy.Version || {};

//=============================================================================
 /*:
 * @plugindesc Version
 * @author Remtairy
 *
 * @help
 * This is a private plugin.
 * Do not redistribute, use, or modify this plugin
 * without explicit written permission from Remtairy.
 *
 */
//=============================================================================

const KARRYN_PRISON_GAME_VERSION = 84;

///////////
// Game Party
////////////////

//Game Version
Game_Party.prototype.getGameVersion = function() {
	return this._karrynPrisonVersion;
};
Game_Party.prototype.isDemoVersion = function() {
	return this._karrynPrisonDemoStatus === true;
};

//Called at start of game in Common Event 2:Initialization
Game_Party.prototype.setCurrentGameVersion = function() {
	this._karrynPrisonVersion = KARRYN_PRISON_GAME_VERSION;
	this._karrynPrisonDemoStatus = KARRYN_PRISON_GAME_IS_DEMO;
	this._karrynPrisonVersion36_TachieUpdated = true;
};

//Called when loading game by Common Event 3:Load Game
Game_Party.prototype.updateGameVersion = function() {
	let saveFileGameVersion = this.getGameVersion();
	let actor = $gameActors.actor(ACTOR_KARRYN_ID);
	actor._emoteMasterManagerIsRunning = false;

	if(saveFileGameVersion < 2) {
		actor.resetParamExp();
		actor._paramExp[PARAM_MAXSTAMINA_ID] = Math.round(actor._paramExp[PARAM_MAXSTAMINA_ID] * 0.6);
		actor._paramExp[PARAM_MIND_ID] = Math.round(actor._paramExp[PARAM_MIND_ID] * 1.2);
		actor.calculateParamLvlsGained();
		actor.calculateMainLvlsGained();
		actor.clearParamExp();
	}

	if(saveFileGameVersion < 3) {
		actor._firstAnalSexBeforePussySex = false;
	}

	if(saveFileGameVersion < 5) {
		$gameParty.increaseCorruption(actor.totalAccessoriesOwnedCount());
		$gameSelfSwitches.setValue([MAP_ID_MODE_SELECT, 7, "A"], false);
		$gameSelfSwitches.setValue([MAP_ID_MODE_SELECT, 7, "B"], false);
		actor._flagNeverUnequippedDisappointmentTitle = true;
	}

	if(saveFileGameVersion < 6) {
		if(actor._clothingType === CLOTHING_ID_NAKED && actor._clothingMaxStage === 1) {
			actor.changeToWardenClothing();
			actor.restoreClothingDurability();
		}
		if($gameParty._difficulty === 0) {
			if($gameSwitches.value(SWITCH_EASY_MODE_ID)) $gameParty.setDifficultyToEasy();
			else if($gameSwitches.value(SWITCH_NORMAL_MODE_ID)) $gameParty.setDifficultyToNormal();
			else if($gameSwitches.value(SWITCH_HARD_MODE_ID)) $gameParty.setDifficultyToHard();
		}
	}

	if(saveFileGameVersion < 7) {
		let disTitle = $dataArmors[TITLE_ID_DISAPPOINTMENT];
		let numOfExtraDT = $gameParty.numItems(disTitle) - 1;
		if(numOfExtraDT > 0) {
			$gameParty.gainItem(disTitle, -1 * numOfExtraDT, false);
		}
	}

	if(saveFileGameVersion < 14) {
		this.setMapForceCenter(false);
		actor.removeAllToys();
		actor._firstPussySexWasToy = false;

		actor.setupPlaythroughRecords();
		actor.recalculateSkillLvls();
		actor.recalculateBodySensitivities();
		actor.resetArtisanMeal();
		actor.setupLiquids();

		this._playthroughRecordGuardBattleCount = this._recordGuardBattleCount;
		this.setBarReputation(0);
		this.initializeReceptionistSettings();
		this._wantedId_Tonkin = -1;
		this._wantedId_Yasu = -1;
		this._wantedId_Cargill = -1;

		actor._firstKissMapID = -1;
		actor._firstKissWasAnus = false;
		actor._firstPussySexMapID = -1;
		actor._firstAnalSexMapID = -1;
		actor._firstHandjobMapID = -1;
		actor._firstBlowjobMapID = -1;
		actor._firstTittyFuckMapID = -1;
		actor._firstCunnilingusMapID = -1;
		actor._firstButtSpankedMapID = -1;
		actor._firstSwallowMapID = -1;
		actor._firstBukkakeMapID = -1;
		actor._firstPussyCreampieMapID = -1;
		actor._firstAnalCreampieMapID = -1;
		actor._lastKissMapID = -1;
		actor._lastHandjobMapID = -1;
		actor._lastBlowjobMapID = -1;
		actor._lastTittyFuckMapID = -1;
		actor._lastCunnilingusMapID = -1;
		actor._lastButtSpankedMapID = -1;
		actor._lastPussySexMapID = -1;
		actor._lastAnalSexMapID = -1;
		actor._lastBukkakeMapID = -1;
		actor._lastSwallowMapID = -1;
		actor._lastPussyCreampieMapID = -1;
		actor._lastAnalCreampieMapID = -1;

		actor._firstRimjobWantedID = -1;
		actor._firstRimjobDate = false;
		actor._firstRimjobName = false;
		actor._firstRimjobMapID = -1;
		actor._lastRimjobName = false;
		actor._lastRimjobDate = false;
		actor._lastRimjobMapID = -1;
		actor._recordRimjobCount = 0;
		actor._recordRimjobPeople = 0;

		actor._firstFootjobWantedID = -1;
		actor._firstFootjobDate = false;
		actor._firstFootjobName = false;
		actor._firstFootjobMapID = -1;
		actor._lastFootjobName = false;
		actor._lastFootjobDate = false;
		actor._lastFootjobMapID = -1;
		actor._recordFootjobCount = 0;
		actor._recordFootjobPeople = 0;
		actor._recordBukkakeLegsML = 0;

		actor._recordManuallyRemovedToysTotalCount = 0;
		actor._recordManuallyRemovedClitToyCount = 0;
		actor._recordManuallyRemovedPussyToyCount = 0;
		actor._recordManuallyRemovedAnalToyCount = 0;
		actor._recordTotalToysInsertedCount = 0;
		actor._recordClitToyInsertedCount = 0;
		actor._recordPussyToyInsertedCount = 0;
		actor._recordAnalToyInsertedCount = 0;
		actor._recordTotalToysUsedByEnemyCount = 0;
		actor._recordClitToyUsedByEnemyCount = 0;
		actor._recordPussyToyUsedByEnemyCount = 0;
		actor._recordAnalToyUsedByEnemyCount = 0;
		actor._baseToyLvl = 1;
		actor._recordToysPleasure = 0;
		actor._recordToysInsertedByPeople = 0;
		actor._recordOrgasmFromToysCount = 0;
		actor._recordDebuffOffBalancedCount = 0;
		actor._recordDebuffFallenCount = 0;
		actor._recordDebuffDisarmedCount = 0;
		actor._recordDebuffDownStaminaCount = 0;
		actor._recordHornyCount = 0;
		actor._recordFixClothesUsageCount = 0;
		actor._recordCockKickUsageCount = 0;
		actor._recordKissUsageCount = 0;
		actor._recordCockPetUsageCount = 0;
		actor._recordHandjobUsageCount = 0;
		actor._recordBlowjobUsageCount = 0;
		actor._recordRimjobUsageCount = 0;
		actor._recordFootjobUsageCount = 0;
		actor._recordTittyFuckUsageCount = 0;
		actor._recordPussySexUsageCount = 0;
		actor._recordAnalSexUsageCount = 0;
		actor._recordFlauntCount = 0;
		actor._recordFlauntPeople = 0;
		actor._recordSexPose_KickCounterCount = 0;
		actor._recordBarWaitressBattleCount = 0;
		actor._recordBarWaitressSexCount = 0;
		actor._recordCockinessGainedValue = 0;
		actor._recordVirginitiesTakenTotal = 0;
		actor._recordVirginitiesTakenViaPussy = 0;
		actor._recordVirginitiesTakenViaAnal = 0;
		actor._recordSexPose_SlimePiledriverCount = 0;
		actor._recordSexualPartnersNerd = 0;
		actor._recordSexualPartnersRogue = 0;
		actor._recordSexualPartnersSlime = 0;

		actor._recordSexualPartnersTotal = actor._recordSexualPartnersThug + actor._recordSexualPartnersPrisoner + actor._recordSexualPartnersGuard + actor._recordSexualPartnersOrc + actor._recordSexualPartnersGoblin;

		actor._flagEquippedHellWardenOneTitleForWholeDay = false;
		actor._flagEquippedHellWardenTwoTitleForWholeDay = false;

		actor.setTachieHatInFrontOfBody(true);

		for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
			$gameParty._wantedEnemies[i]._disabled = false;
		}
		while(this.fixDuplicateWanted());

		this.fixWantedWithUndefinedBattlernum();
		this.update_addToAllWanted_Records_v8();
		this.update_setActorPassivesObtainedOnArray();
		this.update_removeOffAndDefHalberdEdicts();

		actor.forgetSkill(PASSIVES_TITLE_LEFT_ID);
		actor.forgetSkill(PASSIVES_TITLE_CENTER_ID);
		actor.forgetSkill(PASSIVES_TITLE_RIGHT_ID);
		actor.learnSkill(SKILL_DEBUG_SURRENDER_ID);
		actor.learnSkill(SKILL_DEBUG_DEFEAT_ALL_ID);
		actor.learnSkill(SKILL_DEBUG_STRIP_CLOTHES_ID);
		actor.learnSkill(SKILL_KARRYN_KISS_SELECTOR_CANT_ID);
		actor.learnSkill(SKILL_KARRYN_HANDJOB_SELECTOR_CANT_ID);
		actor.learnSkill(63);
		actor.learnSkill(64);
		actor.learnSkill(103);
		actor.learnSkill(104);
		actor.learnSkill(SKILL_KARRYN_FLAUNT_ID);
		actor.learnSkill(SKILL_FALLEN_REST_ID);
		actor.learnSkill(SKILL_KARRYN_KICK_STRIKE_ID);
		actor.learnSkill(SKILL_KARRYN_KICK_SLASH_ID);
		actor.learnSkill(SKILL_KARRYN_KICK_THRUST_ID);
		actor.learnSkill(SKILL_KARRYN_PICK_UP_HALBERD_ID);
		actor.learnSkill(SKILL_KARRYN_GET_CLOSER_TO_HALBERD_ID);
		actor.learnSkill(SKILL_GIVE_UP_ID);
		actor.learnSkill(SKILL_SURRENDER_ID);
		actor.learnSkill(SKILL_KARRYN_REMOVE_TOY_ID);
		actor.learnSkill(SKILL_KARRYN_COCK_PETTING_SELECTOR_ID);
		actor.learnSkill(SKILL_KARRYN_COCK_PETTING_SELECTOR_CANT_ID);
		actor.learnSkill(SKILL_KARRYN_RIMJOB_SELECTOR_ID);
		actor.learnSkill(SKILL_KARRYN_RIMJOB_SELECTOR_CANT_ID);
		actor.learnSkill(SKILL_KARRYN_FOOTJOB_SELECTOR_ID);
		actor.learnSkill(SKILL_KARRYN_FOOTJOB_SELECTOR_CANT_ID);
		actor.learnSkill(SKILL_KARRYN_BLOWJOB_SELECTOR_ID);
		actor.learnSkill(SKILL_KARRYN_BLOWJOB_SELECTOR_CANT_ID);
		actor.learnSkill(SKILL_KARRYN_TITTYFUCK_SELECTOR_ID);
		actor.learnSkill(SKILL_KARRYN_TITTYFUCK_SELECTOR_CANT_ID);

		if($gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV1_ID) && Prison.prisonLevelOneIsAnarchy()) {
			Prison.firstSubjugationPrisonLevelOne();
		}
		this._prisonLevelOne_workshopRioting = false;
		this._prisonLevelOne_dishwashingRioting = false;
		this._prisonLevelOne_laundryRioting = false;
		this._prisonLevelOne_receptionRioting = false;

	}

	if(saveFileGameVersion < 15) {
		this._wantedEnemies.unshift(new Wanted_Enemy(false));

		if(this._wantedId_Tonkin === -1 || this._wantedId_Tonkin === undefined) {
			let foundWanted = -1;
			if(TextManager.isJapanese) {
				foundWanted = $gameParty.isThisNameAlreadyInWanted_onlyNameMatters("トンキン");
			}
			else if(TextManager.isEnglish) {
				foundWanted = $gameParty.isThisNameAlreadyInWanted_onlyNameMatters("Tonkin");
			}
			this._wantedId_Tonkin = foundWanted;
		}
		if(this._wantedId_Yasu === -1 || this._wantedId_Yasu === undefined) {
			let foundWanted = -1;
			if(TextManager.isJapanese) {
				foundWanted = $gameParty.isThisNameAlreadyInWanted_onlyNameMatters("ヤス");
			}
			else if(TextManager.isEnglish) {
				foundWanted = $gameParty.isThisNameAlreadyInWanted_onlyNameMatters("Yasu");
			}
			this._wantedId_Yasu = foundWanted;
		}
		if(this._wantedId_Cargill === -1 || this._wantedId_Cargill === undefined) {
			let foundWanted = -1;
			if(TextManager.isJapanese) {
				foundWanted = $gameParty.isThisNameAlreadyInWanted_onlyNameMatters("カーギル");
			}
			else if(TextManager.isEnglish) {
				foundWanted = $gameParty.isThisNameAlreadyInWanted_onlyNameMatters("Cargill");
			}
			this._wantedId_Cargill = foundWanted;
		}
	}

	if(saveFileGameVersion < 16) {
		for(let i = 1; i < this._wantedEnemies.length; i++) {
			let wantedEnemy = this._wantedEnemies[i];
			wantedEnemy._wantedId += 1;
		}
	}

	if(saveFileGameVersion < 17) {
		actor._recordSeenAnalCount = 0;
		if($gameVariables.value(VARIABLE_BEAT_LEVEL_ID) === 1 && $gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV1_ID)) {
			$gameSelfSwitches.setValue([MAP_ID_RECEPTION, 32, "A"], true);
		}
		for(let i = WAITRESS_SKILL_START; i <= WAITRESS_SKILL_END; i++) {
			actor.learnSkill(i);
		}

	}

	if(saveFileGameVersion < 18) {
		actor.learnSkill(SKILL_GIVE_UP_ID);
		actor.learnSkill(SKILL_SURRENDER_ID);
	}

	if(saveFileGameVersion < 18) {
		actor.learnSkill(SKILL_GIVE_UP_ID);
		actor.learnSkill(SKILL_SURRENDER_ID);
	}

	if(saveFileGameVersion < 19) {
		for(let i = 1; i < this._wantedEnemies.length; i++) {
			let wantedEnemy = this._wantedEnemies[i];
			if(!wantedEnemy._enemyType) wantedEnemy._disabled = true;
		}
	}

	if(saveFileGameVersion < 21) {
		if(this.order === null) {
			this.setOrder(50);
		}
	}

	if(saveFileGameVersion < 22) {
		this._prisonLevelOne_riotingDays = 0;
		this._prisonLevelTwo_riotingDays = 0;
		this._prisonLevelThree_riotingDays = 0;
		this._prisonLevelFour_riotingDays = 0;
		this._prisonLevelFive_riotingDays = 0;
	}

	if(saveFileGameVersion < 23) {
		actor.resetTachieCockAnal();
		actor._dontResetSexPose = false;
	}

	if(saveFileGameVersion < 24) {

		$gameSelfSwitches.setValue([MAP_ID_OFFICE_FLOODED, 12, "A"], true);
	}

	if(saveFileGameVersion < 25) {
		actor.setupLiquids();
	}

	if(saveFileGameVersion < 26) {
		if($gameSwitches.value(SWITCH_GIFT_EMPEROR_LV2_ID)) {
			$gameSelfSwitches.setValue([MAP_ID_OFFICE_FLOODED, 12, "A"], true);
			$gameSwitches.setValue(SWITCH_WON_BOSS_BATTLE_LV2_ID, true);
		}
		else {
			$gameSelfSwitches.setValue([MAP_ID_OFFICE_FLOODED, 12, "A"], false);
			$gameSwitches.setValue(SWITCH_WON_BOSS_BATTLE_LV2_ID, false);
		}

	}

	if(saveFileGameVersion < 27) {
		$gameSystem.setAutosave(true);
	}

	if(saveFileGameVersion < 28) {
		if(Karryn.hasEdict(EDICT_THE_GOBLIN_PROBLEM))
			this.increaseOrderChangePerDay(-2);
		if(Karryn.hasEdict(EDICT_ANTI_GOBLIN_SQUAD))
			this.increaseOrderChangePerDay(2);
		if(Karryn.hasEdict(EDICT_BAIT_GOBLINS))
			this.increaseOrderChangePerDay(2);
	}

	if(saveFileGameVersion < 29) {
		actor._firstPussySexWasToyWantedID = -1;
		actor._firstPussySexWasToyDate = false;
		actor._firstPussySexWasToyName = false;
		actor._firstPussySexWasToyMapID = -1;
	}

	if(saveFileGameVersion < 30) {
		if(Karryn.hasEdict(EDICT_REPAIR_KITCHEN_AND_MESS_HALL))
			this.increaseOrderChangePerDay(2);
	}

	if(saveFileGameVersion < 31) {
		this._daysWithoutDoingWaitressBar = 0;
		actor.calculateMainLvlsGained();
		actor.clearParamExp();
		this.fix_setActorPassivesObtainedOnArray_missingCharacterCreators();
	}

	if(saveFileGameVersion < 32) {
		actor._hasTachiePubic = true;
	}

	if(saveFileGameVersion < 33) {
		if(actor._obtainedTitles) {
			if(!$gameParty.hasItem($dataArmors[TITLE_ID_CC_SKILLED_MANAGER], true) && actor._obtainedTitles[TITLE_ID_CC_SKILLED_MANAGER])
				actor._obtainedTitles[TITLE_ID_CC_SKILLED_MANAGER] = false;
			if(!$gameParty.hasItem($dataArmors[TITLE_ID_CC_AMBITIOUS_EXPERIMENTER], true) && actor._obtainedTitles[TITLE_ID_CC_AMBITIOUS_EXPERIMENTER])
				actor._obtainedTitles[TITLE_ID_CC_AMBITIOUS_EXPERIMENTER] = false;
			if(!$gameParty.hasItem($dataArmors[TITLE_ID_CC_HARDLINE_DEBATER], true) && actor._obtainedTitles[TITLE_ID_CC_HARDLINE_DEBATER])
				actor._obtainedTitles[TITLE_ID_CC_HARDLINE_DEBATER] = false;
			if(!$gameParty.hasItem($dataArmors[TITLE_ID_CC_COST_SAVING_SUPERVISOR], true) && actor._obtainedTitles[TITLE_ID_CC_COST_SAVING_SUPERVISOR])
				actor._obtainedTitles[TITLE_ID_CC_COST_SAVING_SUPERVISOR] = false;
			if(!$gameParty.hasItem($dataArmors[TITLE_ID_CC_HARDWORKING_TUTOR], true) && actor._obtainedTitles[TITLE_ID_CC_HARDWORKING_TUTOR])
				actor._obtainedTitles[TITLE_ID_CC_HARDWORKING_TUTOR] = false;
			if(!$gameParty.hasItem($dataArmors[TITLE_ID_CC_MANAGEMENT_CONSULTANT], true) && actor._obtainedTitles[TITLE_ID_CC_MANAGEMENT_CONSULTANT])
				actor._obtainedTitles[TITLE_ID_CC_MANAGEMENT_CONSULTANT] = false;
		}
	}

	if(saveFileGameVersion < 34) {
		actor._liquidBukkakeButtTopRight = 0;
		actor._liquidBukkakeButtTopLeft = 0;
		actor._liquidBukkakeButtBottomRight = 0;
		actor._liquidBukkakeButtBottomLeft = 0;
		actor._recordUrinalCount = 0;
		actor._tempRecordUrinal = false;
		actor.resetTachieSemenCockMouthExtension();
		actor.resetTachieSemenCockPussyExtension();
		actor.resetTachieSemenCockAnalExtension();
		actor.resetTachieSemenFrontAExtension();
		actor.resetTachieSemenFrontBExtension();
		actor.resetTachieSemenFrontCExtension();
		actor.resetTachieSemenFrontDExtension();
		actor.resetTachieSemenFrontEExtension();
		this.recalculateBaseIncomeAndExpense();
	}

	if(saveFileGameVersion < 35) {
		actor.resetTachieClothes();
		actor.resetTachieSkirt();
		actor._toyValue_clitToy = 0;
		actor._toyValue_pussyToy = 0;
		actor._toyValue_analToy = 0;
		actor.setMaxTachieSemenDeskId(0);
		actor._liquidOnDesk = 0;

		actor._recordSexPose_GuardGangbangCount = 0;
		actor._flagEquippedFullOrderTwoTitleForWholeDay = false;
		actor._lastMentalBattleSkill = new Game_Item();

		for(let i = 1059; i <= 1064; i++) {
			actor.learnSkill(i);
		}
		actor.forgetSkill(64);
		actor.forgetSkill(65);
		actor.forgetSkill(66);
		actor.forgetSkill(67);
		actor.forgetSkill(68);

		actor._firstKissWasVisitor = false;
		actor._recordVisitorReceptionistBattleCount = 0;
		actor._playthroughRecordVisitorReceptionistBattleCount = 0;
		actor._playthroughRecordReceptionistBattleTotalShiftsCount = 0;
		actor._recordSexualPartnersVisitor = 0;
		actor._playthroughRecordReceptionistHandshakePeople = 0;
		actor._playthroughRecordReceptionistBoobshakePeople = 0;
		actor._recordVisitorReceptionistHandshakeCount = 0;
		actor._recordVisitorReceptionistHandshakePeople = 0;
		actor._playthroughRecordReceptionistHandjobPeople = 0;
		actor._playthroughRecordReceptionistBlowjobPeople = 0;
		actor._recordVisitorReceptionistKissPeople = 0;
		actor._playthroughRecordReceptionistKissPeople = 0;
		actor._recordVisitorReceptionistBoobshakeCount = 0;
		actor._recordVisitorReceptionistBoobshakePeople = 0;
		actor._recordVisitorReceptionistHandjobPeople = 0;
		actor._recordVisitorReceptionistBlowjobPeople = 0;
		actor._playthroughRecordVisitorSwallowML = 0;
		actor._playthroughRecordReceptionistGoblinCreampieML = 0;

		this.initializeReceptionistSettings();
		this._daysWithoutDoingVisitorReceptionist = 0;

		actor.putOnGlovesAndHat();
		if(actor.isInMapPose()) {
			actor.setWardenMapPose();
		}

		for(let i = RECEPTIONIST_SKILL_START; i <= RECEPTIONIST_SKILL_END; i++) {
			actor.learnSkill(i);
		}
	}

	if(saveFileGameVersion < 36) {
		actor.recalculateBodySensitivities();
		actor.recalculateSkillLvls();
		actor.setHalberdAsDefiled(false);

		actor.learnSkill(SKILL_KARRYN_COCK_STARE_SELECTOR_ID);
		actor.learnSkill(SKILL_KARRYN_COCK_STARE_SELECTOR_CANT_ID);
		actor.learnSkill(SKILL_FEMALE_ORGASM_ONE_ID);
		actor.learnSkill(SKILL_FEMALE_ORGASM_TWO_ID);

		actor._playthroughRecordReceptionistPagesProcessedCount = 0;
		actor._playthroughRecordReceptionistHandshakeWhileSexPeople = 0;
		actor._playthroughRecordReceptionistOrgasmWhileCallingCount = 0;
		actor._playthroughRecordWaitressServingPettedCount = 0;
		actor._playthroughRecordWaitressServingOrgasmCount = 0;
		actor._playthroughRecordWaitressBattleDrankSemenMugML = 0;

		actor._recordPettedWhileWorkingCount = 0;
		actor._recordWaitressFlashedCount = 0;
		actor._recordSeeJerkOffPeople = 0;
		actor._recordCockStareUsageCount = 0;
		actor._recordOrgasmFromSpankingCount = 0;

		actor._recordSubduedMetalEnemies = 0;
		actor._recordMetalSexualPartnersCount = 0;

		actor.resetTodayRecords();

		this.update_addToAllWanted_Records_v36();

		if(actor.isInMapPose()) actor.emoteMapPose();
		this._karrynPrisonVersion36_TachieUpdated = true;
	}

	if(saveFileGameVersion < 37) {
		actor.learnSkill(1579);
		actor.learnSkill(SKILL_RESTORE_MIND_ID);
		if(this._dayCount % 2 === 1) {
			$gameSwitches.setValue(SWITCH_ODD_DAY_ID, true);
			$gameSwitches.setValue(SWITCH_EVEN_DAY_ID, false);
		}
		else {
			$gameSwitches.setValue(SWITCH_EVEN_DAY_ID, true);
			$gameSwitches.setValue(SWITCH_ODD_DAY_ID, false);
		}
		if(Karryn.hasEdict(EDICT_RECEPTIONIST_OUTFIT_I))
			$gameSwitches.setValue(SWITCH_EDICT_RECEPTIONIST_OUTFIT_ID, true);

	}

	if(saveFileGameVersion < 38) {
		actor.learnSkill(SKILL_KARRYN_SKEWER_2_ID);
		actor.learnSkill(SKILL_KARRYN_SLAM_2_ID);
		actor._flagEquippedRadioOrgasmTitleForWholeDay = false;

	}

	if(saveFileGameVersion < 39) {
		if(Karryn.isInReceptionistPose()) {
			actor.setWardenMapPose();
			actor.setKarrynWardenSprite();
		}
	}

	if(saveFileGameVersion < 40) {
		actor._flagEquippedJadeNecklaceForWholeDay = false;
	}

	if(saveFileGameVersion < 41) {
		actor.resetTachieTie();
		actor.resetTachieLeftHole();
		actor.resetTachieRightHole();
		actor.resetTachieLegs();
		actor.resetTachiePubicExtension();
		actor.resetTachieSemenMouthExtension();
		actor.resetStoreItem();

		if(!Prison.prisonLevelOneIsRioting()) {
			Karryn.learnSkill(EDICT_LEVEL_ONE_IS_NOT_RIOTING);
		}

		actor.learnSkill(SKILL_KARRYN_LIGHT_KICK_ID);
		actor.learnSkill(SKILL_KARRYN_ANALSEX_SELECTOR_ID);
		actor.learnSkill(SKILL_KARRYN_ANALSEX_SELECTOR_CANT_ID);
		actor.learnSkill(SKILL_KARRYN_PUSSYSEX_SELECTOR_ID);
		actor.learnSkill(SKILL_KARRYN_PUSSYSEX_SELECTOR_CANT_ID);
		actor.learnSkill(EDICT_SPECIALIZATION_EXPLANATION);
		actor.learnSkill(EDICT_INSURANCE_EXPLANATION_1);
		actor.learnSkill(EDICT_INSURANCE_EXPLANATION_2);
		actor.learnSkill(EDICT_NO_CLASSES);
		actor.learnSkill(EDICT_RECEPTION_POLICY_NEUTRAL);

		this.setGloryReputation(0);
		this._daysWithoutVisitingGlory = 0;
		this._enableResearchEdicts = false;
		this._daysSinceLastPrisonRiot = 0;
		this._daysSinceLastLevelOneRiot = 0;
		this._daysSinceLastLevelTwoRiot = 0;
		this._daysSinceLastLevelThreeRiot = 0;
		this._daysSinceLastLevelFourRiot = 0;
		this._daysSinceLastLevelFiveRiot = 0;
		this._prisonLevelTwo_meetingRoomRioting = false;
		this._prisonLevelTwo_researchRioting = false;
		this._prisonLevelTwo_staffLoungeRioting = false;
		this._prisonLevelTwo_classroomRioting = false;
		this._prisonLevelTwo_readingRoomRioting = false;
		this._wantedId_Aron = -1;

		actor._baseSemenLvl = 0;
		actor._baseStripLvl = 0;
		actor._recordSexualPartnersLizardman = 0;
		actor._recordSexualPartnersHomeless = 0;
		actor._recordSexPose_OrcPaizuriCount = 0;
		actor._recordSexPose_LizardmanCowgirlCount = 0;
		actor._recordGloryBattleCockEjaculationCount = 0;
		actor._playthroughRecordGloryCocksAppearedCount = 0;
		actor._playthroughRecordGloryCocksServed = 0;
		actor._playthroughRecordGloryOrgasmWhileGuestEatingCount = 0;
		actor._playthroughRecordGloryCreampieML = 0;
		actor._playthroughRecordGlorySwallowML = 0;
		actor._recordPreLevelFourOldSexualPartners = 0;
		actor._recordPostLevelThreeNewSexualPartners = 0;

		//actor._recordSexPose_KickCounterCount = Math.min(actor._recordSexPose_KickCounterCount,LIMIT_KICK_COUNTER_SEX_COUNT);

		this.update_addToAllWanted_Records_v41();

		if($gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV2_ID) && Prison.prisonLevelTwoIsAnarchy()) {
			Prison.firstSubjugationPrisonLevelTwo();
		}

		if(actor._firstPussySexWantedID === -1) {
			$gameSwitches.setValue(SWITCH_IS_VIRGIN_ID, true);
			$gameSwitches.setValue(SWITCH_IS_NON_VIRGIN_ID, false);
		}
		else {
			$gameSwitches.setValue(SWITCH_IS_VIRGIN_ID, false);
			$gameSwitches.setValue(SWITCH_IS_NON_VIRGIN_ID, true);
		}

		if(Karryn.hasEdict(EDICT_REPAIR_OFFICE)) {
			$gameSwitches.setValue(SWITCH_EDICT_FIX_OFFICE_ID, true);
		}
		if(Karryn.hasEdict(EDICT_REPAIR_STORE)) {
			$gameSwitches.setValue(SWITCH_EDICT_FIX_STORE_ID, true);
		}
	}

	if(saveFileGameVersion < 42) {
		if(Prison.prisonLevelTwoIsRioting()) {
			this.setPrisonLevelTwoSubjugated();
			this._prisonLevelTwo_riotingDays = 0;
		}
	}

	if(saveFileGameVersion < 43) {
		if(Karryn.hasEdict(EDICT_SPEC_CLEAVE_POWER) && Karryn.hasEdict(EDICT_SPEC_CLEAVE_TECH)) {
			actor.forgetSkill(EDICT_SPEC_CLEAVE_POWER);
			actor.forgetSkill(EDICT_SPEC_CLEAVE_TECH);
		}
	}

	if(saveFileGameVersion < 44) {
		actor.setMaxTachieSemenMouthId(0);
	}

	if(saveFileGameVersion < 45) {
		actor.forgetPassive(241);
		actor.forgetPassive(243);
	}

	if(saveFileGameVersion < 46) {
		$gameParty.riotingRoomsCheck();
		this._prisonLevelOne_anarchyDays = 0;
		this._prisonLevelTwo_anarchyDays = 0;
		this._prisonLevelThree_anarchyDays = 0;
		this._prisonLevelFour_anarchyDays = 0;
		this._prisonLevelFive_anarchyDays = 0;
	}

	if(saveFileGameVersion < 47) {
		if(Karryn.hasEdict(EDICT_RESEARCH_LAUNDRY_PRODUCT_CONTRACT))
			$gameSwitches.setValue(82, true);
	}

	if(saveFileGameVersion < 48) {
		actor.forgetPassive(241);
		actor.forgetPassive(243);
		actor.forgetPassive(844);
		//actor._recordPussyPettedCount = Math.min(actor._recordPussyPettedCount, LIMIT_PUSSY_PETTED_COUNT);
		//actor._recordDebuffFallenCount = Math.min(actor._recordDebuffFallenCount, LIMIT_DEBUFF_FALLEN_COUNT);

		this._levelOneBonusGracePeriod = 0;
		this._levelTwoBonusGracePeriod = 0;
		this._levelThreeBonusGracePeriod = 0;
		this._levelFourBonusGracePeriod = 0;
		this._levelFiveBonusGracePeriod = 0;

		this.recalculateBaseOrderChange();
	}

	if(saveFileGameVersion < 49) {
		this.recalculateBaseOrderChange();
	}

	if(saveFileGameVersion < 50) {
		delete actor._recordSeeEnemyTalkCockCount;
		delete actor._recordSeenPeople;
		delete actor._recordSeenMouthCount;
		delete actor._recordSeenBoobsCount;
		delete actor._recordSeenNipplesCount;
		delete actor._recordSeenClitCount;
		delete actor._recordSeenPussyCount;
		delete actor._recordSeenButtCount;
		delete actor._recordSeenAnalCount;
		delete actor._recordSeenAnalCreampieCount;
		delete actor._recordSeenPussyCreampieCount;
		delete actor._recordSeenBukkakeFaceCount;
		delete actor._recordSeenBukkakeBoobsCount;
		delete actor._recordSeenBukkakeButtCount;
		delete actor._recordSeenMouthSwallowCount;
		delete actor._recordSeenTotalCount;

		for(let i = GLORY_SKILL_START; i <= GLORY_SKILL_END; i++) {
			actor.learnSkill(i);
		}
		this.riotingRoomsCheck();
		this.update_addToAllWanted_Records_v50();
		this.setStartingRunDate(this._startingDate);

		actor.clearTempRecords();
		actor._recordSoloCellCount = 0;
		actor._liquidOnFloor = 0;
		actor._firstFaceBukkakeWantedID = -1;
		actor._firstFaceBukkakeDate = false;
		actor._firstFaceBukkakeName = false;
		actor._firstFaceBukkakeMapID = -1;
		actor._lastFaceBukkakeName = false;
		actor._lastFaceBukkakeDate = false;
		actor._lastFaceBukkakeMapID = -1;

		actor._recordFloorEjaculationCount = 0;
		actor._recordFloorEjaculationML = 0;
		actor._recordBukkakeLegsCount = 0;
		actor._recordTalkedAtAboutMouthPeople = 0;
		actor._recordTalkedAtAboutBoobsPeople = 0;
		actor._recordTalkedAtAboutPussyPeople = 0;
		actor._recordTalkedAtAboutButtPeople = 0;
		actor._recordTalkedAtAboutCockPeople = 0;
		actor._recordTalkedAtAboutMouthPostFirstDefeatCount = 0;
		actor._recordTalkedAtAboutBoobsPostFirstDefeatCount = 0;
		actor._recordTalkedAtAboutPussyPostFirstDefeatCount = 0;
		actor._recordTalkedAtAboutButtPostFirstDefeatCount = 0;
		actor._recordTalkedAtAboutCockPostFirstDefeatCount = 0;
		actor._recordDebuffOffBalancedPostFirstDefeatCount = 0;
		actor._recordDebuffFallenPostFirstDefeatCount = 0;
		actor._recordDebuffDisarmedPostFirstDefeatCount = 0;
		actor._recordDebuffDownStaminaPostFirstDefeatCount = 0;

		actor._todayTalkedAtAboutMouthPeople = 0;
		actor._todayTalkedAtAboutBoobsPeople = 0;
		actor._todayTalkedAtAboutPussyPeople = 0;
		actor._todayTalkedAtAboutButtPeople = 0;
		actor._todayTalkedAtAboutCockPeople = 0;

		actor._recordEnemySawCount = 0;
		actor._recordEnemySawMouthPostFirstPublicOrgasmCount = 0;
		actor._recordEnemySawBoobsPostFirstPublicOrgasmCount = 0;
		actor._recordEnemySawPussyPostFirstPublicOrgasmCount = 0;
		actor._recordEnemySawButtPostFirstPublicOrgasmCount = 0;

		actor._todayEnemySawPeople = 0;
		actor._todayEnemySawMouthPeople = 0;
		actor._todayEnemySawBoobsPeople = 0;
		actor._todayEnemySawPussyPeople = 0;
		actor._todayEnemySawButtPeople = 0;

		actor._todayKissedCount = 0;
		actor._todayHandjobCount = 0;
		actor._todayBlowjobCount = 0;
		actor._todayTittyFuckCount = 0;
		actor._todayPussyFuckedCount = 0;
		actor._todayAnalFuckedCount = 0;
		actor._todayBoobsPettedCount = 0;
		actor._todayNipplesPettedCount = 0;
		actor._todayButtPettedCount = 0;
		actor._todayAnalPettedCount = 0;
		actor._todayClitPettedCount = 0;
		actor._todayPussyPettedCount = 0;
		actor._todayButtSpankedCount = 0;
		actor._todaySeeJerkOffCount = 0;
		actor._todayCunnilingusCount = 0;
		actor._todayRimjobCount = 0;
		actor._todayFootjobCount = 0;
		actor._todayCockPettedCount = 0;
		actor._todayFingersSuckedCount = 0;

		actor._todayKissedPeople = 0;
		actor._todayHandjobPeople = 0;
		actor._todayBlowjobPeople = 0;
		actor._todayTittyFuckedPeople = 0;
		actor._todayPussyFuckedPeople = 0;
		actor._todayAnalFuckedPeople = 0;
		actor._todayBukkakePeople = 0;
		actor._todayFaceBukkakePeople = 0;
		actor._todaySwallowPeople = 0;
		actor._todayPussyCreampiePeople = 0;
		actor._todayAnalCreampiePeople = 0;
		actor._todayOrgasmPresencePeople = 0;
		actor._todayCunnilingusPeople = 0;
		actor._todayRimjobPeople = 0;
		actor._todayFootjobPeople = 0;
		actor._todayButtSpankedPeople = 0;
		actor._todayCockPettedPeople = 0;
		actor._todayFingersSuckedPeople = 0;
		actor._todayBoobsPettedPeople = 0;
		actor._todayNipplesPettedPeople = 0;
		actor._todayClitPettedPeople = 0;
		actor._todayPussyPettedPeople = 0;
		actor._todayButtPettedPeople = 0;
		actor._todayAnalPettedPeople = 0;

		actor._todayCockKickUsageCount = 0;
		actor._todayCockStareUsageCount = 0;
		actor._todayCockPetUsageCount = 0;

		actor._todayTotalToysInsertedCount = 0;
		actor._todayClitToyInsertedCount = 0;
		actor._todayPussyToyInsertedCount = 0;
		actor._todayAnalToyInsertedCount = 0;

		actor._todayTotalToysUsedByEnemyCount = 0;
		actor._todayClitToyUsedByEnemyCount = 0;
		actor._todayPussyToyUsedByEnemyCount = 0;
		actor._todayAnalToyUsedByEnemyCount = 0;

		actor._todayDoublePenetrationCount = 0;
		actor._todayTriplePenetrationCount = 0;
		actor._todayBlowbangCount = 0;

		actor._todayTauntCount = 0;
		actor._todaySexPose_KickCounterCount = 0;
		actor._todaySubduedTotal = 0;

		actor._todaySwallowML = 0;
		actor._todayPussyCreampieML = 0;
		actor._todayAnalCreampieML = 0;
		actor._todaySwallowMaxML = 0;
		actor._todayPussyCreampieMaxML = 0;
		actor._todayAnalCreampieMaxML = 0;
		actor._todayFloorEjaculationCount = 0;
		actor._todayFloorEjaculationML = 0;
		actor._todayTotalEjaculationCount = 0;
		actor._todayTotalEjaculationML = 0;

		actor._todayPussyDripTenthML = 0;
		actor._todayOrgasmCount = 0;
		actor._todayOrgasmML = 0;

		actor._recordClothesStrippedPostFirstPublicOrgasmCount = 0;
		actor._recordPantiesStrippedPostFirstPublicOrgasmCount = 0;

		actor._denyingExternalEjaculations = false;
		actor._denyingInternalEjaculations = false;
		actor.resetAttackSkillConsUsage();
		actor.resetOnaniFrustration();
		actor.resetEnergyCosts();
		actor.resetSexSkillConsUsage();
		actor.calculateAllMaxDesires();
		actor.learnSkill(SKILL_KARRYN_REMOVE_TOY_CANT_ID);
		actor.learnSkill(SKILL_RECEPTIONIST_ACCEPT_REQUEST_CANT_ID);
		actor.learnSkill(SKILL_KARRYN_MAS_STOP_BATTLE_ID);
		actor.learnSkill(SKILL_KARRYN_OPEN_PLEASURE_3TURNS_ID);
		actor.learnSkill(SKILL_KARRYN_OPEN_PLEASURE_5TURNS_ID);
		actor.learnSkill(SKILL_KARRYN_OPEN_PLEASURE_10TURNS_ID);
		actor.learnSkill(SKILL_CAUTIOUS_REVITALIZE_ID);
		actor.learnSkill(SKILL_CAUTIOUS_SECOND_WIND_ID);
		actor.learnSkill(SKILL_CAUTIOUS_FIX_CLOTHES_ID);
		actor.learnSkill(SKILL_DEFENSIVE_REVITALIZE_ID);
		actor.learnSkill(SKILL_DEFENSIVE_SECOND_WIND_ID);
		actor.learnSkill(SKILL_DEFENSIVE_FIX_CLOTHES_ID);
		actor.learnSkill(SKILL_COUNTER_REVITALIZE_ID);
		actor.learnSkill(SKILL_COUNTER_SECOND_WIND_ID);
		actor.learnSkill(SKILL_COUNTER_FIX_CLOTHES_ID);
		actor.learnSkill(1667);
		actor.learnSkill(106);
		actor.learnSkill(107);
		actor.learnSkill(108);
		actor.learnSkill(109);

		actor.forgetPassive(164);
		actor.forgetPassive(247);
		actor.forgetPassive(709);
		actor.forgetPassive(710);
		actor.forgetPassive(718);

		actor.resetFirstTimeTitleEquipRegister();
		actor._flagEquippedToiletQueueTitleForWholeDay = false;
		actor.setWantsToOnaniInBattle(false);
		actor.setOnaniInBattleDesireBuildup(0);
		actor.setTachieClitToyBehindCocks(false);
		actor.setTachieSemenLeftArmInFrontOfFront(false);

		actor._playthroughRecordFullHitTakenCount = 0;
		actor._playthroughRecordAttackEvadedCount = 0;

		actor._recordMaxReached50MouthDesireCount = 0;
		actor._recordMaxReached50BoobsDesireCount = 0;
		actor._recordMaxReached50PussyDesireCount = 0;
		actor._recordMaxReached50ButtDesireCount = 0;
		actor._recordMaxReached50CockDesireCount = 0;
		actor._recordMaxReached75MouthDesireCount = 0;
		actor._recordMaxReached75BoobsDesireCount = 0;
		actor._recordMaxReached75PussyDesireCount = 0;
		actor._recordMaxReached75ButtDesireCount = 0;
		actor._recordMaxReached75CockDesireCount = 0;
		actor._recordMaxReached100MouthDesireCount = 0;
		actor._recordMaxReached100BoobsDesireCount = 0;
		actor._recordMaxReached100PussyDesireCount = 0;
		actor._recordMaxReached100ButtDesireCount = 0;
		actor._recordMaxReached100CockDesireCount = 0;
		actor._recordMaxReached150MouthDesireCount = 0;
		actor._recordMaxReached150BoobsDesireCount = 0;
		actor._recordMaxReached150PussyDesireCount = 0;
		actor._recordMaxReached150ButtDesireCount = 0;
		actor._recordMaxReached150CockDesireCount = 0;
		actor._recordMaxReached250TotalDesireCount = 0;
		actor._recordMaxReached375TotalDesireCount = 0;
		actor._recordMaxReached500TotalDesireCount = 0;
		actor._recordMaxReached750TotalDesireCount = 0;

		actor._recordMasturbatedCouchTotalCount = 0;
		actor._recordMasturbatedTotalCount = 0;
		actor._recordMasturbatedInBattleCount = 0;
		actor._recordMasturbatedUsingHalberdCount = 0;
		actor._recordMasturbatedGloryHoleCount = 0;
		actor._recordMasturbatedInBattlePresencePeople = 0;
		actor._recordOrgasmFromMasturbationCount = 0;

		actor._recordGloryBattleCount = 0;
		actor._recordGloryBattleCocksAppearedCount = 0;
		actor._recordGloryBattleCockBeingServedPeople = 0;
		actor._playthroughRecordGloryFinishedPissingCocksServingCount = 0;
		actor._playthroughRecordGloryLongestStallQueue = 0;
		actor._playthroughRecordGloryTurnsSpentResting = 0;

		actor._todayServedGuardInBar = 0;
		actor._todayServedGuardInGuardBattle = 0;
		actor._todayServedGuardInToiletBattle = 0;
		actor._todayServedGuardInGuardDefeat = 0;
		actor._todayToiletBattleSexualPartners = 0;
		actor._todayLevelTwoDefeatSexualPartners = 0;

		for(let i = MASTURBATE_INBATTLE_SKILL_START; i <= MASTURBATE_INBATTLE_SKILL_END; i++) {
			actor.learnSkill(i);
		}

		this._newTitlesGainedIcon = [];
		this.setIsInGloryBattleFlag(false);
		this._todayBarRepDecayed = false;
		this._todayVisitorRepDecayed = false;
		this._daysWithoutDoingGloryHole = 0;
		this._todayGloryHoleRepDecayed = false;

		actor.recalculateSlutLvl();
	}

	if(saveFileGameVersion < 51) {
		actor._recordSubduedEnemiesWithAttack = 0;
		actor._todaySubduedEnemiesWithAttack = 0;
		actor.resetDesires();
		actor.calculateAllMaxDesires();
		if(!Karryn.isInMapPose())
			actor.setupDesires();
	}

	if(saveFileGameVersion < 52) {
		this.update_addToAllWanted_Records_v52();
	}

	if(saveFileGameVersion < 53) {
		actor.forgetPassive(PASSIVE_SADISM_ORGASM_TWO_ID);
		actor.forgetPassive(PASSIVE_MASOCHISM_ORGASM_TWO_ID);
	}

	if(saveFileGameVersion < 54) {
		actor._uncommittedCharmExp = 0;
	}

	if(saveFileGameVersion < 55) {
		actor._recordBoobsPettedOnaniCount = 0;
		actor._recordNipplesPettedOnaniCount = 0;
		actor._recordButtPettedOnaniCount = 0;
		actor._recordAnalPettedOnaniCount = 0;
		actor._recordClitPettedOnaniCount = 0;
		actor._recordPussyPettedOnaniCount = 0;
		actor._recordFingersSuckedOnaniCount = 0;
	}

	if(saveFileGameVersion < 56) {
		actor.setupPassiveReqBaseArray();
		actor.setupPassiveReqExtraArray();
		actor.setupPassiveReqMultiArray();
		actor.setupSkillsLearnedArray();
		actor._liquidCumOnToiletSeat = 0;
		actor._liquidJuiceOnToiletSeat = 0;
		actor._liquidGloryCumOnLeftWall = [0, 0, 0, 0, 0 , 0, 0, 0, 0];
		actor._liquidGloryCumOnLeftHole = [0, 0];
		actor._liquidGloryCumOnLeftToilet = [0, 0];
		actor._liquidGloryCumOnRightWall = [0, 0, 0, 0, 0 , 0, 0, 0, 0];
		actor._liquidGloryCumOnRightHole = [0, 0];
		actor._liquidGloryCumOnRightToilet = [0, 0, 0, 0];
		actor.setMaxTachieSemenToiletSeatId(0);
		actor.setMaxTachieWetToiletSeatId(0);
		actor.setMaxTachieGlorySemenLeftWallId(0);
		actor.setMaxTachieGlorySemenRightWallId(0);
		actor.setMaxTachieGlorySemenLeftHoleId(0);
		actor.setMaxTachieGlorySemenRightHoleId(0);
		actor.setMaxTachieGlorySemenLeftToiletId(0);
		actor.setMaxTachieGlorySemenRightToiletId(0);

		actor._recordSubduedEnemiesSexually = 0;
		actor._tempRecordSubduedEnemiesSexually = 0;
		actor._todaySubduedEnemiesSexually = 0;
		actor._tempRecordMasturbatedInBattleCount = 0;

		actor._playthroughRecordDefeatedTotal = actor._recordDefeatedTotal;
		actor._playthroughRecordDefeatedLevelOneCount = 0;
		actor._playthroughRecordDefeatedLevelTwoCount = 0;
		actor._playthroughRecordDefeatedLevelThreeCount = 0;
		actor._playthroughRecordDefeatedLevelFourCount = 0;
		actor._playthroughRecordDefeatedLevelFiveCount = 0;

		actor.learnSkill(1577);

		if(!this._prisonLevelOne_anarchyDays) this._prisonLevelOne_anarchyDays = 0;
		if(!this._prisonLevelTwo_anarchyDays) this._prisonLevelTwo_anarchyDays = 0;
		if(!this._prisonLevelThree_anarchyDays) this._prisonLevelThree_anarchyDays = 0;
		if(!this._prisonLevelFour_anarchyDays) this._prisonLevelFour_anarchyDays = 0;
		if(!this._prisonLevelFive_anarchyDays) this._prisonLevelFive_anarchyDays = 0;

	}

	if(saveFileGameVersion < 57) {
		if(typeof actor.tachieBody === "number")
			actor._tachieBody = '' + actor.tachieBody;
		if(typeof actor.tachieMouth === "number")
			actor._tachieMouth = '' + actor.tachieMouth;
		if(typeof actor.tachieRightArm === "number")
			actor._tachieRightArm = '' + actor.tachieRightArm;
		if(typeof actor.tachieLeftArm === "number")
			actor._tachieLeftArm = '' + actor.tachieLeftArm;
		if(typeof actor.tachieRightBoob === "number")
			actor._tachieRightBoob = '' + actor.tachieRightBoob;
		if(typeof actor.tachieLeftBoob === "number")
			actor._tachieLeftBoob = '' + actor.tachieLeftBoob;
		if(typeof actor.tachieHead === "number")
			actor._tachieHead = '' + actor.tachieHead;
		if(typeof actor.tachieLegs === "number")
			actor._tachieLegs = '' + actor.tachieLegs;
	}

	if(saveFileGameVersion < 58) {
		if(actor._tachieRightBoob === '0')
			actor._tachieRightBoob = '';
		if(actor._tachieLeftBoob === '0')
			actor._tachieLeftBoob = '';
		if(actor.tachieLegs === '0')
			actor._tachieLegs = '';
	}

	if(saveFileGameVersion < 60) {
		actor._titlesEquippedOnceRegister[TITLE_ID_VISITOR_FIRST_KISS] = false;
	}

	if(saveFileGameVersion < 61) {
		if($gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV2_ID) && Prison.prisonLevelTwoIsAnarchy()) {
			Prison.firstSubjugationPrisonLevelTwo();
		}
		if($gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV3_ID) && Prison.prisonLevelThreeIsAnarchy()) {
			Prison.firstSubjugationPrisonLevelThree();
		}
		else {
			this._prisonLevelThree_anarchyDays = 1;
		}

		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_GOBLIN_THREE_ID, actor._recordSexualPartnersGoblin))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_GOBLIN_THREE_ID, actor._recordSexualPartnersGoblin);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_THUG_THREE_ID, actor._recordSexualPartnersThug))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_THUG_THREE_ID, actor._recordSexualPartnersThug);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_GUARD_THREE_ID, actor._recordSexualPartnersGuard))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_GUARD_THREE_ID, actor._recordSexualPartnersGuard);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_NERD_THREE_ID, actor._recordSexualPartnersNerd))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_NERD_THREE_ID, actor._recordSexualPartnersNerd);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_ROGUE_THREE_ID, actor._recordSexualPartnersRogue))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_ROGUE_THREE_ID, actor._recordSexualPartnersRogue);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_SLIME_THREE_ID, actor._recordSexualPartnersSlime))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_SLIME_THREE_ID, actor._recordSexualPartnersSlime);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_LIZARDMAN_THREE_ID, actor._recordSexualPartnersLizardman))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_LIZARDMAN_THREE_ID, actor._recordSexualPartnersLizardman);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_ORC_THREE_ID, actor._recordSexualPartnersOrc))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_ORC_THREE_ID, actor._recordSexualPartnersOrc);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_HOMELESS_THREE_ID, actor._recordSexualPartnersHomeless))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_HOMELESS_THREE_ID, actor._recordSexualPartnersHomeless);

		if(actor._tachieRightArm === '0')
			actor._tachieRightArm = '';
		if(actor._tachieLeftArm === '0')
			actor._tachieLeftArm = '';

		actor._recordSexPose_WerewolfBackTotalCount = 0;
		actor._recordSexPose_WerewolfBackPussyCount = 0;
		actor._recordSexPose_WerewolfBackAnalCount = 0;
		actor._recordSexPose_YetiPaizuriCount = 0;
		actor._recordSexPose_YetiPaizuriFeraCount = 0;
		actor._recordSexPose_YetiCarryCount = 0;
		actor._recordSexualPartnersWerewolf = 0;
		actor._recordSexualPartnersYeti = 0;
		actor._recordPilloryCount = 0;
		actor._tempRecordPillory = false;
		actor._recordEnemyTypeSwallowPrisoner = 0;
		actor._recordEnemyTypeSwallowGuard = 0;
		actor._recordEnemyTypeSwallowThug = 0;
		actor._recordEnemyTypeSwallowGoblin = 0;
		actor._recordEnemyTypeSwallowNerd = 0;
		actor._recordEnemyTypeSwallowRogue = 0;
		actor._recordEnemyTypeSwallowSlime = 0;
		actor._recordEnemyTypeSwallowLizardman = 0;
		actor._recordEnemyTypeSwallowOrc = 0;
		actor._recordEnemyTypeSwallowHomeless = 0;
		actor._recordEnemyTypeSwallowWerewolf = 0;
		actor._recordEnemyTypeSwallowYeti = 0;
		actor._recordEnemyTypeSwallowTotal = 0;
		actor._recordEnemyTypePussyCreampiePrisoner = 0;
		actor._recordEnemyTypePussyCreampieGuard = 0;
		actor._recordEnemyTypePussyCreampieThug = 0;
		actor._recordEnemyTypePussyCreampieGoblin = 0;
		actor._recordEnemyTypePussyCreampieNerd = 0;
		actor._recordEnemyTypePussyCreampieRogue = 0;
		actor._recordEnemyTypePussyCreampieSlime = 0;
		actor._recordEnemyTypePussyCreampieLizardman = 0;
		actor._recordEnemyTypePussyCreampieOrc = 0;
		actor._recordEnemyTypePussyCreampieHomeless = 0;
		actor._recordEnemyTypePussyCreampieWerewolf = 0;
		actor._recordEnemyTypePussyCreampieYeti = 0;
		actor._recordEnemyTypePussyCreampieTotal = 0;
		actor._flagNeverUnequippedExcellentLeaderTitle = true;
		actor._flagNeverUnequippedPrisonFighterTitle = true;
		actor._flagNeverUnequippedAspringHeroTitle = true;
		actor._flagNeverUnequippedFinalDestinationTitle = true;
		actor._playthroughRecordWaitressDroppedTrayCount = 0;
		actor._playthroughRecordArtisanMealSMARTCount = 0;
		actor._playthroughRecordArtisanMealCOMFYCount = 0;
		actor._playthroughRecordArtisanMealHEARTCount = 0;
		actor._playthroughRecordArtisanMealSLUTCount = 0;
		actor._playthroughRecordArtisanMealPUSSYCount = 0;
		actor._playthroughRecordArtisanMealHEROCount = 0;
		actor._playthroughRecordArtisanMealARMEDCount = 0;
		actor._playthroughRecordArtisanMealWARDENCount = 0;
		actor._playthroughRecordArtisanMealBITCHCount = 0;
		actor._playthroughRecordArtisanMealANALCount = 0;
		actor._playthroughRecordArtisanMealTotalCount = 0;
		actor._liquidBukkakeButtRight = 0;
		actor._liquidBukkakeButtLeft = 0;

		this._prisonLevelThree_gymRioting = false;
		this._prisonLevelThree_cellBlockSouthRioting = false;
		this._prisonLevelThree_cellBlockNorthWestRioting = false;
		this._prisonLevelThree_cellBlockNorthEastRioting = false;
		this._wantedId_Noinim = -1;

		this.setupNoinimReinforcementVariables();
		this.resetMinionThrowVariables();
	}
	if(saveFileGameVersion < 62) {
		actor.setupPassiveReqBaseArray();
		this.update_addToAllWanted_Records_v62();

		actor._recordCockStaredCount = actor._recordCockStareUsageCount;
		actor._recordCockStaredAtPeople = 0;
		actor._playthroughRecordCockStaredAtPeople = 0;
		actor._playthroughRecordEjaculatedWithKarrynKissCount = 0;
		actor._playthroughRecordEjaculatedWithKarrynDoubleHandjobCount = 0;
		actor._playthroughRecordErectWithCockPetCount = 0;
		actor._todayCockStaredAtPeople = 0;
		actor._playthroughRecordFootjobThugPeople = 0;
		actor._playthroughRecordFootjobOrcPeople = 0;
		actor._playthroughRecordKissUsagePeople = 0;
		actor._playthroughRecordCockStareUsagePeople = 0;
		actor._playthroughRecordCockPetUsagePeople = 0;
		actor._playthroughRecordHandjobUsagePeople = 0;
		actor._playthroughRecordBlowjobUsagePeople = 0;
		actor._playthroughRecordRimjobUsagePeople = 0;
		actor._playthroughRecordFootjobUsagePeople = 0;
		actor._playthroughRecordTittyFuckUsagePeople = 0;
		actor._playthroughRecordPussySexUsagePeople = 0;
		actor._playthroughRecordAnalSexUsagePeople = 0;
		actor._playthroughRecordAnalSexUsagePeopleSingleBattleMaxRecord = 0;
		actor._playthroughRecordKickCounterAfterLightKickSingleDayMaxRecord = 0;
		actor._todayBlowjobUsagePeople = 0;
		actor._todayRimjobUsagePeople = 0;
		actor._tempRecordAnalSexUsagePeople = 0;
		actor._todayPussySexUsagePartnersThug = 0;
		actor._todayPussySexUsagePartnersPrisoner = 0;
		actor._todayPussySexUsagePartnersGuard = 0;
		actor._todayPussySexUsagePartnersGoblin = 0;
		actor._todayPussySexUsagePartnersNerd = 0;
		actor._todayPussySexUsagePartnersRogue = 0;
		actor._todayPussySexUsagePartnersSlime = 0;
		actor._todayPussySexUsagePartnersLizardman = 0;
		actor._todayPussySexUsagePartnersOrc = 0;
		actor._todayPussySexUsagePartnersHomeless = 0;
		actor._todayPussySexUsagePartnersWerewolf = 0;
		actor._todayPussySexUsagePartnersYeti = 0;
		actor._todayPussySexUsagePartnersDifferentTotal = 0;
		actor._todayKickCounterAfterLightKickCount = 0;
		actor._playthroughRecordMetalSexualPartnersCount = 0;

		if(actor.meetsPassiveReq(PASSIVE_TOYS_PLEASURE_ONE_ID, actor._recordToysPleasure))
			actor.addToPassiveReqExtra(PASSIVE_TOYS_PLEASURE_ONE_ID, actor._recordToysPleasure);
		if(actor.meetsPassiveReq(PASSIVE_TAUNT_COUNT_ONE_ID, actor._recordTauntPeople))
			actor.addToPassiveReqExtra(PASSIVE_TAUNT_COUNT_ONE_ID, actor._recordTauntPeople);
		if(actor.meetsPassiveReq(PASSIVE_TAUNT_COUNT_TWO_ID, actor._recordTauntPeople))
			actor.addToPassiveReqExtra(PASSIVE_TAUNT_COUNT_TWO_ID, actor._recordTauntPeople);
		if(actor.meetsPassiveReq(PASSIVE_FLAUNT_COUNT_ONE_ID, actor._recordFlauntPeople))
			actor.addToPassiveReqExtra(PASSIVE_FLAUNT_COUNT_ONE_ID, actor._recordFlauntPeople);
		if(actor.meetsPassiveReq(PASSIVE_FLAUNT_COUNT_TWO_ID, actor._recordFlauntPeople))
			actor.addToPassiveReqExtra(PASSIVE_FLAUNT_COUNT_TWO_ID, actor._recordFlauntPeople);

		actor._recordMaxReached150MouthDesireCount = 0;
		actor._recordMaxReached150BoobsDesireCount = 0;
		actor._recordMaxReached150PussyDesireCount = 0;
		actor._recordMaxReached150ButtDesireCount = 0;
		actor._recordMaxReached150CockDesireCount = 0;
		actor._recordMaxReached750TotalDesireCount = 0;
		if(actor.meetsPassiveReq(PASSIVE_KISS_PEOPLE_THREE_ID, actor._recordKissedPeople))
			actor.addToPassiveReqExtra(PASSIVE_KISS_PEOPLE_THREE_ID, actor._recordKissedPeople);
		if(actor.meetsPassiveReq(PASSIVE_KISS_USAGE_THREE_ID, actor._recordKissUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_KISS_USAGE_THREE_ID, actor._recordKissUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_SUCKED_FINGERS_COUNT_THREE_ID, actor._recordFingersSuckedCount))
			actor.addToPassiveReqExtra(PASSIVE_SUCKED_FINGERS_COUNT_THREE_ID, actor._recordFingersSuckedCount);
		if(actor.meetsPassiveReq(PASSIVE_SUCKED_FINGERS_PEOPLE_THREE_ID, actor._recordFingersSuckedPeople))
			actor.addToPassiveReqExtra(PASSIVE_SUCKED_FINGERS_PEOPLE_THREE_ID, actor._recordFingersSuckedPeople);
		if(actor.meetsPassiveReq(PASSIVE_BJ_PEOPLE_THREE_ID, actor._recordBlowjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_BJ_PEOPLE_THREE_ID, actor._recordBlowjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_BJ_USAGE_THREE_ID, actor._recordBlowjobUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_BJ_USAGE_THREE_ID, actor._recordBlowjobUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_MOUTH_PLEASURE_TWO_ID, actor._recordMouthPleasure))
			actor.addToPassiveReqExtra(PASSIVE_MOUTH_PLEASURE_TWO_ID, actor._recordMouthPleasure);
		if(actor.meetsPassiveReq(PASSIVE_HJ_PEOPLE_THREE_ID, actor._recordHandjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_HJ_PEOPLE_THREE_ID, actor._recordHandjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_HJ_USAGE_THREE_ID, actor._recordHandjobUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_HJ_USAGE_THREE_ID, actor._recordHandjobUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_ORGASM_COUNT_SIX_ID, actor._recordOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_ORGASM_COUNT_SIX_ID, actor._recordOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_ORGASM_ML_TWO_ID, actor._recordOrgasmML))
			actor.addToPassiveReqExtra(PASSIVE_ORGASM_ML_TWO_ID, actor._recordOrgasmML);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_JUICE_ML_TWO_ID, actor._recordPussyDripTenthML))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_JUICE_ML_TWO_ID, actor._recordPussyDripTenthML);
		if(actor.meetsPassiveReq(PASSIVE_BOOBS_PETTED_PEOPLE_THREE_ID, actor._recordBoobsPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BOOBS_PETTED_PEOPLE_THREE_ID, actor._recordBoobsPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_NIPPLES_PETTED_COUNT_THREE_ID, actor._recordNipplesPettedCount))
			actor.addToPassiveReqExtra(PASSIVE_NIPPLES_PETTED_COUNT_THREE_ID, actor._recordNipplesPettedCount);
		if(actor.meetsPassiveReq(PASSIVE_NIPPLES_PETTED_PEOPLE_THREE_ID, actor._recordNipplesPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_NIPPLES_PETTED_PEOPLE_THREE_ID, actor._recordNipplesPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_TITTYFUCK_PEOPLE_THREE_ID, actor._recordTittyFuckPeople))
			actor.addToPassiveReqExtra(PASSIVE_TITTYFUCK_PEOPLE_THREE_ID, actor._recordTittyFuckPeople);
		if(actor.meetsPassiveReq(PASSIVE_TITTYFUCK_USAGE_THREE_ID, actor._recordTittyFuckUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_TITTYFUCK_USAGE_THREE_ID, actor._recordTittyFuckUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_BOOBS_PLEASURE_TWO_ID, actor._recordBoobsPleasure + actor._recordNipplesPleasure))
			actor.addToPassiveReqExtra(PASSIVE_BOOBS_PLEASURE_TWO_ID, actor._recordBoobsPleasure + actor._recordNipplesPleasure);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_TOTAL_FOUR_ID, actor._recordSexualPartnersTotal))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_TOTAL_FOUR_ID, actor._recordSexualPartnersTotal);
		if(actor.meetsPassiveReq(PASSIVE_VIRGINS_TOTAL_FOUR_ID, actor._recordVirginitiesTakenTotal))
			actor.addToPassiveReqExtra(PASSIVE_VIRGINS_TOTAL_FOUR_ID, actor._recordVirginitiesTakenTotal);
		if(actor.meetsPassiveReq(PASSIVE_KICK_COUNTER_SEX_COUNT_THREE_ID, actor._recordSexPose_KickCounterCount))
			actor.addToPassiveReqExtra(PASSIVE_KICK_COUNTER_SEX_COUNT_THREE_ID, actor._recordSexPose_KickCounterCount);
		if(actor.meetsPassiveReq(PASSIVE_CLIT_PETTED_PEOPLE_THREE_ID, actor._recordClitPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_CLIT_PETTED_PEOPLE_THREE_ID, actor._recordClitPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_CUNNILINGUS_PEOPLE_TWO_ID, actor._recordCunnilingusPeople))
			actor.addToPassiveReqExtra(PASSIVE_CUNNILINGUS_PEOPLE_TWO_ID, actor._recordCunnilingusPeople);
		if(actor.meetsPassiveReq(PASSIVE_CUNNILINGUS_PEOPLE_THREE_ID, actor._recordCunnilingusPeople))
			actor.addToPassiveReqExtra(PASSIVE_CUNNILINGUS_PEOPLE_THREE_ID, actor._recordCunnilingusPeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_PETTED_PEOPLE_THREE_ID, actor._recordPussyPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_PETTED_PEOPLE_THREE_ID, actor._recordPussyPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_PEOPLE_FOUR_ID, actor._recordPussyFuckedPeople))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_PEOPLE_FOUR_ID, actor._recordPussyFuckedPeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_USAGE_THREE_ID, actor._recordPussySexUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_USAGE_THREE_ID, actor._recordPussySexUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_PLEASURE_TWO_ID, actor._recordPussyPleasure + actor._recordClitPleasure))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_PLEASURE_TWO_ID, actor._recordPussyPleasure + actor._recordClitPleasure);
		if(actor.meetsPassiveReq(PASSIVE_BUTT_PETTED_PEOPLE_THREE_ID, actor._recordButtPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BUTT_PETTED_PEOPLE_THREE_ID, actor._recordButtPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_BUTT_SPANKED_PEOPLE_THREE_ID, actor._recordButtSpankedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BUTT_SPANKED_PEOPLE_THREE_ID, actor._recordButtSpankedPeople);
		if(actor.meetsPassiveReq(PASSIVE_SPANKING_ORGASM_TWO_ID, actor._recordOrgasmFromSpankingCount))
			actor.addToPassiveReqExtra(PASSIVE_SPANKING_ORGASM_TWO_ID, actor._recordOrgasmFromSpankingCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_PETTED_PEOPLE_THREE_ID, actor._recordAnalPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_PETTED_PEOPLE_THREE_ID, actor._recordAnalPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_PEOPLE_FOUR_ID, actor._recordAnalFuckedPeople))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_PEOPLE_FOUR_ID, actor._recordAnalFuckedPeople);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_USAGE_THREE_ID, actor._recordAnalSexUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_USAGE_THREE_ID, actor._recordAnalSexUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_PLEASURE_TWO_ID, actor._recordButtPleasure + actor._recordAnalPleasure))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_PLEASURE_TWO_ID, actor._recordButtPleasure + actor._recordAnalPleasure);
		if(actor.meetsPassiveReq(PASSIVE_TOYS_PLEASURE_TWO_ID, actor._recordToysPleasure))
			actor.addToPassiveReqExtra(PASSIVE_TOYS_PLEASURE_TWO_ID, actor._recordToysPleasure);
		if(actor.meetsPassiveReq(PASSIVE_HORNY_COUNT_THREE_ID, actor._recordHornyCount))
			actor.addToPassiveReqExtra(PASSIVE_HORNY_COUNT_THREE_ID, actor._recordHornyCount);
		if(actor.meetsPassiveReq(PASSIVE_HORNY_COUNT_FOUR_ID, actor._recordHornyCount))
			actor.addToPassiveReqExtra(PASSIVE_HORNY_COUNT_FOUR_ID, actor._recordHornyCount);
		if(actor.meetsPassiveReq(PASSIVE_OFFBALANCE_COUNT_THREE_ID, actor._recordDebuffOffBalancedPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_OFFBALANCE_COUNT_THREE_ID, actor._recordDebuffOffBalancedPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_FALLEN_COUNT_THREE_ID, actor._recordDebuffFallenPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_FALLEN_COUNT_THREE_ID, actor._recordDebuffFallenPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_DOWNSTAMINA_COUNT_THREE_ID, actor._recordDebuffDownStaminaPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_DOWNSTAMINA_COUNT_THREE_ID, actor._recordDebuffDownStaminaPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_KARRYN_STARE_COCK_FOUR_ID, actor._recordCockStareUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_KARRYN_STARE_COCK_FOUR_ID, actor._recordCockStareUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_COCKINESS_COUNT_THREE_ID, actor._recordCockinessGainedValue))
			actor.addToPassiveReqExtra(PASSIVE_COCKINESS_COUNT_THREE_ID, actor._recordCockinessGainedValue);
		if(actor.meetsPassiveReq(PASSIVE_COCKINESS_COUNT_FOUR_ID, actor._recordCockinessGainedValue))
			actor.addToPassiveReqExtra(PASSIVE_COCKINESS_COUNT_FOUR_ID, actor._recordCockinessGainedValue);
		if(actor.meetsPassiveReq(PASSIVE_TAUNT_COUNT_THREE_ID, actor._recordTauntPeople))
			actor.addToPassiveReqExtra(PASSIVE_TAUNT_COUNT_THREE_ID, actor._recordTauntPeople);
		if(actor.meetsPassiveReq(PASSIVE_FLAUNT_COUNT_THREE_ID, actor._recordFlauntPeople))
			actor.addToPassiveReqExtra(PASSIVE_FLAUNT_COUNT_THREE_ID, actor._recordFlauntPeople);
		if(actor.meetsPassiveReq(PASSIVE_FOOTJOB_PEOPLE_TWO_ID, actor._recordFootjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_FOOTJOB_PEOPLE_TWO_ID, actor._recordFootjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_FOOTJOB_PEOPLE_THREE_ID, actor._recordFootjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_FOOTJOB_PEOPLE_THREE_ID, actor._recordFootjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_FOOTJOB_USAGE_THREE_ID, actor._recordFootjobUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_FOOTJOB_USAGE_THREE_ID, actor._recordFootjobUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_DOUBLE_PEN_COUNT_THREE_ID, actor._recordDoublePenetrationCount))
			actor.addToPassiveReqExtra(PASSIVE_DOUBLE_PEN_COUNT_THREE_ID, actor._recordDoublePenetrationCount);
		if(actor.meetsPassiveReq(PASSIVE_TRIPLE_PEN_COUNT_THREE_ID, actor._recordTriplePenetrationCount))
			actor.addToPassiveReqExtra(PASSIVE_TRIPLE_PEN_COUNT_THREE_ID, actor._recordTriplePenetrationCount);
	}
	if(saveFileGameVersion < 63) {
		if(!$gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV4_ID)) {
			$gameSelfSwitches.setValue([MAP_ID_LVL4_STAIRS_TO_LVL5, 3, "A"], false);
		}
	}
	if(saveFileGameVersion < 64) {
		this._lastDefeatedLevelOneDate = -1;
		this._lastDefeatedLevelTwoDate = -1;
		this._lastDefeatedLevelThreeDate = -1;
		this._lastDefeatedLevelFourDate = -1;
		this._lastDefeatedLevelFiveDate = -1;
		this._lastDefeatedGuardDate = -1;

		this.fixWantedHoboLevelPlus80();
	}
	if(saveFileGameVersion < 65) {
		if(actor.meetsPassiveReq(PASSIVE_RIMJOB_PEOPLE_TWO_ID, actor._recordRimjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_RIMJOB_PEOPLE_TWO_ID, actor._recordRimjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_RIMJOB_PEOPLE_THREE_ID, actor._recordRimjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_RIMJOB_PEOPLE_THREE_ID, actor._recordRimjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_RIMJOB_USAGE_THREE_ID, actor._recordRimjobUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_RIMJOB_USAGE_THREE_ID, actor._recordRimjobUsageCount);
	}
	if(saveFileGameVersion < 66) {
		actor.setupPassiveReqBaseArray();
		actor.setupLiquids();
		actor.setAllowTachieEmoteUpdate(true);
		$gameActors.actor(ACTOR_CHAT_FACE_ID).setAllowTachieEmoteUpdate(true);
		$gameSwitches.setValue(11, false);
		$gameSwitches.setValue(12, false);
		actor.restoreWardenClothingLostTemporaryDurability();
		actor.setTachieSemenRightArmInFrontOfFront(false);
		delete actor._tachieSemenBellyAndBoobsInFrontOfBoobs;
		actor.setTachieSemenBoobsInFrontOfBoobs(true);

		for(let i = STRIPPER_SKILL_START; i <= STRIPPER_SKILL_END; i++) {
			actor.learnSkill(i);
		}

		if(actor.meetsPassiveReq(PASSIVE_BUKKAKE_COUNT_THREE_ID, actor._recordBukkakeTotalCount))
			actor.addToPassiveReqExtra(PASSIVE_BUKKAKE_COUNT_THREE_ID, actor._recordBukkakeTotalCount);
		if(actor.meetsPassiveReq(PASSIVE_BUKKAKE_COUNT_FOUR_ID, actor._recordBukkakeTotalCount))
			actor.addToPassiveReqExtra(PASSIVE_BUKKAKE_COUNT_FOUR_ID, actor._recordBukkakeTotalCount);
		if(actor.meetsPassiveReq(PASSIVE_FACE_BUKKAKE_COUNT_TWO_ID, actor._recordBukkakeFaceCount))
			actor.addToPassiveReqExtra(PASSIVE_FACE_BUKKAKE_COUNT_TWO_ID, actor._recordBukkakeFaceCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_CREAMPIE_ML_FOUR_ID, actor._recordPussyCreampieML))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_CREAMPIE_ML_FOUR_ID, actor._recordPussyCreampieML);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_CREAMPIE_ML_FOUR_ID, actor._recordAnalCreampieML))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_CREAMPIE_ML_FOUR_ID, actor._recordAnalCreampieML);

		this.setStripClubReputation(0);
		this.setIsInStripperBattleFlag(false);
		this._daysWithoutDoingStripClub = 0;
		this._todayStripClubRepDecayed = false;
		this._stripperBattle_intermissionPhase = false;

		actor._recordStripClubStripperBattleCount = 0;
		actor._recordStripClubStripperSexCount = 0;
		actor._recordStripClubStripperMaxDanceCombo = 0;
		actor._recordStripClubCondomEjaculationCount = 0;
		actor._recordStripClubCondomWornCount = 0;

		actor._playthroughRecordStripClubStripperBattleCount = 0;
		actor._playthroughRecordStripClubStripperOrgasmOnStageCount = 0;
		actor._playthroughRecordStripClubCondomEjaculationCount = 0;
		actor._playthroughRecordStripClubCondomWornCount = 0;

		actor._todayServedGuardInStripClub = 0;

		this._nightBattle = false;
		this._nightBattleVariableCounted = false;
		this._gainNoOrderFlag = false;
		this.respawnNightBattleEnemies();

		actor._recordNightBattleCompletedCount = 0;
		actor._recordNightBattleCompletedPostFirstDefeatCount = 0;
		actor._passiveRequirement_base[PASSIVE_NIGHT_BATTLE_COUNT_ONE_ID] = 1;
		actor._passiveRequirement_base[PASSIVE_NIGHT_BATTLE_COUNT_TWO_ID] = 10;
		actor._passiveRequirement_base[PASSIVE_NIGHT_BATTLE_COUNT_THREE_ID] = 30;

		if(Karryn.hasEdict(EDICT_LAXER_HIRING_STANDARDS))
			$gameSwitches.setValue(SWITCH_EDICT_GUARD_LAXER_HIRING_STANDARDS, true);
		else
			$gameSwitches.setValue(SWITCH_EDICT_GUARD_LAXER_HIRING_STANDARDS, false);

		if(Karryn.hasEdict(EDICT_HIRE_CURRENT_INMATES))
			$gameSwitches.setValue(SWITCH_EDICT_GUARD_HIRE_CURRENT_INMATES, true);
		else
			$gameSwitches.setValue(SWITCH_EDICT_GUARD_HIRE_CURRENT_INMATES, false);

		if(Karryn.hasEdict(EDICT_NO_HIRING_STANDARDS))
			$gameSwitches.setValue(SWITCH_EDICT_GUARD_NO_HIRING_STANDARDS, true);
		else
			$gameSwitches.setValue(SWITCH_EDICT_GUARD_NO_HIRING_STANDARDS, false);

		//$gameSwitches.setValue(SWITCH_V9_FPSSYNC_PROMPT_ID, true);
	}
	if(saveFileGameVersion < 67) {
		$gameParty.recalculateBaseIncomeAndExpense();

	}
	if(saveFileGameVersion < 68) {
		$gameParty.recalculateBaseOrderChange();
		if(actor.isInDownPose() && !$gameParty.inBattle()) {
			actor.setWardenMapPose();
		}
		if($gameMap._mapId === MAP_ID_EB_HALLWAY && !Prison.currentlyOutsidePrison()) {
			Prison.changeCurrentPrisonLevelToOutside();
		}
	}
	if(saveFileGameVersion < 69) {
		$gameSystem.setWindowTone(null);
	}

	if(saveFileGameVersion < 70) {
		actor.setupPassiveReqBaseArray();
	}

	if(saveFileGameVersion < 71) {
		actor.setupEquipSets();
	}

	if(saveFileGameVersion < 72) {
		this.fixDupedAccessories(actor);
	}

	if(saveFileGameVersion < 73) {
		for(let i = STRIPPER_SKILL_START; i <= STRIPPER_SKILL_END; i++) {
			actor.learnSkill(i);
		}
		this.update_addToAllWanted_Records_v73();
		this._stripperBattle_intermissionPhase = false;
		actor.setupPassiveReqBaseArray();
		actor.resetTachiePole();
		actor.resetTachieCondomBra();
		actor.resetTachieCondomBelt();
		actor.resetTachieCondomChikubi();
		actor.resetTachieCondomHead();
		actor.resetTachieCondomLeg();
		actor.resetTachieCondomPantsu();
		actor.resetTachieCondomButt();
		actor.resetTachieCondomFloor();
		actor._barLocation = BAR_LOCATION_STANDBY;
		actor._stripperBattle_intermissionPhase = true;
		actor._playthroughRecordStripperBattleTotalShiftsCount = 0;
		actor._todayStripperBattleCondomWornCount = 0;
		actor._todayMasturbatedUsingHalberdCount = 0;
		actor._recordStripClubDancingOrgasmMaxCount = 0;
		actor._tempRecordStripClubDancingOrgasmCount = 0;
		actor._tempRecordStripClubEnteredIntermission = false;
		actor._tempRecordStripClubEnteredVIP = false;
		actor._playthroughRecordStripperBattleDancedFullTwelveMinShowCount = 0;
		actor._recordStripClubMaxCondomsWornCount = 0;
		actor._tempRecordFullStripClubVIP = false;
		actor._recordStripClubFullVIPCocksCount = 0;
		actor._tempRecordStripClubCondomEjaculationCount = 0;
		actor._todayTriggeredNightMode = false;

		if(actor.meetsPassiveReq(PASSIVE_JOB_PETTING_COUNT_THREE_ID, actor._recordPettedWhileWorkingCount))
			actor.addToPassiveReqExtra(PASSIVE_JOB_PETTING_COUNT_THREE_ID, actor._recordPettedWhileWorkingCount);
		if(actor.meetsPassiveReq(PASSIVE_MASTURBATED_HALBERD_COUNT_TWO_ID, actor._recordMasturbatedUsingHalberdCount))
			actor.addToPassiveReqExtra(PASSIVE_MASTURBATED_HALBERD_COUNT_TWO_ID, actor._recordMasturbatedUsingHalberdCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_MOUTH_THREE_ID, actor._recordEnemySawMouthPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_MOUTH_THREE_ID, actor._recordEnemySawMouthPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_BOOBS_THREE_ID, actor._recordEnemySawBoobsPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_BOOBS_THREE_ID, actor._recordEnemySawBoobsPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_PUSSY_THREE_ID, actor._recordEnemySawPussyPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_PUSSY_THREE_ID, actor._recordEnemySawPussyPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_BUTT_THREE_ID, actor._recordEnemySawButtPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_BUTT_THREE_ID, actor._recordEnemySawButtPostFirstPublicOrgasmCount);
	}
	if(saveFileGameVersion < 74) {
		actor._playthroughRecordStripClubStripperOrgasmIntermissionCount = 0;

		if(actor.meetsPassiveReq(PASSIVE_SIGHT_PLEASURE_TWO_ID, actor._recordSightPleasure))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_PLEASURE_TWO_ID, actor._recordSightPleasure);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_ORGASM_TWO_ID, actor._recordOrgasmFromSightCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_ORGASM_TWO_ID, actor._recordOrgasmFromSightCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_PLEASURE_TWO_ID, actor._recordTalkPleasure))
			actor.addToPassiveReqExtra(PASSIVE_TALK_PLEASURE_TWO_ID, actor._recordTalkPleasure);
		if(actor.meetsPassiveReq(PASSIVE_TALK_ORGASM_TWO_ID, actor._recordOrgasmFromTalkCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_ORGASM_TWO_ID, actor._recordOrgasmFromTalkCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_MOUTH_THREE_ID, actor._recordTalkedAtAboutMouthPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_MOUTH_THREE_ID, actor._recordTalkedAtAboutMouthPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_BOOBS_THREE_ID, actor._recordTalkedAtAboutBoobsPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_BOOBS_THREE_ID, actor._recordTalkedAtAboutBoobsPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_BUTT_THREE_ID, actor._recordTalkedAtAboutPussyPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_BUTT_THREE_ID, actor._recordTalkedAtAboutPussyPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_BUTT_TWO_ID, actor._recordTalkedAtAboutButtPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_BUTT_TWO_ID, actor._recordTalkedAtAboutButtPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_COCK_THREE_ID, actor._recordTalkedAtAboutCockPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_COCK_THREE_ID, actor._recordTalkedAtAboutCockPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_ORGASM_PEOPLE_FOUR_ID, actor._recordOrgasmPresencePeople))
			actor.addToPassiveReqExtra(PASSIVE_ORGASM_PEOPLE_FOUR_ID, actor._recordOrgasmPresencePeople);
	}
	if(saveFileGameVersion < 75) {
		actor.setupPassiveReqBaseArray();
	}
	if(saveFileGameVersion < 76) {
		if($gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV4_ID) && Prison.prisonLevelFourIsAnarchy()) {
			Prison.firstSubjugationPrisonLevelFour();
		}
		else {
			this._prisonLevelFour_anarchyDays = 1;
			$gameSwitches.setValue(SWITCH_LV4_WEST_ROUTE_ID, true);
		}

		this._prisonLevelFour_mushroomFarmRioting = false;
		this._prisonLevelFour_undergroundPoolRioting = false;
		this._prisonLevelFour_basketballCourtRioting = false;
		this._prisonLevelFour_yetiCavernRioting = false;
		this._wantedId_Gobriel = -1;
		actor.setMaxTachieSemenFloorId(0);
		actor._liquidOnFloor = 0;
		delete actor._tachieCutInPosX;
		delete actor._tachieCutInPosY;
		delete actor._tachieCutInGoalX;
		delete actor._tachieCutInGoalY;
		delete actor._tachieCutInDirectionX;
		delete actor._tachieCutInDirectionY;
		this.setupYasuSpecialVariables();
		this._endlessBattle = false;
		this._endlessBattleHell = false;
		this._freeModeLevelFiveBattleDefeatSetting = 5;
		this._customBattle = false;
		this.resetCustomBattleSettings();
		actor._playthroughRecordEndlessNormalWaveScore = 0;
		actor._playthroughRecordEndlessHellWaveScore = 0;
		this._allTimeRecordEndlessNormalWaveScoreSecretary = 0;
		this._allTimeRecordEndlessNormalWaveScoreWarden = 0;
		this._allTimeRecordEndlessNormalWaveScorePrisoner = 0;
		this._allTimeRecordEndlessHellWaveScoreSecretary = 0;
		this._allTimeRecordEndlessHellWaveScoreWarden = 0;
		this._allTimeRecordEndlessHellWaveScorePrisoner = 0;
		$gameSwitches.setValue(SWITCH_TITLE_LOCK, false);
		this._totalGameClears = 0;
		$gameVariables.setValue(VARIABLE_TOTAL_GAME_CLEARS_ID, 0);
		$gameVariables.setValue(VARIABLE_TOTAL_PLAYTHROUGHS_ID, this._totalPlaythroughs);
		$gameVariables.setValue(VARIABLE_CURRENT_PLAYTHROUGHS_ID, this._currentRunPlaythroughs);
		if($gameSwitches.value(SWITCH_SEEN_BAD_END_ID)) {
			$gameSwitches.setValue(SWITCH_SEEN_BAD_END_A_ID, true);
		}
		$gameSwitches.setValue(SWITCH_SEEN_NONSLUT_GOOD_END_ID, false);
		$gameSwitches.setValue(SWITCH_SEEN_HAPPY_SLUT_END_ID, false);
		actor._flagEquippedEmpressKarrynTitleForWholeDay = false;
		actor._flagEquippedInccorruptiblePillarTitleForWholeDay = false;
		actor._flagEquippedFullOrderOneTitleForWholeDay = false;
	}
	if(saveFileGameVersion < 77) {
		if(actor.isWearingWeddingClothing() && !$gameSwitches.value(SWITCH_BITCH_ENDING_ID)) {
			actor.changeToWardenClothing();
		}
	}
	if(saveFileGameVersion < 78) {
		if(actor.hasThisTitle(TITLE_ID_UPSTART_TWO) && actor.hasThisTitle(TITLE_ID_UPSTART_ONE))  {
			$gameParty.gainItem($dataArmors[TITLE_ID_UPSTART_ONE], -1, true);
			if(!actor.equips()[EQUIP_SLOT_TITLE_ID]) {
				actor.changeEquip(EQUIP_SLOT_TITLE_ID, $dataArmors[TITLE_ID_EMPEROR_SECRETARY]);
			}
		}

		if(actor.meetsPassiveReq(PASSIVE_KISS_PEOPLE_FOUR_ID, actor._recordKissedPeople))
			actor.addToPassiveReqExtra(PASSIVE_KISS_PEOPLE_FOUR_ID, actor._recordKissedPeople);
		if(actor.meetsPassiveReq(PASSIVE_HJ_PEOPLE_FOUR_ID, actor._recordHandjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_HJ_PEOPLE_FOUR_ID, actor._recordHandjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_COCK_PETTING_PEOPLE_THREE_ID, actor._recordCockPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_COCK_PETTING_PEOPLE_THREE_ID, actor._recordCockPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_BJ_PEOPLE_FOUR_ID, actor._recordBlowjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_BJ_PEOPLE_FOUR_ID, actor._recordBlowjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_SWALLOW_ML_FOUR_ID, actor._recordSwallowML))
			actor.addToPassiveReqExtra(PASSIVE_SWALLOW_ML_FOUR_ID, actor._recordSwallowML);
		if(actor.meetsPassiveReq(PASSIVE_BOOBS_PETTED_PEOPLE_FOUR_ID, actor._recordBoobsPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BOOBS_PETTED_PEOPLE_FOUR_ID, actor._recordBoobsPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_TITTYFUCK_PEOPLE_FOUR_ID, actor._recordTittyFuckPeople))
			actor.addToPassiveReqExtra(PASSIVE_TITTYFUCK_PEOPLE_FOUR_ID, actor._recordTittyFuckPeople);
		if(actor.meetsPassiveReq(PASSIVE_CLIT_PETTED_PEOPLE_FOUR_ID, actor._recordClitPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_CLIT_PETTED_PEOPLE_FOUR_ID, actor._recordClitPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_PEOPLE_FIVE_ID, actor._recordPussyFuckedPeople))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_PEOPLE_FIVE_ID, actor._recordPussyFuckedPeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_USAGE_FOUR_ID, actor._recordPussySexUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_USAGE_FOUR_ID, actor._recordPussySexUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_BUTT_PETTED_PEOPLE_FOUR_ID, actor._recordButtPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BUTT_PETTED_PEOPLE_FOUR_ID, actor._recordButtPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_BUTT_SPANKED_PEOPLE_FOUR_ID, actor._recordButtSpankedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BUTT_SPANKED_PEOPLE_FOUR_ID, actor._recordButtSpankedPeople);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_PETTED_COUNT_FOUR_ID, actor._recordAnalPettedCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_PETTED_COUNT_FOUR_ID, actor._recordAnalPettedCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_PEOPLE_FOUR_ID, actor._recordAnalFuckedPeople))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_PEOPLE_FOUR_ID, actor._recordAnalFuckedPeople);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_USAGE_FOUR_ID, actor._recordAnalSexUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_USAGE_FOUR_ID, actor._recordAnalSexUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_SEE_JERKOFF_COUNT_THREE_ID, actor._recordSeeJerkOffCount))
			actor.addToPassiveReqExtra(PASSIVE_SEE_JERKOFF_COUNT_THREE_ID, actor._recordSeeJerkOffCount);
		if(actor.meetsPassiveReq(PASSIVE_CLOTHES_STRIPPED_FOUR_ID, actor._recordClothesStrippedPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_CLOTHES_STRIPPED_FOUR_ID, actor._recordClothesStrippedPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_PANTIES_STRIPPED_THREE_ID, actor._recordPantiesStrippedPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_PANTIES_STRIPPED_THREE_ID, actor._recordPantiesStrippedPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_MASTURBATED_COUCH_COUNT_THREE_ID, actor._recordMasturbatedCouchTotalCount))
			actor.addToPassiveReqExtra(PASSIVE_MASTURBATED_COUCH_COUNT_THREE_ID, actor._recordMasturbatedCouchTotalCount);
		if(actor.meetsPassiveReq(PASSIVE_MASTURBATED_INBATTLE_COUNT_FOUR_ID, actor._recordMasturbatedInBattlePresencePeople))
			actor.addToPassiveReqExtra(PASSIVE_MASTURBATED_INBATTLE_COUNT_FOUR_ID, actor._recordMasturbatedInBattlePresencePeople);
		if(actor.meetsPassiveReq(PASSIVE_BUKKAKE_COUNT_FIVE_ID, actor._recordBukkakeTotalCount))
			actor.addToPassiveReqExtra(PASSIVE_BUKKAKE_COUNT_FIVE_ID, actor._recordBukkakeTotalCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_CREAMPIE_ML_FIVE_ID, actor._recordPussyCreampieML))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_CREAMPIE_ML_FIVE_ID, actor._recordPussyCreampieML);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_CREAMPIE_ML_FIVE_ID, actor._recordAnalCreampieML))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_CREAMPIE_ML_FIVE_ID, actor._recordAnalCreampieML);
		if(actor.meetsPassiveReq(PASSIVE_SADISM_PLEASURE_TWO_ID, actor._recordSadismPleasure))
			actor.addToPassiveReqExtra(PASSIVE_SADISM_PLEASURE_TWO_ID, actor._recordSadismPleasure);
		if(actor.meetsPassiveReq(PASSIVE_MASOCHISM_PLEASURE_TWO_ID, actor._recordMasochismPleasure))
			actor.addToPassiveReqExtra(PASSIVE_MASOCHISM_PLEASURE_TWO_ID, actor._recordMasochismPleasure);
		if(actor.meetsPassiveReq(PASSIVE_ORGASM_COUNT_SEVEN_ID, actor._recordOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_ORGASM_COUNT_SEVEN_ID, actor._recordOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_KISS_ORGASM_TWO_ID, actor._recordOrgasmFromKissCount))
			actor.addToPassiveReqExtra(PASSIVE_KISS_ORGASM_TWO_ID, actor._recordOrgasmFromKissCount);
		if(actor.meetsPassiveReq(PASSIVE_BUKKAKE_ORGASM_TWO_ID, actor._recordOrgasmFromBukkakeCount))
			actor.addToPassiveReqExtra(PASSIVE_BUKKAKE_ORGASM_TWO_ID, actor._recordOrgasmFromBukkakeCount);
		if(actor.meetsPassiveReq(PASSIVE_HJ_ORGASM_TWO_ID, actor._recordOrgasmFromHandjobCount))
			actor.addToPassiveReqExtra(PASSIVE_HJ_ORGASM_TWO_ID, actor._recordOrgasmFromHandjobCount);
		if(actor.meetsPassiveReq(PASSIVE_BJ_ORGASM_TWO_ID, actor._recordOrgasmFromBlowjobCount))
			actor.addToPassiveReqExtra(PASSIVE_BJ_ORGASM_TWO_ID, actor._recordOrgasmFromBlowjobCount);
		if(actor.meetsPassiveReq(PASSIVE_TITTYFUCK_ORGASM_TWO_ID, actor._recordOrgasmFromTittyFuckCount))
			actor.addToPassiveReqExtra(PASSIVE_TITTYFUCK_ORGASM_TWO_ID, actor._recordOrgasmFromTittyFuckCount);
		if(actor.meetsPassiveReq(PASSIVE_CUNNILINGUS_ORGASM_TWO_ID, actor._recordOrgasmFromCunnilingusCount))
			actor.addToPassiveReqExtra(PASSIVE_CUNNILINGUS_ORGASM_TWO_ID, actor._recordOrgasmFromCunnilingusCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_ORGASM_TWO_ID, actor._recordOrgasmFromPussySexCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_ORGASM_TWO_ID, actor._recordOrgasmFromPussySexCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_CREAMPIE_ORGASM_TWO_ID, actor._recordOrgasmFromPussyCreampieCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_CREAMPIE_ORGASM_TWO_ID, actor._recordOrgasmFromPussyCreampieCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_ORGASM_TWO_ID, actor._recordOrgasmFromAnalSexCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_ORGASM_TWO_ID, actor._recordOrgasmFromAnalSexCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_CREAMPIE_ORGASM_TWO_ID, actor._recordOrgasmFromAnalCreampieCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_CREAMPIE_ORGASM_TWO_ID, actor._recordOrgasmFromAnalCreampieCount);
		if(actor.meetsPassiveReq(PASSIVE_SWALLOW_ORGASM_TWO_ID, actor._recordOrgasmFromCumSwallowCount))
			actor.addToPassiveReqExtra(PASSIVE_SWALLOW_ORGASM_TWO_ID, actor._recordOrgasmFromCumSwallowCount);
		if(actor.meetsPassiveReq(PASSIVE_TOYS_ORGASM_TWO_ID, actor._recordOrgasmFromToysCount))
			actor.addToPassiveReqExtra(PASSIVE_TOYS_ORGASM_TWO_ID, actor._recordOrgasmFromToysCount);
		if(actor.meetsPassiveReq(PASSIVE_PETTING_ORGASM_TWO_ID, actor._recordOrgasmFromPettingCount))
			actor.addToPassiveReqExtra(PASSIVE_PETTING_ORGASM_TWO_ID, actor._recordOrgasmFromPettingCount);
		if(actor.meetsPassiveReq(PASSIVE_MASTURBATE_ORGASM_TWO_ID, actor._recordOrgasmFromMasturbationCount))
			actor.addToPassiveReqExtra(PASSIVE_MASTURBATE_ORGASM_TWO_ID, actor._recordOrgasmFromMasturbationCount);
		if(actor.meetsPassiveReq(PASSIVE_SADISM_ORGASM_TWO_ID, actor._recordOrgasmFromSadismCount))
			actor.addToPassiveReqExtra(PASSIVE_SADISM_ORGASM_TWO_ID, actor._recordOrgasmFromSadismCount);
		if(actor.meetsPassiveReq(PASSIVE_MASOCHISM_ORGASM_TWO_ID, actor._recordOrgasmFromMasochismCount))
			actor.addToPassiveReqExtra(PASSIVE_MASOCHISM_ORGASM_TWO_ID, actor._recordOrgasmFromMasochismCount);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_TOTAL_FIVE_ID, actor._recordSexualPartnersTotal))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_TOTAL_FIVE_ID, actor._recordSexualPartnersTotal);
	}
	if(saveFileGameVersion < 79) {
		if(actor.hasThisTitle(TITLE_ID_UPSTART_TWO)) {
			$gameParty.removeTitle(TITLE_ID_UPSTART_ONE);
		}
		if(actor.hasThisTitle(TITLE_ID_KICK_REWARD_TWO)) {
			$gameParty.removeTitle(TITLE_ID_KICK_REWARD_ONE);
		}
		if(actor.hasThisTitle(TITLE_ID_HELL_WARDEN_TWO)) {
			$gameParty.removeTitle(TITLE_ID_HELL_WARDEN_ONE);
		}
		if(actor.hasThisTitle(TITLE_ID_REDEEMED_TWO)) {
			$gameParty.removeTitle(TITLE_ID_REDEEMED_ONE);
		}
		if(actor.hasThisTitle(TITLE_ID_GALACTIC_HERO)) {
			$gameParty.removeTitle(TITLE_ID_FULFILLED_HERO);
		}
		if(actor.hasThisTitle(TITLE_ID_SUPER_WORLD_CHAMPION)) {
			$gameParty.removeTitle(TITLE_ID_PRISON_CHAMPION);
		}

		if(!actor.equips()[EQUIP_SLOT_TITLE_ID]) {
			actor.changeEquip(EQUIP_SLOT_TITLE_ID, $dataArmors[TITLE_ID_EMPEROR_SECRETARY]);
		}
	}
	if(saveFileGameVersion < 80) {
		$gameSwitches.setValue(SWITCH_FOOTSTEPS_SE_OFF_ID, false);
	}
	if(saveFileGameVersion < 81) {
		if(STEAM_MODE && OrangeGreenworks.getAchievement('ACH_MASO_RUN')) {
			this._newTitlesGainedItem.push($dataArmors[TITLE_ID_HARDCORE_MASOCHIST]);
		}
		if(STEAM_MODE && OrangeGreenworks.getAchievement('ACH_SADO_RUN')) {
			this._newTitlesGainedItem.push($dataArmors[TITLE_ID_HARDCORE_SADIST]);
		}
	}
	if(saveFileGameVersion < 82) {
		if(actor._firstKissName === TextManager.bossEmperor)
			actor._firstKissMapID = MAP_ID_WEDDING;
		if(actor._lastKissName === TextManager.bossEmperor)
			actor._lastKissMapID = MAP_ID_WEDDING;
	}
	if(saveFileGameVersion < 83) {
		actor.learnSkill(SKILL_KARRYN_KICK_HEAD_STRIKE_ID);
		actor.learnSkill(SKILL_KARRYN_KICK_ARM_SLASH_ID);
		actor.learnSkill(SKILL_KARRYN_KICK_LEG_THRUST_ID);
	}
	if(saveFileGameVersion < 84) {
		actor._currentlyInTroopsCutsceneVoiceSetting = false;
	}

	//demo update
	if(this.isDemoVersion() && !KARRYN_PRISON_GAME_IS_DEMO) {
		if($gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV2_ID) && Prison.prisonLevelTwoIsAnarchy()) {
			Prison.firstSubjugationPrisonLevelTwo();
			$gameSwitches.setValue(58, false); //Visited 3rd floor
		}

		if(actor.meetsPassiveReq(PASSIVE_MAX_MOUTH_DESIRE_FOUR_ID, actor._recordMaxReached150MouthDesireCount))
			actor.addToPassiveReqExtra(PASSIVE_MAX_MOUTH_DESIRE_FOUR_ID, actor._recordMaxReached150MouthDesireCount);
		if(actor.meetsPassiveReq(PASSIVE_SUCKED_FINGERS_COUNT_THREE_ID, actor._recordFingersSuckedCount))
			actor.addToPassiveReqExtra(PASSIVE_SUCKED_FINGERS_COUNT_THREE_ID, actor._recordFingersSuckedCount);
		if(actor.meetsPassiveReq(PASSIVE_SUCKED_FINGERS_PEOPLE_TWO_ID, actor._recordFingersSuckedPeople))
			actor.addToPassiveReqExtra(PASSIVE_SUCKED_FINGERS_PEOPLE_TWO_ID, actor._recordFingersSuckedPeople);
		if(actor.meetsPassiveReq(PASSIVE_KISS_COUNT_TWO_ID, actor._recordKissedCount))
			actor.addToPassiveReqExtra(PASSIVE_KISS_COUNT_TWO_ID, actor._recordKissedCount);
		if(actor.meetsPassiveReq(PASSIVE_KISS_PEOPLE_THREE_ID, actor._recordKissedPeople))
			actor.addToPassiveReqExtra(PASSIVE_KISS_PEOPLE_THREE_ID, actor._recordKissedPeople);
		if(actor.meetsPassiveReq(PASSIVE_KISS_USAGE_ONE_ID, actor._recordKissUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_KISS_USAGE_ONE_ID, actor._recordKissUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_MOUTH_PLEASURE_ONE_ID, actor._recordMouthPleasure))
			actor.addToPassiveReqExtra(PASSIVE_MOUTH_PLEASURE_ONE_ID, actor._recordMouthPleasure);
		if(actor.meetsPassiveReq(PASSIVE_HJ_PEOPLE_TWO_ID, actor._recordHandjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_HJ_PEOPLE_TWO_ID, actor._recordHandjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_HJ_USAGE_ONE_ID, actor._recordHandjobUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_HJ_USAGE_ONE_ID, actor._recordHandjobUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_COCK_PETTING_PEOPLE_ONE_ID, actor._recordCockPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_COCK_PETTING_PEOPLE_ONE_ID, actor._recordCockPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_BJ_PEOPLE_TWO_ID, actor._recordBlowjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_BJ_PEOPLE_TWO_ID, actor._recordBlowjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_BJ_USAGE_ONE_ID, actor._recordBlowjobUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_BJ_USAGE_ONE_ID, actor._recordBlowjobUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_SWALLOW_ML_TWO_ID, actor._recordSwallowML))
			actor.addToPassiveReqExtra(PASSIVE_SWALLOW_ML_TWO_ID, actor._recordSwallowML);
		if(actor.meetsPassiveReq(PASSIVE_MAX_BOOBS_DESIRE_FOUR_ID, actor._recordMaxReached150BoobsDesireCount))
			actor.addToPassiveReqExtra(PASSIVE_MAX_BOOBS_DESIRE_FOUR_ID, actor._recordMaxReached150BoobsDesireCount);
		if(actor.meetsPassiveReq(PASSIVE_BOOBS_PETTED_COUNT_THREE_ID, actor._recordBoobsPettedCount))
			actor.addToPassiveReqExtra(PASSIVE_BOOBS_PETTED_COUNT_THREE_ID, actor._recordBoobsPettedCount);
		if(actor.meetsPassiveReq(PASSIVE_BOOBS_PETTED_PEOPLE_TWO_ID, actor._recordBoobsPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BOOBS_PETTED_PEOPLE_TWO_ID, actor._recordBoobsPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_NIPPLES_PETTED_COUNT_THREE_ID, actor._recordNipplesPettedCount))
			actor.addToPassiveReqExtra(PASSIVE_NIPPLES_PETTED_COUNT_THREE_ID, actor._recordNipplesPettedCount);
		if(actor.meetsPassiveReq(PASSIVE_NIPPLES_PETTED_PEOPLE_TWO_ID, actor._recordNipplesPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_NIPPLES_PETTED_PEOPLE_TWO_ID, actor._recordNipplesPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_TITTYFUCK_PEOPLE_TWO_ID, actor._recordTittyFuckPeople))
			actor.addToPassiveReqExtra(PASSIVE_TITTYFUCK_PEOPLE_TWO_ID, actor._recordTittyFuckPeople);
		if(actor.meetsPassiveReq(PASSIVE_TITTYFUCK_USAGE_ONE_ID, actor._recordTittyFuckUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_TITTYFUCK_USAGE_ONE_ID, actor._recordTittyFuckUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_BOOBS_PLEASURE_ONE_ID, actor._recordBoobsPleasure + actor._recordNipplesPleasure))
			actor.addToPassiveReqExtra(PASSIVE_BOOBS_PLEASURE_ONE_ID, actor._recordBoobsPleasure + actor._recordNipplesPleasure);
		if(actor.meetsPassiveReq(PASSIVE_MAX_PUSSY_DESIRE_FOUR_ID, actor._recordMaxReached150PussyDesireCount))
			actor.addToPassiveReqExtra(PASSIVE_MAX_PUSSY_DESIRE_FOUR_ID, actor._recordMaxReached150PussyDesireCount);
		if(actor.meetsPassiveReq(PASSIVE_CLIT_PETTED_COUNT_THREE_ID, actor._recordClitPettedCount))
			actor.addToPassiveReqExtra(PASSIVE_CLIT_PETTED_COUNT_THREE_ID, actor._recordClitPettedCount);
		if(actor.meetsPassiveReq(PASSIVE_CLIT_PETTED_PEOPLE_TWO_ID, actor._recordClitPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_CLIT_PETTED_PEOPLE_TWO_ID, actor._recordClitPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_CUNNILINGUS_PEOPLE_TWO_ID, actor._recordCunnilingusPeople))
			actor.addToPassiveReqExtra(PASSIVE_CUNNILINGUS_PEOPLE_TWO_ID, actor._recordCunnilingusPeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_PETTED_COUNT_THREE_ID, actor._recordPussyPettedCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_PETTED_COUNT_THREE_ID, actor._recordPussyPettedCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_PETTED_PEOPLE_TWO_ID, actor._recordPussyPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_PETTED_PEOPLE_TWO_ID, actor._recordPussyPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_COUNT_TWO_ID, actor._recordPussyFuckedCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_COUNT_TWO_ID, actor._recordPussyFuckedCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_PEOPLE_TWO_ID, actor._recordPussyFuckedPeople))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_PEOPLE_TWO_ID, actor._recordPussyFuckedPeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_USAGE_ONE_ID, actor._recordPussySexUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_USAGE_ONE_ID, actor._recordPussySexUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_PLEASURE_ONE_ID, actor._recordPussyPleasure + actor._recordClitPleasure))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_PLEASURE_ONE_ID, actor._recordPussyPleasure + actor._recordClitPleasure);
		if(actor.meetsPassiveReq(PASSIVE_MAX_BUTT_DESIRE_FOUR_ID, actor._recordMaxReached150ButtDesireCount))
			actor.addToPassiveReqExtra(PASSIVE_MAX_BUTT_DESIRE_FOUR_ID, actor._recordMaxReached150ButtDesireCount);
		if(actor.meetsPassiveReq(PASSIVE_BUTT_PETTED_COUNT_THREE_ID, actor._recordButtPettedCount))
			actor.addToPassiveReqExtra(PASSIVE_BUTT_PETTED_COUNT_THREE_ID, actor._recordButtPettedCount);
		if(actor.meetsPassiveReq(PASSIVE_BUTT_PETTED_PEOPLE_TWO_ID, actor._recordButtPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BUTT_PETTED_PEOPLE_TWO_ID, actor._recordButtPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_BUTT_SPANKED_PEOPLE_TWO_ID, actor._recordButtSpankedPeople))
			actor.addToPassiveReqExtra(PASSIVE_BUTT_SPANKED_PEOPLE_TWO_ID, actor._recordButtSpankedPeople);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_PETTED_COUNT_THREE_ID, actor._recordAnalPettedCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_PETTED_COUNT_THREE_ID, actor._recordAnalPettedCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_PETTED_PEOPLE_TWO_ID, actor._recordAnalPettedPeople))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_PETTED_PEOPLE_TWO_ID, actor._recordAnalPettedPeople);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_COUNT_TWO_ID, actor._recordAnalFuckedCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_COUNT_TWO_ID, actor._recordAnalFuckedCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_PEOPLE_TWO_ID, actor._recordAnalFuckedPeople))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_PEOPLE_TWO_ID, actor._recordAnalFuckedPeople);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_USAGE_ONE_ID, actor._recordAnalSexUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_USAGE_ONE_ID, actor._recordAnalSexUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_PLEASURE_ONE_ID, actor._recordButtPleasure + actor._recordAnalPleasure))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_PLEASURE_ONE_ID, actor._recordButtPleasure + actor._recordAnalPleasure);
		if(actor.meetsPassiveReq(PASSIVE_MAX_COCK_DESIRE_FOUR_ID, actor._recordMaxReached150CockDesireCount))
			actor.addToPassiveReqExtra(PASSIVE_MAX_COCK_DESIRE_FOUR_ID, actor._recordMaxReached150CockDesireCount);
		if(actor.meetsPassiveReq(PASSIVE_SEE_JERKOFF_COUNT_TWO_ID, actor._recordSeeJerkOffCount))
			actor.addToPassiveReqExtra(PASSIVE_SEE_JERKOFF_COUNT_TWO_ID, actor._recordSeeJerkOffCount);
		if(actor.meetsPassiveReq(PASSIVE_KARRYN_STARE_COCK_THREE_ID, actor._recordCockStareUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_KARRYN_STARE_COCK_THREE_ID, actor._recordCockStareUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_MOUTH_TWO_ID, actor._recordTalkedAtAboutMouthPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_MOUTH_TWO_ID, actor._recordTalkedAtAboutMouthPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_BOOBS_TWO_ID, actor._recordTalkedAtAboutBoobsPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_BOOBS_TWO_ID, actor._recordTalkedAtAboutBoobsPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_PUSSY_TWO_ID, actor._recordTalkedAtAboutPussyPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_PUSSY_TWO_ID, actor._recordTalkedAtAboutPussyPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_BUTT_TWO_ID, actor._recordTalkedAtAboutButtPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_BUTT_TWO_ID, actor._recordTalkedAtAboutButtPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_COCK_TWO_ID, actor._recordTalkedAtAboutCockPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_COCK_TWO_ID, actor._recordTalkedAtAboutCockPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_PLEASURE_ONE_ID, actor._recordTalkPleasure))
			actor.addToPassiveReqExtra(PASSIVE_TALK_PLEASURE_ONE_ID, actor._recordTalkPleasure);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_MOUTH_TWO_ID, actor._recordEnemySawMouthPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_MOUTH_TWO_ID, actor._recordEnemySawMouthPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_BOOBS_TWO_ID, actor._recordEnemySawBoobsPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_BOOBS_TWO_ID, actor._recordEnemySawBoobsPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_PUSSY_TWO_ID, actor._recordEnemySawPussyPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_PUSSY_TWO_ID, actor._recordEnemySawPussyPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_BUTT_TWO_ID, actor._recordEnemySawButtPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_BUTT_TWO_ID, actor._recordEnemySawButtPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_PLEASURE_ONE_ID, actor._recordSightPleasure))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_PLEASURE_ONE_ID, actor._recordSightPleasure);
		if(actor.meetsPassiveReq(PASSIVE_WAITRESS_FLASH_COUNT_TWO_ID, actor._recordWaitressFlashedCount))
			actor.addToPassiveReqExtra(PASSIVE_WAITRESS_FLASH_COUNT_TWO_ID, actor._recordWaitressFlashedCount);
		if(actor.meetsPassiveReq(PASSIVE_CLOTHES_STRIPPED_TWO_ID, actor._recordClothesStrippedPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_CLOTHES_STRIPPED_TWO_ID, actor._recordClothesStrippedPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_PANTIES_STRIPPED_TWO_ID, actor._recordPantiesStrippedPostFirstPublicOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_PANTIES_STRIPPED_TWO_ID, actor._recordPantiesStrippedPostFirstPublicOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_MASTURBATED_COUCH_COUNT_TWO_ID, actor._recordMasturbatedCouchTotalCount))
			actor.addToPassiveReqExtra(PASSIVE_MASTURBATED_COUCH_COUNT_TWO_ID, actor._recordMasturbatedCouchTotalCount);
		if(actor.meetsPassiveReq(PASSIVE_MASTURBATED_INBATTLE_COUNT_TWO_ID, actor._recordMasturbatedInBattlePresencePeople))
			actor.addToPassiveReqExtra(PASSIVE_MASTURBATED_INBATTLE_COUNT_TWO_ID, actor._recordMasturbatedInBattlePresencePeople);
		if(actor.meetsPassiveReq(PASSIVE_MASTURBATED_HALBERD_COUNT_TWO_ID, actor._recordMasturbatedUsingHalberdCount))
			actor.addToPassiveReqExtra(PASSIVE_MASTURBATED_HALBERD_COUNT_TWO_ID, actor._recordMasturbatedUsingHalberdCount);
		if(actor.meetsPassiveReq(PASSIVE_MAX_ALL_DESIRE_FOUR_ID, actor._recordMaxReached750TotalDesireCount))
			actor.addToPassiveReqExtra(PASSIVE_MAX_ALL_DESIRE_FOUR_ID, actor._recordMaxReached750TotalDesireCount);
		if(actor.meetsPassiveReq(PASSIVE_KICK_COUNTER_SEX_COUNT_THREE_ID, actor._recordSexPose_KickCounterCount))
			actor.addToPassiveReqExtra(PASSIVE_KICK_COUNTER_SEX_COUNT_THREE_ID, actor._recordSexPose_KickCounterCount);
		if(actor.meetsPassiveReq(PASSIVE_DOUBLE_PEN_COUNT_TWO_ID, actor._recordDoublePenetrationCount))
			actor.addToPassiveReqExtra(PASSIVE_DOUBLE_PEN_COUNT_TWO_ID, actor._recordDoublePenetrationCount);
		if(actor.meetsPassiveReq(PASSIVE_TRIPLE_PEN_COUNT_TWO_ID, actor._recordTriplePenetrationCount))
			actor.addToPassiveReqExtra(PASSIVE_TRIPLE_PEN_COUNT_TWO_ID, actor._recordTriplePenetrationCount);
		if(actor.meetsPassiveReq(PASSIVE_BLOWBANG_COUNT_THREE_ID, actor._recordBlowbangCount))
			actor.addToPassiveReqExtra(PASSIVE_BLOWBANG_COUNT_THREE_ID, actor._recordBlowbangCount);
		if(actor.meetsPassiveReq(PASSIVE_URINAL_COUNT_THREE_ID, actor._recordUrinalCount))
			actor.addToPassiveReqExtra(PASSIVE_URINAL_COUNT_THREE_ID, actor._recordUrinalCount);
		if(actor.meetsPassiveReq(PASSIVE_JOB_PETTING_COUNT_TWO_ID, actor._recordPettedWhileWorkingCount))
			actor.addToPassiveReqExtra(PASSIVE_JOB_PETTING_COUNT_TWO_ID, actor._recordPettedWhileWorkingCount);
		if(actor.meetsPassiveReq(PASSIVE_BAR_WAITRESS_SEX_COUNT_TWO_ID, actor._recordBarWaitressSexCount))
			actor.addToPassiveReqExtra(PASSIVE_BAR_WAITRESS_SEX_COUNT_TWO_ID, actor._recordBarWaitressSexCount);
		if(actor.meetsPassiveReq(PASSIVE_RECEPTIONIST_VISITOR_SEX_COUNT_TWO_ID, actor._recordSexualPartnersVisitor))
			actor.addToPassiveReqExtra(PASSIVE_RECEPTIONIST_VISITOR_SEX_COUNT_TWO_ID, actor._recordSexualPartnersVisitor);
		if(actor.meetsPassiveReq(PASSIVE_NIGHT_BATTLE_COUNT_TWO_ID, actor._recordNightBattleCompletedCount))
			actor.addToPassiveReqExtra(PASSIVE_NIGHT_BATTLE_COUNT_TWO_ID, actor._recordNightBattleCompletedCount);
		if(actor.meetsPassiveReq(PASSIVE_FLOOR_EJACULATION_COUNT_TWO_ID, actor._recordFloorEjaculationCount))
			actor.addToPassiveReqExtra(PASSIVE_FLOOR_EJACULATION_COUNT_TWO_ID, actor._recordFloorEjaculationCount);
		if(actor.meetsPassiveReq(PASSIVE_BUKKAKE_COUNT_TWO_ID, actor._recordBukkakeTotalCount))
			actor.addToPassiveReqExtra(PASSIVE_BUKKAKE_COUNT_TWO_ID, actor._recordBukkakeTotalCount);
		if(actor.meetsPassiveReq(PASSIVE_FACE_BUKKAKE_COUNT_ONE_ID, actor._recordBukkakeFaceCount))
			actor.addToPassiveReqExtra(PASSIVE_FACE_BUKKAKE_COUNT_ONE_ID, actor._recordBukkakeFaceCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_CREAMPIE_ML_TWO_ID, actor._recordPussyCreampieML))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_CREAMPIE_ML_TWO_ID, actor._recordPussyCreampieML);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_CREAMPIE_ML_TWO_ID, actor._recordAnalCreampieML))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_CREAMPIE_ML_TWO_ID, actor._recordAnalCreampieML);
		if(actor.meetsPassiveReq(PASSIVE_TOTAL_TOYS_INSERT_COUNT_TWO_ID, actor._recordTotalToysInsertedCount))
			actor.addToPassiveReqExtra(PASSIVE_TOTAL_TOYS_INSERT_COUNT_TWO_ID, actor._recordTotalToysInsertedCount);
		if(actor.meetsPassiveReq(PASSIVE_PINK_ROTOR_INSERT_COUNT_TWO_ID, actor._recordClitToyInsertedCount))
			actor.addToPassiveReqExtra(PASSIVE_PINK_ROTOR_INSERT_COUNT_TWO_ID, actor._recordClitToyInsertedCount);
		if(actor.meetsPassiveReq(PASSIVE_DILDO_INSERT_COUNT_TWO_ID, actor._recordPussyToyInsertedCount))
			actor.addToPassiveReqExtra(PASSIVE_DILDO_INSERT_COUNT_TWO_ID, actor._recordPussyToyInsertedCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_BEADS_INSERT_COUNT_TWO_ID, actor._recordAnalToyInsertedCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_BEADS_INSERT_COUNT_TWO_ID, actor._recordAnalToyInsertedCount);
		if(actor.meetsPassiveReq(PASSIVE_TOYS_PLEASURE_ONE_ID, actor._recordToysPleasure))
			actor.addToPassiveReqExtra(PASSIVE_TOYS_PLEASURE_ONE_ID, actor._recordToysPleasure);
		if(actor.meetsPassiveReq(PASSIVE_COCKINESS_COUNT_TWO_ID, actor._recordCockinessGainedValue))
			actor.addToPassiveReqExtra(PASSIVE_COCKINESS_COUNT_TWO_ID, actor._recordCockinessGainedValue);
		if(actor.meetsPassiveReq(PASSIVE_TAUNT_COUNT_THREE_ID, actor._recordTauntPeople))
			actor.addToPassiveReqExtra(PASSIVE_TAUNT_COUNT_THREE_ID, actor._recordTauntPeople);
		if(actor.meetsPassiveReq(PASSIVE_FLAUNT_COUNT_THREE_ID, actor._recordFlauntPeople))
			actor.addToPassiveReqExtra(PASSIVE_FLAUNT_COUNT_THREE_ID, actor._recordFlauntPeople);
		if(actor.meetsPassiveReq(PASSIVE_SUBDUED_ERECT_COUNT_TWO_ID, actor._recordSubduedErectEnemiesWithAttack))
			actor.addToPassiveReqExtra(PASSIVE_SUBDUED_ERECT_COUNT_TWO_ID, actor._recordSubduedErectEnemiesWithAttack);
		if(actor.meetsPassiveReq(PASSIVE_COCKKICK_COUNT_TWO_ID, actor._recordCockKickUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_COCKKICK_COUNT_TWO_ID, actor._recordCockKickUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_RIMJOB_PEOPLE_TWO_ID, actor._recordRimjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_RIMJOB_PEOPLE_TWO_ID, actor._recordRimjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_RIMJOB_USAGE_ONE_ID, actor._recordRimjobUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_RIMJOB_USAGE_ONE_ID, actor._recordRimjobUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_FOOTJOB_PEOPLE_TWO_ID, actor._recordFootjobPeople))
			actor.addToPassiveReqExtra(PASSIVE_FOOTJOB_PEOPLE_TWO_ID, actor._recordFootjobPeople);
		if(actor.meetsPassiveReq(PASSIVE_FOOTJOB_USAGE_ONE_ID, actor._recordFootjobUsageCount))
			actor.addToPassiveReqExtra(PASSIVE_FOOTJOB_USAGE_ONE_ID, actor._recordFootjobUsageCount);
		if(actor.meetsPassiveReq(PASSIVE_SADISM_PLEASURE_ONE_ID, actor._recordSadismPleasure))
			actor.addToPassiveReqExtra(PASSIVE_SADISM_PLEASURE_ONE_ID, actor._recordSadismPleasure);
		if(actor.meetsPassiveReq(PASSIVE_DEFEATED_COUNT_FOUR_ID, actor._recordDefeatedTotal))
			actor.addToPassiveReqExtra(PASSIVE_DEFEATED_COUNT_FOUR_ID, actor._recordDefeatedTotal);
		if(actor.meetsPassiveReq(PASSIVE_DOGEZA_COUNT_ONE_ID, actor._recordDogezaPeople))
			actor.addToPassiveReqExtra(PASSIVE_DOGEZA_COUNT_ONE_ID, actor._recordDogezaPeople);
		if(actor.meetsPassiveReq(PASSIVE_MASOCHISM_PLEASURE_ONE_ID, actor._recordMasochismPleasure))
			actor.addToPassiveReqExtra(PASSIVE_MASOCHISM_PLEASURE_ONE_ID, actor._recordMasochismPleasure);
		if(actor.meetsPassiveReq(PASSIVE_ORGASM_COUNT_FOUR_ID, actor._recordOrgasmCount))
			actor.addToPassiveReqExtra(PASSIVE_ORGASM_COUNT_FOUR_ID, actor._recordOrgasmCount);
		if(actor.meetsPassiveReq(PASSIVE_ORGASM_ML_TWO_ID, actor._recordOrgasmML))
			actor.addToPassiveReqExtra(PASSIVE_ORGASM_ML_TWO_ID, actor._recordOrgasmML);
		if(actor.meetsPassiveReq(PASSIVE_ORGASM_PEOPLE_THREE_ID, actor._recordOrgasmPresencePeople))
			actor.addToPassiveReqExtra(PASSIVE_ORGASM_PEOPLE_THREE_ID, actor._recordOrgasmPresencePeople);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_JUICE_ML_TWO_ID, actor._recordPussyDripTenthML))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_JUICE_ML_TWO_ID, actor._recordPussyDripTenthML);
		if(actor.meetsPassiveReq(PASSIVE_KISS_ORGASM_TWO_ID, actor._recordOrgasmFromKissCount))
			actor.addToPassiveReqExtra(PASSIVE_KISS_ORGASM_TWO_ID, actor._recordOrgasmFromKissCount);
		if(actor.meetsPassiveReq(PASSIVE_BUKKAKE_ORGASM_TWO_ID, actor._recordOrgasmFromBukkakeCount))
			actor.addToPassiveReqExtra(PASSIVE_BUKKAKE_ORGASM_TWO_ID, actor._recordOrgasmFromBukkakeCount);
		if(actor.meetsPassiveReq(PASSIVE_HJ_ORGASM_TWO_ID, actor._recordOrgasmFromHandjobCount))
			actor.addToPassiveReqExtra(PASSIVE_HJ_ORGASM_TWO_ID, actor._recordOrgasmFromHandjobCount);
		if(actor.meetsPassiveReq(PASSIVE_BJ_ORGASM_TWO_ID, actor._recordOrgasmFromBlowjobCount))
			actor.addToPassiveReqExtra(PASSIVE_BJ_ORGASM_TWO_ID, actor._recordOrgasmFromBlowjobCount);
		if(actor.meetsPassiveReq(PASSIVE_TITTYFUCK_ORGASM_TWO_ID, actor._recordOrgasmFromTittyFuckCount))
			actor.addToPassiveReqExtra(PASSIVE_TITTYFUCK_ORGASM_TWO_ID, actor._recordOrgasmFromTittyFuckCount);
		if(actor.meetsPassiveReq(PASSIVE_CUNNILINGUS_ORGASM_TWO_ID, actor._recordOrgasmFromCunnilingusCount))
			actor.addToPassiveReqExtra(PASSIVE_CUNNILINGUS_ORGASM_TWO_ID, actor._recordOrgasmFromCunnilingusCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_SEX_ORGASM_TWO_ID, actor._recordOrgasmFromPussySexCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_SEX_ORGASM_TWO_ID, actor._recordOrgasmFromPussySexCount);
		if(actor.meetsPassiveReq(PASSIVE_PUSSY_CREAMPIE_ORGASM_TWO_ID, actor._recordOrgasmFromPussyCreampieCount))
			actor.addToPassiveReqExtra(PASSIVE_PUSSY_CREAMPIE_ORGASM_TWO_ID, actor._recordOrgasmFromPussyCreampieCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_SEX_ORGASM_TWO_ID, actor._recordOrgasmFromAnalSexCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_SEX_ORGASM_TWO_ID, actor._recordOrgasmFromAnalSexCount);
		if(actor.meetsPassiveReq(PASSIVE_ANAL_CREAMPIE_ORGASM_TWO_ID, actor._recordOrgasmFromAnalCreampieCount))
			actor.addToPassiveReqExtra(PASSIVE_ANAL_CREAMPIE_ORGASM_TWO_ID, actor._recordOrgasmFromAnalCreampieCount);
		if(actor.meetsPassiveReq(PASSIVE_SWALLOW_ORGASM_TWO_ID, actor._recordOrgasmFromCumSwallowCount))
			actor.addToPassiveReqExtra(PASSIVE_SWALLOW_ORGASM_TWO_ID, actor._recordOrgasmFromCumSwallowCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_ORGASM_TWO_ID, actor._recordOrgasmFromTalkCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_ORGASM_TWO_ID, actor._recordOrgasmFromTalkCount);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_ORGASM_TWO_ID, actor._recordOrgasmFromSightCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_ORGASM_TWO_ID, actor._recordOrgasmFromSightCount);
		if(actor.meetsPassiveReq(PASSIVE_TOYS_ORGASM_TWO_ID, actor._recordOrgasmFromToysCount))
			actor.addToPassiveReqExtra(PASSIVE_TOYS_ORGASM_TWO_ID, actor._recordOrgasmFromToysCount);
		if(actor.meetsPassiveReq(PASSIVE_PETTING_ORGASM_TWO_ID, actor._recordOrgasmFromPettingCount))
			actor.addToPassiveReqExtra(PASSIVE_PETTING_ORGASM_TWO_ID, actor._recordOrgasmFromPettingCount);
		if(actor.meetsPassiveReq(PASSIVE_MASTURBATE_ORGASM_TWO_ID, actor._recordOrgasmFromMasturbationCount))
			actor.addToPassiveReqExtra(PASSIVE_MASTURBATE_ORGASM_TWO_ID, actor._recordOrgasmFromMasturbationCount);
		if(actor.meetsPassiveReq(PASSIVE_SADISM_ORGASM_TWO_ID, actor._recordOrgasmFromSadismCount))
			actor.addToPassiveReqExtra(PASSIVE_SADISM_ORGASM_TWO_ID, actor._recordOrgasmFromSadismCount);
		if(actor.meetsPassiveReq(PASSIVE_MASOCHISM_ORGASM_TWO_ID, actor._recordOrgasmFromMasochismCount))
			actor.addToPassiveReqExtra(PASSIVE_MASOCHISM_ORGASM_TWO_ID, actor._recordOrgasmFromMasochismCount);
		if(actor.meetsPassiveReq(PASSIVE_SPANKING_ORGASM_TWO_ID, actor._recordOrgasmFromSpankingCount))
			actor.addToPassiveReqExtra(PASSIVE_SPANKING_ORGASM_TWO_ID, actor._recordOrgasmFromSpankingCount);
		if(actor.meetsPassiveReq(PASSIVE_HORNY_COUNT_TWO_ID, actor._recordHornyCount))
			actor.addToPassiveReqExtra(PASSIVE_HORNY_COUNT_TWO_ID, actor._recordHornyCount);
		if(actor.meetsPassiveReq(PASSIVE_OFFBALANCE_COUNT_THREE_ID, actor._recordDebuffOffBalancedPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_OFFBALANCE_COUNT_THREE_ID, actor._recordDebuffOffBalancedPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_FALLEN_COUNT_THREE_ID, actor._recordDebuffFallenPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_FALLEN_COUNT_THREE_ID, actor._recordDebuffFallenPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_DOWNSTAMINA_COUNT_THREE_ID, actor._recordDebuffDownStaminaPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_DOWNSTAMINA_COUNT_THREE_ID, actor._recordDebuffDownStaminaPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_TOTAL_FOUR_ID, actor._recordSexualPartnersTotal))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_TOTAL_FOUR_ID, actor._recordSexualPartnersTotal);
		if(actor.meetsPassiveReq(PASSIVE_VIRGINS_TOTAL_THREE_ID, actor._recordVirginitiesTakenTotal))
			actor.addToPassiveReqExtra(PASSIVE_VIRGINS_TOTAL_THREE_ID, actor._recordVirginitiesTakenTotal);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_GOBLIN_THREE_ID, actor._recordSexualPartnersGoblin))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_GOBLIN_THREE_ID, actor._recordSexualPartnersGoblin);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_THUG_THREE_ID, actor._recordSexualPartnersThug))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_THUG_THREE_ID, actor._recordSexualPartnersThug);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_GUARD_THREE_ID, actor._recordSexualPartnersGuard))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_GUARD_THREE_ID, actor._recordSexualPartnersGuard);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_NERD_THREE_ID, actor._recordSexualPartnersNerd))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_NERD_THREE_ID, actor._recordSexualPartnersNerd);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_ROGUE_THREE_ID, actor._recordSexualPartnersRogue))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_ROGUE_THREE_ID, actor._recordSexualPartnersRogue);
		if(actor.meetsPassiveReq(PASSIVE_SEXUAL_PARTNERS_SLIME_THREE_ID, actor._recordSexualPartnersSlime))
			actor.addToPassiveReqExtra(PASSIVE_SEXUAL_PARTNERS_SLIME_THREE_ID, actor._recordSexualPartnersSlime);

		if(actor.meetsPassiveReq(PASSIVE_SIGHT_PLEASURE_TWO_ID, actor._recordSightPleasure))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_PLEASURE_TWO_ID, actor._recordSightPleasure);
		if(actor.meetsPassiveReq(PASSIVE_SIGHT_ORGASM_TWO_ID, actor._recordOrgasmFromSightCount))
			actor.addToPassiveReqExtra(PASSIVE_SIGHT_ORGASM_TWO_ID, actor._recordOrgasmFromSightCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_PLEASURE_TWO_ID, actor._recordTalkPleasure))
			actor.addToPassiveReqExtra(PASSIVE_TALK_PLEASURE_TWO_ID, actor._recordTalkPleasure);
		if(actor.meetsPassiveReq(PASSIVE_TALK_ORGASM_TWO_ID, actor._recordOrgasmFromTalkCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_ORGASM_TWO_ID, actor._recordOrgasmFromTalkCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_MOUTH_THREE_ID, actor._recordTalkedAtAboutMouthPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_MOUTH_THREE_ID, actor._recordTalkedAtAboutMouthPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_BOOBS_THREE_ID, actor._recordTalkedAtAboutBoobsPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_BOOBS_THREE_ID, actor._recordTalkedAtAboutBoobsPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_BUTT_THREE_ID, actor._recordTalkedAtAboutPussyPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_BUTT_THREE_ID, actor._recordTalkedAtAboutPussyPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_BUTT_TWO_ID, actor._recordTalkedAtAboutButtPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_BUTT_TWO_ID, actor._recordTalkedAtAboutButtPostFirstDefeatCount);
		if(actor.meetsPassiveReq(PASSIVE_TALK_COCK_THREE_ID, actor._recordTalkedAtAboutCockPostFirstDefeatCount))
			actor.addToPassiveReqExtra(PASSIVE_TALK_COCK_THREE_ID, actor._recordTalkedAtAboutCockPostFirstDefeatCount);

	}

	actor.cacheDesireTooltips();
	this.setCurrentGameVersion();
};

//Called when loading game
Game_Party.prototype.emergencyGameVersionFix = function() {

	if(this.getGameVersion() < 43) {
		if(Karryn.hasEdict(EDICT_OFFICE_BED_UPGRADE_THREE)) {
			let mapId = $gameMap._mapId;
			if(mapId === MAP_ID_KARRYN_OFFICE && $gameSwitches.value(SWITCH_WON_BOSS_BATTLE_LV3_ID) && !$gameSwitches.value(SWITCH_GIFT_EMPEROR_LV3_ID)) {
				$gamePlayer.reserveTransfer(MAP_ID_KARRYN_OFFICE, 11, 8, 0, 0);
			}
		}
	}

};

/////////
// Fixes
///////////

Game_Party.prototype.fixDuplicateWanted = function() {
	let actor = $gameActors.actor(ACTOR_KARRYN_ID);
	let namesCount = this.putAllWantedNamesToNamesCountArray();
	//console.log(namesCount);
	//console.log($gameParty._wantedEnemies);
	let dupeName = false;
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];
		let name = wanted._enemyName;
		if(namesCount[name] > 1) {
			dupeName = name;
			break;
		}
	}

	//console.log(dupeName);
	if(dupeName) {
		let dupeIds = [];
		for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
			let wanted = $gameParty._wantedEnemies[i];
			let name = wanted._enemyName;
			if(name == dupeName) {
				dupeIds.push(wanted._wantedId);
			}
		}

		let masterId = dupeIds[0];
		for(let i = 1; i < dupeIds.length; ++i) {
			let dupedId = dupeIds[i];
			if(actor._firstKissWantedID === dupedId) actor._firstKissWantedID = masterId;
			if(actor._firstPussySexWantedID === dupedId) actor._firstPussySexWantedID = masterId;
			if(actor._firstAnalSexWantedID === dupedId) actor._firstAnalSexWantedID = masterId;
			if(actor._firstHandjobWantedID === dupedId) actor._firstHandjobWantedID = masterId;
			if(actor._firstBlowjobWantedID === dupedId) actor._firstBlowjobWantedID = masterId;
			if(actor._firstTittyFuckWantedID === dupedId) actor._firstTittyFuckWantedID = masterId;
			if(actor._firstCunnilingusWantedID === dupedId) actor._firstCunnilingusWantedID = masterId;
			if(actor._firstButtSpankedWantedID === dupedId) actor._firstButtSpankedWantedID = masterId;
			if(actor._firstSwallowWantedID === dupedId) actor._firstSwallowWantedID = masterId;
			if(actor._firstBukkakeWantedID === dupedId) actor._firstBukkakeWantedID = masterId;
			if(actor._firstPussyCreampieWantedID === dupedId) actor._firstPussyCreampieWantedID = masterId;
			if(actor._firstAnalCreampieWantedID === dupedId) actor._firstAnalCreampieWantedID = masterId;

			$gameParty._wantedEnemies[dupedId]._disabled = true;
		}

	}

	if(dupeName) return true;
	else return false;
};

Game_Party.prototype.fixWantedWithUndefinedBattlernum = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];

		if(wanted && wanted._battlerName && wanted._battlerName.includes('undefined')) {
			wanted._disabled = true;
		}
	}

};

Game_Party.prototype.fixCharacterCreatorSwitches = function() {
	let actor = $gameActors.actor(ACTOR_KARRYN_ID);

	if(!actor.hasSkill(CHARA_CREATE_TWO_BOOBS_ID) && !actor.hasSkill(CHARA_CREATE_TWO_NIPPLES_ID) && !actor.hasSkill(CHARA_CREATE_TWO_CLIT_ID) && !actor.hasSkill(CHARA_CREATE_TWO_PUSSY_ID) && !actor.hasSkill(CHARA_CREATE_TWO_BUTT_ID) && !actor.hasSkill(CHARA_CREATE_TWO_ANAL_ID) && !actor.hasSkill(CHARA_CREATE_TWO_MOUTH_ID) && !actor.hasSkill(CHARA_CREATE_TWO_BODY_ID)) {
		$gameSwitches.setValue(SWITCH_CREATOR_STEP_2_COMPLETED_ID, false);
	}
	else {
		console.log(actor.hasSkill(CHARA_CREATE_TWO_BOOBS_ID));
		console.log(actor.hasSkill(CHARA_CREATE_TWO_NIPPLES_ID));
		console.log(actor.hasSkill(CHARA_CREATE_TWO_CLIT_ID));
		console.log(actor.hasSkill(CHARA_CREATE_TWO_PUSSY_ID));
		console.log(actor.hasSkill(CHARA_CREATE_TWO_BUTT_ID));
		console.log(actor.hasSkill(CHARA_CREATE_TWO_ANAL_ID));
		console.log(actor.hasSkill(CHARA_CREATE_TWO_MOUTH_ID));
		console.log(actor.hasSkill(CHARA_CREATE_TWO_BODY_ID));
	}

	if(!actor.hasSkill(CHARA_CREATE_THREE_MOUTH_ID) && !actor.hasSkill(CHARA_CREATE_THREE_BOOBS_ID) && !actor.hasSkill(CHARA_CREATE_THREE_PUSSY_ID) && !actor.hasSkill(CHARA_CREATE_THREE_BUTT_ID) && !actor.hasSkill(CHARA_CREATE_THREE_ONANI_ID) && !actor.hasSkill(CHARA_CREATE_THREE_SADO_ID) && !actor.hasSkill(CHARA_CREATE_THREE_MAZO_ID)) {
		$gameSwitches.setValue(SWITCH_CREATOR_STEP_3_COMPLETED_ID, false);
	}
	else {
		console.log(actor.hasSkill(CHARA_CREATE_THREE_MOUTH_ID));
		console.log(actor.hasSkill(CHARA_CREATE_THREE_BOOBS_ID));
		console.log(actor.hasSkill(CHARA_CREATE_THREE_PUSSY_ID));
		console.log(actor.hasSkill(CHARA_CREATE_THREE_BUTT_ID));
		console.log(actor.hasSkill(CHARA_CREATE_THREE_ONANI_ID));
		console.log(actor.hasSkill(CHARA_CREATE_THREE_SADO_ID));
		console.log(actor.hasSkill(CHARA_CREATE_THREE_MAZO_ID));
	}
};

Game_Party.prototype.fixDupedAccessories = function(actor) {
	for(let skillId = 16; skillId < 443; ++skillId) {
		let skill = $dataSkills[skillId];

		if(skill.hasTag(TAG_ACCESSORY_EDICT)) {
			if(!actor.hasEdict(skillId)) {
				this.gainItem($dataArmors[skillId], -1 * (this.maxItems($dataArmors[skillId]) + 1), true);
			}
			else if(actor.isEquippingThisAccessory(skillId)) {
				if(this.numItems($dataArmors[skillId], true) > 0)
					this.gainItem($dataArmors[skillId], -1 * this.maxItems($dataArmors[skillId]), false);
			}
			else if(this.numItems($dataArmors[skillId], true) > 1) {
				this.gainItem($dataArmors[skillId], -1 * (this.numItems($dataArmors[skillId] - 1), false));
			}
		}

	}
};

// Updates
Game_Party.prototype.update_addToAllWanted_Records_v8 = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];
		if(!wanted._enemyRecordToysInsertedCount)
			wanted._enemyRecordToysInsertedCount = 0;
		if(!wanted._enemyRecordFlauntedCount)
			wanted._enemyRecordFlauntedCount = 0;
		if(!wanted._enemyRecordRimmedCount)
			wanted._enemyRecordRimmedCount = 0;
		if(!wanted._enemyRecordFootjobCount)
			wanted._enemyRecordFootjobCount = 0;

	}
};

Game_Party.prototype.update_addToAllWanted_Records_v36 = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];
		if(!wanted._enemyRecordHandshakeCount)
			wanted._enemyRecordHandshakeCount = 0;
		if(!wanted._enemyRecordBoobshakeCount)
			wanted._enemyRecordBoobshakeCount = 0;
		if(!wanted._enemyRecordSawCount)
			wanted._enemyRecordSawCount = 0;
		if(!wanted._enemyRecordTalkedCount)
			wanted._enemyRecordTalkedCount = 0;
		if(!wanted._enemyRecordJerkoffCount)
			wanted._enemyRecordJerkoffCount = 0;
		if(!wanted._enemyRecordTauntedCount)
			wanted._enemyRecordTauntedCount = 0;
		if(!wanted._enemyRecordFingerSuckedCount)
			wanted._enemyRecordFingerSuckedCount = 0;
		if(!wanted._enemyRecordCockPettedCount)
			wanted._enemyRecordCockPettedCount = 0;
		if(!wanted._enemyRecordHandshakeWhileSexCount)
			wanted._enemyRecordHandshakeWhileSexCount = 0;
	}
};

Game_Party.prototype.update_addToAllWanted_Records_v41 = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];
		if(!wanted._enemyRecordGloryBattleEjaculationCount)
			wanted._enemyRecordGloryBattleEjaculationCount = 0;
		if(!wanted._enemyRecordBoobshakeCount)
			wanted._enemyRecordBoobshakeCount = 0;
	}
};

Game_Party.prototype.update_addToAllWanted_Records_v50 = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];
		if(!wanted._enemyRecordMasturbatedInBattlePresenceCount)
			wanted._enemyRecordMasturbatedInBattlePresenceCount = 0;
		if(!wanted._enemyRecordBeingServedInGloryHoleCount)
			wanted._enemyRecordBeingServedInGloryHoleCount = 0;
		if(!wanted._enemyRecordGloryBattleEjaculationCount)
			wanted._enemyRecordGloryBattleEjaculationCount = 0;
		if(!wanted._enemyRecordFaceBukkakeCount)
			wanted._enemyRecordFaceBukkakeCount = 0;
		if(!wanted._enemyRecordTalkedAboutMouthCount)
			wanted._enemyRecordTalkedAboutMouthCount = 0;
		if(!wanted._enemyRecordTalkedAboutBoobsCount)
			wanted._enemyRecordTalkedAboutBoobsCount = 0;
		if(!wanted._enemyRecordTalkedAboutPussyCount)
			wanted._enemyRecordTalkedAboutPussyCount = 0;
		if(!wanted._enemyRecordTalkedAboutButtCount)
			wanted._enemyRecordTalkedAboutButtCount = 0;
		if(!wanted._enemyRecordTalkedAboutCockCount)
			wanted._enemyRecordTalkedAboutCockCount = 0;
		if(!wanted._enemyRecordSawMouthCount)
			wanted._enemyRecordSawMouthCount = 0;
		if(!wanted._enemyRecordSawBoobsCount)
			wanted._enemyRecordSawBoobsCount = 0;
		if(!wanted._enemyRecordSawPussyCount)
			wanted._enemyRecordSawPussyCount = 0;
		if(!wanted._enemyRecordSawButtCount)
			wanted._enemyRecordSawButtCount = 0;
		if(!wanted._enemyRecordKickCounteredCount)
			wanted._enemyRecordKickCounteredCount = 0;
	}
};

Game_Party.prototype.update_addToAllWanted_Records_v52 = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];
		if(!wanted._enemyRecordBeingServedInGloryHoleCount)
			wanted._enemyRecordBeingServedInGloryHoleCount = 0;
	}
};

Game_Party.prototype.update_addToAllWanted_Records_v62 = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];
		if(!wanted._enemyRecordCockStaredAtCount)
			wanted._enemyRecordCockStaredAtCount = 0;
	}
};

Game_Party.prototype.update_addToAllWanted_Records_v73 = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		let wanted = $gameParty._wantedEnemies[i];
		if(!wanted._enemyRecordStripClubCondomEjaculationCount)
			wanted._enemyRecordStripClubCondomEjaculationCount = 0;
	}
};

Game_Party.prototype.update_setActorPassivesObtainedOnArray = function() {
	let actor = $gameActors.actor(ACTOR_KARRYN_ID);
	let date = Prison.date;

	actor._passivesObtainedOn_keyDate_valueSkillID = [];
	actor._passivesObtainedOn_keyDate_valueSkillID[date] = [];
	actor._passivesObtainedOn_keySkillID_valueDate = [];

	for(let i = PASSIVES_LIST_ONE_START_ID; i <= PASSIVES_LIST_ONE_END_ID; i++) {
		if(actor.hasPassive(i)) {
			actor._passivesObtainedOn_keySkillID_valueDate[i] = date;
			actor._passivesObtainedOn_keyDate_valueSkillID[date].push(i);
		}

	}
	for(let i = PASSIVES_LIST_TWO_START_ID; i <= PASSIVES_LIST_TWO_END_ID; i++) {
		if(actor.hasPassive(i)) {
			actor._passivesObtainedOn_keySkillID_valueDate[i] = date;
			actor._passivesObtainedOn_keyDate_valueSkillID[date].push(i);
		}
	}
	for(let i = PASSIVES_LIST_THREE_START_ID; i <= PASSIVES_LIST_THREE_END_ID; i++) {
		if(actor.hasPassive(i)) {
			actor._passivesObtainedOn_keySkillID_valueDate[i] = date;
			actor._passivesObtainedOn_keyDate_valueSkillID[date].push(i);
		}
	}

	for(let i = PASSIVES_LIST_CC1_START_ID; i <= PASSIVES_LIST_CC1_END_ID; i++) {
		if(actor.hasPassive(i)) {
			actor._passivesObtainedOn_keySkillID_valueDate[i] = date;
			actor._passivesObtainedOn_keyDate_valueSkillID[date].push(i);
		}
	}

	for(let i = PASSIVES_LIST_CC2_START_ID; i <= PASSIVES_LIST_CC2_END_ID; i++) {
		if(actor.hasPassive(i)) {
			actor._passivesObtainedOn_keySkillID_valueDate[i] = date;
			actor._passivesObtainedOn_keyDate_valueSkillID[date].push(i);
		}
	}
};

Game_Party.prototype.fix_setActorPassivesObtainedOnArray_missingCharacterCreators = function() {
	let actor = $gameActors.actor(ACTOR_KARRYN_ID);
	let date = Prison.date;

	if(!actor._passivesObtainedOn_keyDate_valueSkillID[date])
		actor._passivesObtainedOn_keyDate_valueSkillID[date] = [];

	for(let i = PASSIVES_LIST_CC1_START_ID; i <= PASSIVES_LIST_CC1_END_ID; i++) {
		if(actor.hasPassive(i) && !actor._passivesObtainedOn_keySkillID_valueDate[i]) {
			actor._passivesObtainedOn_keySkillID_valueDate[i] = date;
			actor._passivesObtainedOn_keyDate_valueSkillID[date].push(i);
		}
	}
	for(let i = PASSIVES_LIST_CC2_START_ID; i <= PASSIVES_LIST_CC2_END_ID; i++) {
		if(actor.hasPassive(i) && !actor._passivesObtainedOn_keySkillID_valueDate[i]) {
			actor._passivesObtainedOn_keySkillID_valueDate[i] = date;
			actor._passivesObtainedOn_keyDate_valueSkillID[date].push(i);
		}
	}
};

Game_Party.prototype.update_removeOffAndDefHalberdEdicts = function() {
	let actor = $gameActors.actor(ACTOR_KARRYN_ID);
	if(actor.hasEdict(EDICT_HALBERD_OFFENSIVE_SPECIALIZATION) && actor.hasEdict(EDICT_HALBERD_DEFENSIVE_SPECIALIZATION)) {
		actor.forgetSkill(EDICT_HALBERD_OFFENSIVE_SPECIALIZATION);
        actor.resetStsSkill(EDICT_HALBERD_OFFENSIVE_SPECIALIZATION);
		actor.forgetSkill(EDICT_HALBERD_DEFENSIVE_SPECIALIZATION);
        actor.resetStsSkill(EDICT_HALBERD_DEFENSIVE_SPECIALIZATION);
	}
};

Game_Party.prototype.fixWantedHoboLevelPlus80 = function() {
	for(let i = 0; i < $gameParty._wantedEnemies.length; ++i) {
		if($gameParty._wantedEnemies[i]._wantedLvl >= 80) {
			$gameParty._wantedEnemies[i]._wantedLvl -= 66;
		}
	}
};