Beispiel #1
0
    public void Create()
    {
        Mother = Zeus.Current.Mother;
        Father = Zeus.Current.Father;

        #region Sexuality
        Sexuality = Sexuality.NULL;
        Gender    = (Random.value > 0.5f) ? Gender.MALE : Gender.FEMALE;
        #endregion

        IsAdopted = (Zeus.Current.Mother.Gender == Zeus.Current.Father.Gender);

        #region Basic Stats
        Happiness  = 100f;
        Appearance = 50f;
        Fitness    = 5f;
        Intellect  = 5f;
        #endregion

        Age = -1;

        #region Nationalitiy
        Nationality = (Random.value > 0.5f) ? Mother.Nationality : Father.Nationality;
        #endregion

        Money = 100 * Nationality.CurrencyMultiplier;

        Money = 1000000000000;

        // Check
        // ProcessDiseases (true);

        Zeus.ResetOutput();

        Zeus.QueueToOutput("————————————————————");

        Zeus.QueueToOutput(string.Format("You are <b>{0} {1}</b>.", FirstName, LastName));
        Zeus.QueueToOutput(string.Format("You are born <b>{0}</b>.", Zeus.ToTitleCase(Gender.ToString().ToLower())));
        Zeus.QueueToOutput(string.Format("You were born in <b>{0}</b>, your nationality is <b>{1}</b>.", Nationality.CountryName, Nationality.Demonym));

        Zeus.QueueToOutput(string.Format("Your Mother is: <b>{0} {1}</b>, " + ((Mother.Gender == Gender.FEMALE) ? "her" : "his") + " nationality is <b>{2}</b>.", Mother.FirstName, Mother.LastName, Mother.Nationality.Demonym));
        Zeus.QueueToOutput(string.Format("Your Father is: <b>{0} {1}</b>, " + ((Father.Gender == Gender.FEMALE) ? "her" : "his") + " nationality is <b>{2}</b>.", Father.FirstName, Father.LastName, Father.Nationality.Demonym));
        if (IsAdopted)
        {
            Zeus.QueueToOutput(string.Format("<b>You are adopted.</b>"));
        }

        Zeus.QueueToOutput("————————————————————");
        Zeus.QueueToOutput();

        MajorEvents.Add(new MajorEvent("Born", 0,
                                       string.Format("You were born. You are a <b>{0}</b>. Your nationality is <b>{1}</b>. Your Mother is <b>{2}</b> and your Father is <b>{3}</b>.",
                                                     FirstName + " " + LastName,
                                                     Nationality.Demonym,
                                                     Mother.FirstName + " " + Mother.LastName,
                                                     Father.FirstName + " " + Father.LastName),
                                       Zeus.Current.Player.IncrementLastIndexMajorEvent())
                        );

        Houses.GenerateSomeHouses(21);

        ProcessAging();
    }