private static void SetupBestiary(CancellationToken token) { //Beastiary DB var bestiaryDatabase = new BestiaryDatabase(); new BestiaryDatabaseNPCsPopulator().Populate(bestiaryDatabase); Main.BestiaryDB = bestiaryDatabase; ContentSamples.RebuildBestiarySortingIDsByBestiaryDatabaseContents(bestiaryDatabase); //Drops DB var itemDropDatabase = new ItemDropDatabase(); itemDropDatabase.Populate(); Main.ItemDropsDB = itemDropDatabase; //Update the bestiary DB with the drops DB. bestiaryDatabase.Merge(Main.ItemDropsDB); //Etc if (!Main.dedServ) { Main.BestiaryUI = new UIBestiaryTest(Main.BestiaryDB); } Main.ItemDropSolver = new ItemDropResolver(itemDropDatabase); Main.BestiaryTracker = new BestiaryUnlocksTracker(); }