Пример #1
0
        public override string Print(bool link = true, DwarfObject pov = null)
        {
            string eventString = GetYearTime();

            eventString += Trickster?.ToLink(link, pov, this) ?? "an unknown creature";
            if (Target != null)
            {
                eventString += " fooled ";
                eventString += Target?.ToLink(link, pov, this) ?? "an unknown civilization";
                eventString += " into believing ";
                eventString += Trickster?.ToLink(link, pov, this) ?? "an unknown creature";
                eventString += " was ";
            }
            else
            {
                eventString += " assumed the identity of ";
            }
            Identity identity = Trickster?.Identities.FirstOrDefault(i => i.Id == IdentityId) ?? Identity;

            if (identity != null)
            {
                eventString += identity.Print(link, pov, this);
            }
            else
            {
                eventString += "someone else";
            }
            eventString += PrintParentCollection(link, pov);
            eventString += ".";
            return(eventString);
        }
Пример #2
0
        public override string Print(bool link = true, DwarfObject pov = null)
        {
            string eventString = GetYearTime();

            eventString += Trickster?.ToLink(link, pov) ?? "an unknown creature";
            eventString += " fooled ";
            eventString += Target?.ToLink(link, pov) ?? "an unknown civilization";
            eventString += " into believing ";
            eventString += Trickster?.ToLink(link, pov) ?? "an unknown creature";
            eventString += " was ";
            eventString += Identity.ToLink(link, pov);
            eventString += PrintParentCollection(link, pov);
            eventString += ".";
            return(eventString);
        }