public override string GetDetailsPrintout() { // Victim = [bleh] string basic = base.GetDetailsPrintout(); // Determine death message. string deathMessage = ""; if (KillingBlowDamageDef != null) { // Died due to damage. deathMessage = KillingBlowDamageDef.deathMessage.Formatted(Victim.LabelShort.CapitalizeFirst(), Victim.Named("PAWN")); } else if (culpritHediff != null) { // Died due to health conditions. deathMessage = "PawnDiedBecauseOf".Translate(Victim.LabelShort.CapitalizeFirst(), culpritHediff.def.LabelCap, Victim.Named("PAWN")); } else { // Generally died. "PawnDied".Translate(Victim.LabelShort.CapitalizeFirst(), Victim.Named("PAWN")); } basic += "\n" + deathMessage; // Determine killer id if (Killer != null) { basic += "\nKilled by: "; if (Killer.Name != null) { basic += Killer.Name; } else { basic += Killer.ToString(); } } return(basic); }