fix itempool size

This commit is contained in:
gymnast86
2026-05-15 03:39:44 -07:00
parent 0862408ee8
commit 56de23e2e6
3 changed files with 13 additions and 2 deletions
@@ -4,7 +4,6 @@
#include "search.hpp"
#include "../utility/random.hpp"
#include "../utility/string.hpp"
#include "../utility/time.hpp"
#include <iostream>
#include <algorithm>
@@ -528,9 +528,9 @@ namespace randomizer::logic::world
void World::PerformPreEntranceShuffleTasks()
{
this->PlaceVanillaItems();
this->SetNonProgressLocations();
this->SanitizeItemPool();
this->PlacePlandomizerItems();
this->SetNonProgressLocations();
}
void World::PlaceVanillaItems()
@@ -13,6 +13,10 @@
#include <iostream>
#include "SDL3/SDL_filesystem.h"
#include "dusk/app_info.hpp"
#include "dusk/logging.h"
namespace randomizer
{
std::optional<std::string> Randomizer::Generate()
@@ -45,6 +49,14 @@ namespace randomizer
this->_playthroughSpheres.clear();
this->_entranceSpheres.clear();
#if RANDOMIZER_ONLY
const auto result = SDL_GetPrefPath(dusk::OrgName, dusk::AppName);
if (!result)
DuskLog.fatal("Unable to get PrefPath: {}", SDL_GetError());
SetBaseOutputPath(result);
LoadConfig();
#endif
utility::platform::Log(std::string("Seed: ") + this->_config.GetSeed());
seedgen::config::SeedRNG(this->_config, true, false);