mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-06-15 22:50:07 -04:00
Spoiler name removal (#3814)
* Initial pass * Rename "MK" to "Market" * Remove more spoiler names * Update location_list.cpp * Replace vector with array * Update location_list.cpp * Re-run build * Fix spacing
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include "Enhancements/randomizer/randomizerTypes.h"
|
||||
|
||||
std::vector<std::string> sceneNames = {
|
||||
"Inside the Deku Tree",
|
||||
@@ -303,6 +305,41 @@ std::vector<std::string> questItemNames = {
|
||||
"Gold Skulltula Token",
|
||||
};
|
||||
|
||||
std::array<std::string, RA_MAX> rcareaPrefixes = {
|
||||
"KF",
|
||||
"LW",
|
||||
"SFM",
|
||||
"HF",
|
||||
"LH",
|
||||
"GV",
|
||||
"GF",
|
||||
"Wasteland",
|
||||
"Colossus",
|
||||
"Market",
|
||||
"HC",
|
||||
"Kak",
|
||||
"Graveyard",
|
||||
"DMT",
|
||||
"GC",
|
||||
"DMC",
|
||||
"ZR",
|
||||
"ZD",
|
||||
"ZF",
|
||||
"LLR",
|
||||
"Deku Tree",
|
||||
"Dodongos Cavern",
|
||||
"Jabu Jabus Belly",
|
||||
"Forest Temple",
|
||||
"Fire Temple",
|
||||
"Water Temple",
|
||||
"Spirit Temple",
|
||||
"Shadow Temple",
|
||||
"Bottom of the Well",
|
||||
"Ice Cavern",
|
||||
"Gerudo Training Grounds",
|
||||
"Ganon's Castle",
|
||||
};
|
||||
|
||||
const std::string& SohUtils::GetSceneName(int32_t scene) {
|
||||
return sceneNames[scene];
|
||||
}
|
||||
@@ -315,6 +352,10 @@ const std::string& SohUtils::GetQuestItemName(int32_t item) {
|
||||
return questItemNames[item];
|
||||
}
|
||||
|
||||
const std::string& SohUtils::GetRandomizerCheckAreaPrefix(int32_t rcarea) {
|
||||
return rcareaPrefixes[rcarea];
|
||||
}
|
||||
|
||||
void SohUtils::CopyStringToCharArray(char* destination, std::string source, size_t size) {
|
||||
strncpy(destination, source.c_str(), size - 1);
|
||||
destination[size - 1] = '\0';
|
||||
|
||||
Reference in New Issue
Block a user