/// <summary> /// Adds a new court case to the court system. /// </summary> /// <param name="DefendantPersona">LSPDFR persona of the defendant</param> /// <param name="Crime">String describing the crime committed, e.g. 'stealing a police vehicle'.</param> /// <param name="GuiltyChance">Percentage based chance of the suspect being found guilty. 100 = always guilty, 0 = never guilty.</param> /// <param name="CourtVerdict">The decision the court will come to, e.g. 'Sentenced to 5 months in prison'</param> public static void CreateNewCourtCase(Persona DefendantPersona, string Crime, int GuiltyChance, string CourtVerdict) { if (DefendantPersona != null) { Game.LogTrivial("LSPDFR+ API adding new court case."); CourtSystem.CreateNewCourtCase(DefendantPersona.FullName, DefendantPersona.Birthday, Crime, DateTime.Now, GuiltyChance, CourtVerdict, CourtSystem.DetermineCourtHearingDate(), false); } else { Game.LogTrivial("LSPDFR+ API error: DefendantPersona null."); } }
/// <summary> /// Adds a new court case to the court system. /// </summary> /// <param name="DefendantPersona">British Persona of the defendant.</param> /// <param name="Crime">String describing the crime committed, e.g. 'stealing a police vehicle'.</param> /// <param name="GuiltyChance">100 = always guilty, 0 = never guilty.</param> /// <param name="CourtVerdict">The decision the court will come to, e.g. 'Sentenced to 5 months in prison'</param> public static void CreateNewCourtCase(BritishPersona DefendantPersona, string Crime, int GuiltyChance, string CourtVerdict) { CourtSystem.CreateNewCourtCase(DefendantPersona.FullName, DefendantPersona.LSPDFRPersona.Birthday, Crime, DateTime.Now, GuiltyChance, CourtVerdict, CourtSystem.DetermineCourtHearingDate(), false); }