private void Awake()
        {
            nameGenerator = new NameGenerator(namesJson);

            Generate();
        }
Ejemplo n.º 2
0
        private void Awake()
        {
            whiteBearlist = new int[] { 66, 67, 76, 77, 78, 79 };

            BrownBearlist = new int[] { 34, 35, 38, 39, 48, 52, 56, 58, 59, 60, 61, 62, 63 };

            youngbearlist = new int[] { 2, 3, 6, 7, 16, 20, 24, 25, 26, 27, 28, 29, 30, 31 };
            womanBodylist = new int[] { 1, 3, 5, 7 };
            manBodylist   = new int[] { 0, 2, 4, 6 };

            woman_whiteBearlist = new int[] { 65, 69, 70, 71 };
            woman_BrownBearlist = new int[] { 33, 41, 42, 43 };
            woman_youngbearlist = new int[] { 1, 5, 9, 10, 11, 13, 14, 15 };
            cautionhead         = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23 };
            curioushead         = new int[] { 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 };

            orgnized_man_chestlist     = new int[] { 1, 2, 4, 5, 6, 8, 14, 16, 18, 20, 38 };
            unorgnized_man_chestlist   = new int[] { 4, 8, 13, 17, 40, 73, 77, 81, 113, 115 };
            orgnized_woman_chestlist   = new int[] { 3, 7, 9, 10, 12, 22, 24, 25, 26, 29, 30, 33, 34, 37, 38, 39, 47 };
            unorgnized_woman_chestlist = new int[] { 27, 28, 31, 32, 35, 36, 48 };
            nameGenerator = new NameGenerator(namesJson);
            for (int i = 0; i < hairSprites.Count; i++)
            {
                hairtraits.Add(new int[] { 1, 20, 5, 5, 5, 5, 5 });
            }
            for (int i = 0; i < bodySprites.Count; i++)
            {
                bodytraits.Add(new int[] { 1, 20, 5, 5, 5, 5, 5 });
            }
            for (int i = 0; i < headSprites.Count; i++)
            {
                headtraits.Add(new int[] { 1, 20, 5, 5, 5, 5, 5 });
            }
            for (int i = 0; i < chestSprites.Count; i++)
            {
                chesttraits.Add(new int[] { 1, 20, 5, 5, 5, 5, 5 });
            }
            for (int i = 0; i < legsSprites.Count; i++)
            {
                legstraits.Add(new int[] { 1, 20, 5, 5, 5, 5, 5 });
            }
            for (int i = 0; i < feetSprites.Count; i++)
            {
                feettraits.Add(new int[] { 1, 20, 5, 5, 5, 5, 5 });
            }
            for (int i = 0; i < weaponSprites.Count; i++)
            {
                weapontraits.Add(new int[] { 1, 20, 5, 5, 5, 5, 5 });
            }
            for (int i = 0; i < shieldSprites.Count; i++)
            {
                shieldtraits.Add(new int[] { 1, 20, 5, 5, 5, 5, 5 });
            }


            //hair
            for (int i = 64; i < 80; i++)
            {
                hairtraits[i][1] = 50;
            }
            for (int i = 32; i < 64; i++)
            {
                hairtraits[i][1] = 35;
            }
            for (int i = 0; i < 32; i++)
            {
                hairtraits[i][1] = 20;
            }

            int[] male = { 3, 4, 7, 8, 17, 21, 25, 26, 27, 28, 29, 30, 31, 32 };
            for (int i = 0; i < male.Length; i++)
            {
                hairtraits[male[i] - 1][0]  = 1;
                hairtraits[male[i] + 31][0] = 1;
            }
            hairtraits[66][0] = 1;
            hairtraits[67][0] = 1;
            hairtraits[76][0] = 1;
            hairtraits[77][0] = 1;
            hairtraits[78][0] = 1;
            hairtraits[79][0] = 1;


            //chest
            int[] rd = new int[] { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 };
            for (int i = 0; i < chestSprites.Count; i++)
            {
                chesttraits[i][2] = rd.GetRandom();
                chesttraits[i][3] = rd.GetRandom();
                chesttraits[i][4] = rd.GetRandom();
                chesttraits[i][5] = rd.GetRandom();
                chesttraits[i][6] = rd.GetRandom();
            }
            ;


            traits.gender = 0;            // 1 male; 0 female
            traits.Age    = 25;

            traits.O = 6;
            traits.C = 6;
            traits.E = 6;
            traits.A = 6;
            traits.N = 6;
        }