mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-07 11:27:26 -04:00
fix itempool size
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user