Exemplo n.º 1
0
    Boi GenerateBoi()
    {
        Boi    newBoi = new Boi();
        int    age    = Random.Range(16, 22);
        int    sexNum = Random.Range(0, 2);
        string name   = "";
        string sex    = "";

        if (sexNum == 0)
        {
            name = nameWizard.RandomFemaleName() + " " + nameWizard.RandomLastName();
            sex  = "F";
        }
        else if (sexNum == 1)
        {
            name = nameWizard.RandomMaleName() + " " + nameWizard.RandomLastName();
            sex  = "M";
        }

        newBoi.callsign = nameWizard.RandomNoun();
        newBoi.name     = name;
        newBoi.sex      = sex;
        newBoi.age      = age;
        newBoi.GenerateStartingStats();

        return(newBoi);
    }
Exemplo n.º 2
0
    //maybe stats later

    // Use this for initialization
    public Character()
    {
        NameWizard nameWizard = GameObject.Find("NameWizard").GetComponent <NameWizard> ();
        int        gender     = Random.Range(0, 2);

        if (gender == 0)
        {
            firstName = nameWizard.RandomFemaleName();
        }
        else
        {
            firstName = nameWizard.RandomMaleName();
        }
        lastName   = nameWizard.RandomMaleName();
        profession = "vagrant";
    }
Exemplo n.º 3
0
    // Use this for initialization
    public Naut()
    {
        NameWizard nameWizard = GameObject.Find("NameWizard").GetComponent <NameWizard>();

        age    = Random.Range(18, 35);
        skills = new List <Skill>();
        int genderChoice = Random.Range(0, 2);

        if (genderChoice < 1)
        {
            gender = "female";
            name   = nameWizard.RandomFemaleName() + " " + nameWizard.RandomLastName();
            height = Random.Range(145, 178);
            weight = (int)(45 + 2.3f * ((height - 149) / 2.5));
            weight = (int)(weight * Random.Range(.85f, 1.15f));
        }
        else
        {
            gender = "male";
            name   = nameWizard.RandomMaleName() + " " + nameWizard.RandomLastName();
            height = Random.Range(162, 191);
            weight = (int)(50 + 2.3f * ((height - 150) / 2.5));
            weight = (int)(weight * Random.Range(.85f, 1.15f));
        }
        int training = Random.Range(0, 3);

        switch (training)
        {
        case 0:
            skills.Add(new Skill(Skill.SkillNum.Engineering));
            break;

        case 1:
            skills.Add(new Skill(Skill.SkillNum.Programming));
            break;

        case 2:
            skills.Add(new Skill(Skill.SkillNum.Combat_Training));
            break;

        default:
            skills.Add(new Skill(Skill.SkillNum.Combat_Training));
            break;
        }
    }