Exemplo n.º 1
0
        protected override string LegendsDescription()
        {
            var timestring = base.LegendsDescription();

            var claimer = (Hf == null ? Entity?.ToString() : Hf.ToString());

            if (Claim.HasValue)
            {
                switch (Claims[Claim.Value])
                {
                case "heirloom":
                    return($"{timestring} {Artifact} was made a family heirloom by {claimer}");

                case "treasure":
                    return($"{timestring} {Artifact} was claimed by {claimer}");

                case "symbol":
                    return($"{timestring} {Artifact} was made a symbol of the king by {claimer}");

                default:
                    return($"{timestring} {Artifact} was claimed by {claimer}");
                }
            }
            return($"{timestring} {Artifact} was claimed by {claimer}");
        }
Exemplo n.º 2
0
        internal override string ToTimelineString()
        {
            var timelinestring = base.ToTimelineString();

            return
                ($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} {" linked to "} {Hf_Target?.ToString() ?? HfId_Target.ToString()}.");
        }
Exemplo n.º 3
0
        protected override string LegendsDescription() //Matched
        {
            var timestring = base.LegendsDescription();

            if (UnitType.HasValue)
            {
                return($"{timestring} {(Hf == null ? "UNKNOWN" : Hf.ToString())} recruited {UnitTypes[UnitType.Value]} into {Entity} in {Site.AltName}.");
            }
            return($"{timestring} {(Hf == null ? "UNKNOWN" : Hf.ToString())} recruited {UnitTypes[UnitType.Value]} into {Entity} in {Site.AltName}.");
        }
Exemplo n.º 4
0
        internal override string ToTimelineString()
        {
            var timelinestring = base.ToTimelineString();

            if (!HfId_Concluder.HasValue)
            {
                return
                    ($"{timelinestring} {Hf?.ToString() ?? "UNKNOWN"} performed ritual at {Site?.ToString() ?? "UNKNOWN"} with {Artifact?.ToString() ?? "UNKNOWN"}.");
            }
            return($"{timelinestring} Agreement formed");
        }
Exemplo n.º 5
0
        internal override string ToTimelineString()
        {
            var timelinestring = base.ToTimelineString();

            if (Site != null)
            {
                return
                    ($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} came back from the dead as a {Ghost} in {Site.AltName}*");
            }
            return
                ($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} came back from the dead as a {Ghost}");
        }
Exemplo n.º 6
0
        internal override string ToTimelineString()
        {
            //TODO: Incorporate new data
            var timelinestring = base.ToTimelineString();

            if (Site != null)
            {
                return
                    ($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} changed jobs at {Site.AltName}");
            }
            return($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} changed jobs");
        }
Exemplo n.º 7
0
        protected override string LegendsDescription() //Matched
        {
            var timestring = base.LegendsDescription();

            if (!Position.HasValue || HFEntityLink.Positions[Position.Value] == "-1")
            {
                return($"{timestring} {Hf?.ToString() ?? "UNKNOWN"} left the {Entity}.");
            }
            if (Hf == null)
            {
                return($"{timestring} {"UNKNOWN"} became the {HFEntityLink.Positions[Position.Value]} of {Entity}.");
            }
            return
                ($"{timestring} the {Hf.Race.ToString().ToLower()} {Hf} ceased to be the {HFEntityLink.Positions[Position.Value]} of {Entity}.");
        }
Exemplo n.º 8
0
        internal override string ToTimelineString()
        {
            //TODO: Incorporate new data
            var timelinestring = base.ToTimelineString();

            if (Site == null)
            {
                if (Hf_Slayer == null)
                {
                    return($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} died.");
                }
                return($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} killed by {Hf_Slayer}.");
            }
            if (Hf_Slayer == null)
            {
                return($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} died at {Site.AltName}");
            }
            return
                ($"{timelinestring} {Hf?.ToString() ?? HfId.ToString()} killed at {Site.AltName} by {Hf_Slayer}");
        }
Exemplo n.º 9
0
        protected override string LegendsDescription()
        {
            var timestring = base.LegendsDescription();

            if (!Position.HasValue || HFEntityLink.Positions[Position.Value] == "-1")
            {
                if (HfEntityLink != null)
                {
                    switch (HFEntityLink.LinkTypes[HfEntityLink.LinkType])
                    {
                    case "member":
                    case "former member":
                        if (Entity.Civilization.Leaders["master"].Any(x => x.Hf == Hf))
                        {
                            return($"{timestring} {Hf?.ToString() ?? "UNKNOWN"} became the master of {Entity}.");
                        }
                        return($"{timestring} {Hf?.ToString() ?? "UNKNOWN"} became a {HFEntityLink.LinkTypes[HfEntityLink.LinkType]} of {Entity}.");

                    case "prisoner":
                    case "former prisoner":
                        return($"{timestring} {Hf?.ToString() ?? "UNKNOWN"} was imprisoned by {Entity}.");

                    default:
                        return($"{timestring} {Hf?.ToString() ?? "UNKNOWN"} became a {HFEntityLink.LinkTypes[HfEntityLink.LinkType]} of {Entity}.");
                    }
                    return
                        ($"{timestring} {Hf?.ToString() ?? "UNKNOWN"} became a {HFEntityLink.LinkTypes[HfEntityLink.LinkType]} of {Entity}.");
                }
                return
                    ($"{timestring} {Hf?.ToString() ?? "UNKNOWN"} became a {(LinkType.HasValue ? HFEntityLink.LinkTypes[LinkType.Value] : "UNKNOWN")} of {Entity}.");
            }
            if (Hf == null)
            {
                return($"{timestring} {"UNKNOWN"} became the {HFEntityLink.Positions[Position.Value]} of {Entity}.");
            }

            return
                ($"{timestring} the {Hf.Race.ToString().ToLower()} {Hf} became the {HFEntityLink.Positions[Position.Value]} of {Entity}.");
        }
Exemplo n.º 10
0
        protected override string LegendsDescription()
        {
            var timestring = base.LegendsDescription();

            if (!HfId_Concluder.HasValue)
            {
                return
                    ($"{timestring} {God?.ToString() ?? "UNKNOWN"} aided the {Hf?.Race.ToString() ?? "UNKNOWN"} {Hf?.ToString() ?? "UNKNOWN"} in becoming a permanent part of the living world\n that great fortresses might be raised and tested in siege. " +
                     $"The ritual took place in {Site?.ToString() ?? "UNKNOWN"} using {Artifact?.ToString() ?? "UNKNOWN"}");
            }
            return($"{timestring} Agreement formed");
        }
Exemplo n.º 11
0
        protected override string LegendsDescription()
        {
            var timestring = base.LegendsDescription();

            if (NewJob.HasValue && OldJob.HasValue)
            {
                if (Unit.JobTypes[NewJob.Value] != "standard")
                {
                    return
                        ($"{timestring} {Hf.Race} {Hf} became {Unit.JobTypes[NewJob.Value]} in {(Site != null ? Site.AltName : Subregion.Name.ToTitleCase())}.");
                }
                return
                    ($"{timestring} {Hf.Race} {Hf} stopped being a {Unit.JobTypes[OldJob.Value]} in {(Site != null ? Site.AltName : Subregion.Name)}.");
            }
            return($"{timestring} {Hf?.Race?.ToString() ?? ""} {(Hf == null ? "UNKNOWN" : Hf.ToString())} became {"UNKNOWN"} in {(Site != null ? Site.AltName : (Subregion != null ? Subregion.Name.ToTitleCase() : "UNKNOWN"))}.");
        }