예제 #1
0
        public Npc CreateRandomNPC()
        {
            Npc npc = new Npc();
            ABS abs = new ABS();

            npc.name            = npc.randName();
            npc.characteristics = npc.randCharacteristics();
            npc.abilityScores   = abs.randomABS();
            return(npc);
        }
        public Pc CreateRandomNPC()
        {
            Pc  npc = new Pc();
            ABS abs = new ABS();

            npc.name              = npc.randName();
            npc.characteristics   = npc.randCharacteristics();
            npc.abilityScores     = abs.randomABS();
            npc.race_name         = npc.randRace();
            npc.items             = _itemStorage.GetRandomItems();
            npc.weapons           = _weaponStorage.GetRandomWeapons();
            npc.skills            = _baseStorage.GetRandomSkills();
            npc.experience        = _random.Next(2000);
            npc.level             = _random.Next(20);
            npc.hit_points        = _random.Next(95);
            npc.proficiency_score = _random.Next(5);
            npc.playerClasses     = _baseStorage.GetRandomClass();
            return(npc);
        }