Exemplo n.º 1
0
        internal override void Export(string table)
        {
            base.Export(table);

            table = GetType().Name;

            var vals = new List <object>
            {
                Id,
                SiteId.DBExport(),
                SubregionId.DBExport(),
                FeatureLayerId.DBExport(),
                HfId_Devourer.DBExport(),
                HfId_Victim.DBExport(),
                VictimRace.DBExport(),
                VictimCaste.DBExport(HistoricalFigure.Castes),
                EntityId.DBExport()
            };

            Database.ExportWorldItem(table, vals);
        }
Exemplo n.º 2
0
        protected override string LegendsDescription()
        {
            var timestring = base.LegendsDescription();

            var location = "in ";

            if (Subregion != null)
            {
                location += Subregion.ToString();
            }
            else
            {
                location += Site.AltName;
            }

            var devourertext = "an unknown creature";

            if (Hf_Devourer != null)
            {
                devourertext = $"the {Hf_Devourer.Race.ToString().ToLower()} {Hf_Devourer}";
            }

            if (Hf_Victim == null)
            {
                return
                    ($"{timestring} {devourertext} devoured a {VictimRace?.ToString()?.ToLower() ?? "UNKNOWN"} of {Entity?.ToString() ?? ""} in {location}.");
            }
            if (Entity == null)
            {
                return
                    ($"{timestring} {devourertext} devoured the {VictimRace.ToString().ToLower()} {Hf_Victim} {location}.");
            }


            return($"{timestring} the {"UNKNOWN"} {"UNKNOWN"} devoured the {"UNKNOWN"} {"UNKNOWN"} {location}.");
        }