Example #1
0
        public override string ToLink(bool link = true, DwarfObject pov = null)
        {
            if (link)
            {
                string linkedString = "";
                if (pov != this)
                {
                    linkedString = "<a href = \"collection#" + this.ID + "\"><font color=\"800000\">" + "The " + this.GetOrdinal(Ordinal) + ConquerType + " of " + Site.ToLink(false) + "</font></a>";
                    if (pov != Battle)
                    {
                        linkedString += " as a result of " + Battle.ToLink();
                    }
                }
                else
                {
                    linkedString = "<font color=\"Blue\">" + "The " + this.GetOrdinal(Ordinal) + ConquerType + " of " + Site.ToLink(false) + "</font>";
                }

                return(linkedString);
            }
            else
            {
                return("The " + this.GetOrdinal(Ordinal) + ConquerType + " of " + Site.ToLink(false));
            }
        }
Example #2
0
        public override string ToLink(bool link = true, DwarfObject pov = null)
        {
            string name = "";

            name = "The " + GetOrdinal(Ordinal) + "rampage of ";
            if (Beast != null && pov == Beast)
            {
                name += Beast.ToLink(false, Beast);
            }
            else if (Beast != null)
            {
                name += Beast.Name;
            }
            else
            {
                name += "UNKNOWN BEAST";
            }
            if (pov != Site)
            {
                name += " in " + Site.ToLink(false);
            }
            if (link)
            {
                string linkedString = "";
                if (pov != this)
                {
                    string title = "Events: " + GetSubEvents().Count;

                    linkedString = "<a href = \"collection#" + this.ID + "\" title=\"" + title + "\"><font color=\"#336600\">" + name + "</font></a>";
                }
                else
                {
                    linkedString = "<font color=\"Blue\">" + name + "</font>";
                }
                return(linkedString);
            }
            else
            if (pov == this)
            {
                return("Rampage of " + Beast.ToLink(false, Beast));
            }
            return(name);
        }