예제 #1
0
        public override string Print(bool link = true, DwarfObject pov = null)
        {
            string eventString = GetYearTime();

            switch (FormType)
            {
            case FormType.Musical:
                eventString += ArtForm != null?ArtForm.ToLink(link, pov, this) : "UNKNOWN MUSICAL FORM ";

                break;

            case FormType.Poetic:
                eventString += ArtForm != null?ArtForm.ToLink(link, pov, this) : "UNKNOWN POETIC FORM ";

                break;

            case FormType.Dance:
                eventString += ArtForm != null?ArtForm.ToLink(link, pov, this) : "UNKNOWN DANCE FORM ";

                break;

            default:
                eventString += "UNKNOWN FORM ";
                break;
            }
            eventString += " was created by ";
            eventString += HistoricalFigure.ToLink(link, pov, this);
            if (Site != null)
            {
                eventString += " in ";
                eventString += Site.ToLink(link, pov, this);
            }
            if (GlorifiedHf != null)
            {
                eventString += " in order to glorify " + GlorifiedHf.ToLink(link, pov, this);
            }
            if (!string.IsNullOrWhiteSpace(Circumstance))
            {
                if (PrayToHf != null)
                {
                    eventString += " after praying to " + PrayToHf.ToLink(link, pov, this);
                }
                else
                {
                    eventString += " after a " + Circumstance;
                }
            }
            eventString += ".";
            return(eventString);
        }
        public override string Print(bool link = true, DwarfObject pov = null)
        {
            string eventString = GetYearTime();

            eventString += WrittenContent != null?WrittenContent.ToLink(link, pov) : "UNKNOWN WRITTEN CONTENT";

            eventString += " was authored by ";
            eventString += HistoricalFigure.ToLink(link, pov);
            if (Site != null)
            {
                eventString += " in ";
                eventString += Site.ToLink(link, pov);
            }
            if (GlorifiedHf != null)
            {
                eventString += " in order to glorify " + GlorifiedHf.ToLink(link, pov);
            }
            if (!string.IsNullOrWhiteSpace(Circumstance))
            {
                if (CircumstanceHf != null)
                {
                    switch (Circumstance)
                    {
                    case "pray to hf":
                        eventString += " after praying to " + CircumstanceHf.ToLink(link, pov);
                        break;

                    case "dream about hf":
                        eventString += " after dreaming of " + CircumstanceHf.ToLink(link, pov);
                        break;
                    }
                }
                else
                {
                    eventString += " after a " + Circumstance;
                }
            }
            eventString += ".";
            return(eventString);
        }