public override string LegendsDescription() { string timestring = base.LegendsDescription(); return(string.Format("{0} {1} attacked {2} in {3}. \nThe {4} {5} led the attack, \nand the defenders were led by the {6} {7}.", timestring, AttackerCiv.ToString(), DefenderCiv.ToString(), Subregion.ToString(), AttackerGeneralHF.Race.ToString(), AttackerGeneralHF.ToString(), DefenderGeneralHF.Race.ToString(), DefenderGeneralHF.ToString())); }
public override string LegendsDescription() { string timestring = base.LegendsDescription(); if (DefenderGeneralHF == null) { return(string.Format("{0} {1} attacked {2} of {3} at {4}. \n" + "The {5} {6} led the attack.", timestring, AttackerCiv.ToString(), SiteCiv.ToString(), DefenderCiv.ToString(), Site.AltName, AttackerGeneralHF.Race.ToString(), AttackerGeneralHF.ToString())); } else { return(string.Format("{0} {1} attacked {2} of {3} at {4}. \n" + "The {5} {6} led the attack, \nand the defenders were led by the {7} {8}.", timestring, AttackerCiv.ToString(), SiteCiv.ToString(), DefenderCiv.ToString(), Site.AltName, AttackerGeneralHF.Race.ToString(), AttackerGeneralHF.ToString(), DefenderGeneralHF.Race.ToString(), DefenderGeneralHF.ToString())); } }