public override string Print(bool link = true, DwarfObject pov = null) { string eventString = GetYearTime(); eventString += FramerHf.ToLink(link, pov, this); eventString += " attempted to frame "; eventString += TargetHf.ToLink(link, pov, this); eventString += $" for {Crime}"; if (PlotterHf != null) { eventString += " at the behest of "; eventString += PlotterHf.ToLink(link, pov, this); } eventString += " by fooling "; eventString += FooledHf.ToLink(link, pov, this); if (ConvicterEntity != null) { eventString += " and "; eventString += ConvicterEntity.ToLink(link, pov, this); } eventString += " with fabricated evidence, but nothing came from it"; eventString += PrintParentCollection(link, pov); eventString += "."; return(eventString); }
public FailedFrameAttempt(List <Property> properties, World world) : base(properties, world) { foreach (Property property in properties) { switch (property.Name) { case "target_hfid": TargetHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "convicter_enid": ConvicterEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "fooled_hfid": FooledHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "framer_hfid": FramerHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "plotter_hfid": PlotterHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "crime": Crime = property.Value; break; } } TargetHf.AddEvent(this); ConvicterEntity.AddEvent(this); if (FooledHf != TargetHf) { FooledHf.AddEvent(this); } if (FramerHf != FooledHf) { FramerHf.AddEvent(this); } PlotterHf.AddEvent(this); }
public HfConvicted(List <Property> properties, World world) : base(properties, world) { foreach (Property property in properties) { switch (property.Name) { case "target_hfid": TargetHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "convicted_hfid": ConvictedHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "convicter_enid": ConvicterEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "crime": Crime = property.Value; break; case "prison_months": PrisonMonth = Convert.ToInt32(property.Value); break; case "fooled_hfid": FooledHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "framer_hfid": FramerHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "death_penalty": property.Known = true; DeathPenalty = true; break; case "beating": property.Known = true; Beating = true; break; case "hammerstrokes": Hammerstrokes = Convert.ToInt32(property.Value); break; case "wrongful_conviction": property.Known = true; WrongfulConviction = true; break; case "corrupt_convicter_hfid": CorruptConvictorHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "plotter_hfid": PlotterHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "exiled": property.Known = true; Exiled = true; break; case "held_firm_in_interrogation": property.Known = true; HeldFirmInInterrogation = true; break; case "convict_is_contact": property.Known = true; ConvictIsContact = true; break; case "surveiled_convicted": property.Known = true; SurveiledConvicted = true; break; case "surveiled_coconspirator": property.Known = true; SurveiledCoConspirator = true; break; case "surveiled_contact": property.Known = true; SurveiledContact = true; break; case "surveiled_target": property.Known = true; SurveiledContact = true; break; case "confessed_after_apb_arrest_enid": ConfessedAfterApbArrestEntity = world.GetEntity(Convert.ToInt32(property.Value)); break; case "coconspirator_hfid": CoConspiratorHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "implicated_hfid": ImplicatedHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "interrogator_hfid": InterrogatorHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; case "contact_hfid": ContactHf = world.GetHistoricalFigure(Convert.ToInt32(property.Value)); break; } } TargetHf.AddEvent(this); ConvictedHf.AddEvent(this); ConvicterEntity.AddEvent(this); if (FooledHf != ConvictedHf) { FooledHf.AddEvent(this); } FramerHf.AddEvent(this); CorruptConvictorHf.AddEvent(this); if (PlotterHf != CorruptConvictorHf) { PlotterHf.AddEvent(this); } if (ConvicterEntity != ConfessedAfterApbArrestEntity) { ConfessedAfterApbArrestEntity.AddEvent(this); } CoConspiratorHf.AddEvent(this); ImplicatedHf.AddEvent(this); InterrogatorHf.AddEvent(this); if (ImplicatedHf != ContactHf) { ContactHf.AddEvent(this); } }
public override string Print(bool link = true, DwarfObject pov = null) { string eventString = GetYearTime(); if (HeldFirmInInterrogation) { eventString += "due to ongoing surveillance"; if (SurveiledContact & ContactHf != null) { eventString += " on the contact "; eventString += ContactHf.ToLink(link, pov, this); } if (SurveiledCoConspirator & CoConspiratorHf != null) { eventString += " on a coconspirator "; eventString += CoConspiratorHf.ToLink(link, pov, this); } if (SurveiledTarget & TargetHf != null) { eventString += " on a target "; eventString += TargetHf.ToLink(link, pov, this); } eventString += " as the plot unfolded, "; } eventString += ConvictedHf.ToLink(link, pov, this); eventString += $" was {(WrongfulConviction ? "wrongfully " : "")}convicted "; if (ConvictIsContact) { eventString += $"as a go-between in a conspiracy to commit {Crime} "; } else { eventString += $"of {Crime} "; } if (ConvicterEntity != null) { eventString += "by "; eventString += ConvicterEntity.ToLink(link, pov, this); } if (CorruptConvictorHf != null) { eventString += " and "; eventString += CorruptConvictorHf.ToLink(link, pov, this); } if (PlotterHf != null && PlotterHf != CorruptConvictorHf) { eventString += " plotted by "; eventString += PlotterHf.ToLink(link, pov, this); } if (FooledHf != null && FramerHf != null) { eventString += " after "; eventString += FramerHf.ToLink(link, pov, this); eventString += " fooled "; eventString += FooledHf.ToLink(link, pov, this); eventString += " with fabricated evidence"; } if (Beating) { eventString += ", beaten"; } else if (Hammerstrokes > 0) { eventString += $", sentenced to {Hammerstrokes} hammerstrokes"; } if (PrisonMonth > 0) { eventString += $" and imprisoned for a term of {(PrisonMonth > 12 ? (PrisonMonth / 12) + " years" : PrisonMonth + " month")}"; } else if (DeathPenalty) { eventString += " and sentenced to death"; } if (Exiled) { eventString += " and exiled"; } eventString += PrintParentCollection(link, pov); eventString += ". "; if (ImplicatedHf != null) { eventString += ConvictedHf.ToLink(link, pov, this); eventString += " implicated "; eventString += ImplicatedHf.ToLink(link, pov, this); eventString += " during interrogation. "; } if (InterrogatorHf != null) { eventString += "Interrogation was led by "; eventString += InterrogatorHf.ToLink(link, pov, this); eventString += ". "; } return(eventString); }