Exemplo n.º 1
0
        protected override ManagerStory.Story PrintFormattedStory(StoryProgressionObject manager, string text, string summaryKey, object[] parameters, string[] extended, ManagerStory.StoryLogging logging)
        {
            if (Sim.Species == CASAgeGenderFlags.Human)
            {
                text = AgingManager.LocalizeString(Sim.IsFemale, "AgeTo" + Sim.Age, new object[] { Sim });
            }
            else if (Sim.IsADogSpecies)
            {
                text = Common.Localize("AgeUpDog:" + Sim.Age, Sim.IsFemale, new object[] { Sim });
            }
            else
            {
                text = Common.Localize("AgeUp" + Sim.Species + ":" + Sim.Age, Sim.IsFemale, new object[] { Sim });
            }

            if (string.IsNullOrEmpty(text))
            {
                return(null);
            }

            if (parameters == null)
            {
                parameters = new object[] { Sim };
            }

            if (extended == null)
            {
                extended = new string[] { Common.LocalizeEAString("UI/Feedback/CAS:" + Sim.Age) };
            }

            logging |= ManagerStory.StoryLogging.Full;

            return(base.PrintFormattedStory(manager, text, summaryKey, parameters, extended, logging));
        }