public void GoToJail(int Quarters) { // Cancel all ongoing projects PartialProjects.Clear(); // Penalty to affinities and fans (Criminal affinity not affected.) ThisRound.AffinityProfessional /= 3; ThisRound.AffinitySocial /= 3; ThisRound.AffinityMedia /= 3; if (ThisRound.PublicSentiment > 0) { ThisRound.PublicSentiment /= 3; } ThisRound.FanCount /= 2; // Create jail partial project PartialProject p = new PartialProject(); p.QuartersRemaining = Quarters; p.JailTime = true; InJail = true; JailCount++; SetResult("Failed: The police threw you in jail.", false); PartialProjects.Add(p); }
public void CommitAction(RoundAction a) { if (InJail || Dead) { return; } CurrentRoundAction = a; a.Action.CommitAction(this, a.Action, a.Media); if (a.Media != null) { a.Media.Reacted = true; } if (a.Action.NumQuarters > 1) { PartialProject p = new PartialProject() { Project = a.Action, QuartersRemaining = a.Action.NumQuarters, Media = a.Media }; PartialProjects.Add(p); } }