protected override string LegendsDescription() { var timestring = base.LegendsDescription(); var count = PopNumberMoved.ToString(); if (PopNumberMoved >= 24) { count = "dozens"; } var racetext = Race?.ToString().ToLower() ?? RaceId?.ToString() ?? ""; return($"{timestring} {count} of {racetext} from {Region} joined with the {Entity} at {Site.AltName}."); }
internal override void Export(string table) { base.Export(table); table = GetType().Name; var vals = new List <object> { Id, EntityId.DBExport(), SiteId.DBExport(), RaceId.DBExport(), PopNumberMoved.DBExport(), RegionId.DBExport(), PopFlid.DBExport() }; Database.ExportWorldItem(table, vals); }