Scriptname JR_ServedTimeQuestScript extends Quest  

Message Property JR_ServedTimeMsg  Auto  
JR_JailQuestScript Property JR_JailQuest Auto
JR_CidhnaMineQuestScript Property JR_CidhnaMineQuest Auto

Event OnStoryServedTime(Location akLocation, Form akCrimeGroup, int aiCrimeGold, int aiDaysJail)
	if JR_JailQuest.LastRaped || JR_CidhnaMineQuest.LastRaped
		if Game.GetModByName("SexLabDefeat.esp") < 255
			DefeatUtil.GetDefeat().McmConfig.DAsChance = JR_CidhnaMineQuest.OldDAsChance
		endif
		JR_ServedTimeMsg.Show()
	endif
	JR_JailQuest.Stop()
	JR_CidhnaMineQuest.Stop()
	Stop()
endEvent

