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); }
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(); } } }
public void SetBarKeep(NPCS NewBarKeep) { BarKeep = NewBarKeep; }
public Tavern() { Name = ProGen.NameGenerator(null, null); BarKeep = new NPCS(); Patrons = ProGen.GenerateNPCS(DiceRoller.RandomRange(2, 5)); }
public void SetNPC(NPCS NewNPC) { ShopKeep = NewNPC; }