mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 22:33:43 -07:00
Merge branch 'testing-out-item-replacement' into testing-out-item-replacement-melon
This commit is contained in:
commit
60be37fce5
1 changed files with 1 additions and 0 deletions
|
@ -510,6 +510,7 @@ std::unordered_map<std::string, RandomizerGet> SpoilerfileGetNameToEnum = {
|
||||||
void Randomizer::PopulateItemLocations(std::string spoilerFileName) {
|
void Randomizer::PopulateItemLocations(std::string spoilerFileName) {
|
||||||
// todo pull this in from cvar or something
|
// todo pull this in from cvar or something
|
||||||
std::ifstream spoilerFileStream("spoiler.json");
|
std::ifstream spoilerFileStream("spoiler.json");
|
||||||
|
if (!spoilerFileStream) return;
|
||||||
json spoilerFileJson;
|
json spoilerFileJson;
|
||||||
spoilerFileStream >> spoilerFileJson;
|
spoilerFileStream >> spoilerFileJson;
|
||||||
json locationsJson = spoilerFileJson["locations"];
|
json locationsJson = spoilerFileJson["locations"];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue