コード例 #1
0
        public static List <NPCS> GenerateNPCS(int NPCNumber)
        {
            List <NPCS> NPCS = new List <NPCS>();

            NPCS[] Temp = new NPCS[NPCNumber];
            for (int x = 0; x < NPCNumber; x++)
            {
                Temp[x] = new NPCS();
                NPCS.Add(Temp[x]);
            }
            return(NPCS);
        }
コード例 #2
0
 public Stores()
 {
     SType    = ProGen.GenerateStoreType();
     ShopKeep = new NPCS();
     Name     = ProGen.NameGenerator(SType, ShopKeep.GetName());
     foreach (Stores Store in ProGen.GetStoreTypes())
     {
         if (Store.SType == SType)
         {
             WeaponStock = Store.GetWeaponStock();
             ArmourStock = Store.GetArmourStock();
             PotionStock = Store.GetPotionStock();
         }
     }
 }
コード例 #3
0
 public void SetBarKeep(NPCS NewBarKeep)
 {
     BarKeep = NewBarKeep;
 }
コード例 #4
0
 public Tavern()
 {
     Name    = ProGen.NameGenerator(null, null);
     BarKeep = new NPCS();
     Patrons = ProGen.GenerateNPCS(DiceRoller.RandomRange(2, 5));
 }
コード例 #5
0
 public void SetNPC(NPCS NewNPC)
 {
     ShopKeep = NewNPC;
 }