mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-01 08:05: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:
parent
d0627dc737
commit
8e520e490c
@ -108,6 +108,17 @@ Rando::Location Rando::Location::Base(RandomizerCheck rc, RandomizerCheckQuest q
|
|||||||
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::Base(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_,
|
||||||
|
uint8_t flag_, std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey, const RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories, SpoilerCollectionCheck collectionCheck,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::Base, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
Rando::Location Rando::Location::Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
||||||
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -121,6 +132,19 @@ Rando::Location Rando::Location::Chest(RandomizerCheck rc, RandomizerCheckQuest
|
|||||||
collectionCheckGroup};
|
collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
||||||
|
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey,
|
||||||
|
const RandomizerGet vanillaItem, std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::Chest, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_,
|
||||||
|
SpoilerCollectionCheck(SPOILER_CHK_CHEST, scene_, flag_),
|
||||||
|
collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
Rando::Location Rando::Location::Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
||||||
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -133,6 +157,18 @@ Rando::Location Rando::Location::Chest(RandomizerCheck rc, RandomizerCheckQuest
|
|||||||
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
||||||
|
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey,
|
||||||
|
const RandomizerGet vanillaItem, std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheck collectionCheck,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::Chest, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::Collectable(
|
Rando::Location Rando::Location::Collectable(
|
||||||
RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -145,6 +181,18 @@ Rando::Location Rando::Location::Collectable(
|
|||||||
collectionCheckGroup};
|
collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::Collectable(
|
||||||
|
RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey, const RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories, SpoilerCollectionCheckGroup collectionCheckGroup, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::Collectable, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_,
|
||||||
|
SpoilerCollectionCheck(SPOILER_CHK_COLLECTABLE, scene_, flag_),
|
||||||
|
collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
Rando::Location Rando::Location::Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
@ -160,6 +208,21 @@ Rando::Location Rando::Location::Collectable(RandomizerCheck rc, RandomizerCheck
|
|||||||
collectionCheckGroup};
|
collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
|
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
|
std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey, const RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories, const uint8_t collectFlag_,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup,
|
||||||
|
bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::Collectable, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_,
|
||||||
|
SpoilerCollectionCheck(SPOILER_CHK_COLLECTABLE, scene_, collectFlag_),
|
||||||
|
collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
Rando::Location Rando::Location::Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
@ -173,6 +236,19 @@ Rando::Location Rando::Location::Collectable(RandomizerCheck rc, RandomizerCheck
|
|||||||
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
|
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
|
std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey, const RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories, SpoilerCollectionCheck collectionCheck,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup,
|
||||||
|
bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::Collectable, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
Rando::Location Rando::Location::GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
std::string&& spoilerName_, const RandomizerHintTextKey hintKey,
|
std::string&& spoilerName_, const RandomizerHintTextKey hintKey,
|
||||||
@ -185,6 +261,18 @@ Rando::Location Rando::Location::GSToken(RandomizerCheck rc, RandomizerCheckQues
|
|||||||
collectionCheckGroup};
|
collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey,
|
||||||
|
std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, RCTYPE_SKULL_TOKEN, area_, LocationType::GSToken, ACTOR_EN_SI, scene_, actorParams_,
|
||||||
|
flag_, std::move(shortName_), hintKey, RG_GOLD_SKULLTULA_TOKEN,
|
||||||
|
std::move(categories), isVanillaCompletion_,
|
||||||
|
SpoilerCollectionCheck(SPOILER_CHK_GOLD_SKULLTULA, scene_, flag_),
|
||||||
|
collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
Rando::Location Rando::Location::GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
std::string&& spoilerName_, const RandomizerHintTextKey hintKey,
|
std::string&& spoilerName_, const RandomizerHintTextKey hintKey,
|
||||||
@ -197,6 +285,18 @@ Rando::Location Rando::Location::GSToken(RandomizerCheck rc, RandomizerCheckQues
|
|||||||
collectionCheckGroup};
|
collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey,
|
||||||
|
std::vector<Category>&& categories, const uint8_t skullScene_,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, RCTYPE_SKULL_TOKEN, area_, LocationType::GSToken, ACTOR_EN_SI, scene_, actorParams_,
|
||||||
|
flag_, std::move(shortName_), hintKey, RG_GOLD_SKULLTULA_TOKEN,
|
||||||
|
std::move(categories), isVanillaCompletion_,
|
||||||
|
SpoilerCollectionCheck(SPOILER_CHK_GOLD_SKULLTULA, skullScene_, flag_),
|
||||||
|
collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::GrottoScrub(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
Rando::Location Rando::Location::GrottoScrub(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
@ -210,6 +310,19 @@ Rando::Location Rando::Location::GrottoScrub(RandomizerCheck rc, RandomizerCheck
|
|||||||
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::GrottoScrub(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
|
RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
|
std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey, const RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories, SpoilerCollectionCheck collectionCheck,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup,
|
||||||
|
bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::GrottoScrub, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::Delayed(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
Rando::Location Rando::Location::Delayed(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
RandomizerCheckType checkType_, RandomizerCheckArea area_, ActorID actorId_,
|
RandomizerCheckType checkType_, RandomizerCheckArea area_, ActorID actorId_,
|
||||||
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -222,6 +335,18 @@ Rando::Location Rando::Location::Delayed(RandomizerCheck rc, RandomizerCheckQues
|
|||||||
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::Delayed(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
|
RandomizerCheckType checkType_, RandomizerCheckArea area_, ActorID actorId_,
|
||||||
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey,
|
||||||
|
const RandomizerGet vanillaItem, std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheck collectionCheck,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::Delayed, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::Reward(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
Rando::Location Rando::Location::Reward(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
||||||
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -234,6 +359,18 @@ Rando::Location Rando::Location::Reward(RandomizerCheck rc, RandomizerCheckQuest
|
|||||||
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::Reward(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
||||||
|
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey,
|
||||||
|
const RandomizerGet vanillaItem, std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheck collectionCheck,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::TempleReward, actorId_, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), hintKey, vanillaItem, std::move(categories),
|
||||||
|
isVanillaCompletion_, collectionCheck, collectionCheckGroup};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::OtherHint(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
Rando::Location Rando::Location::OtherHint(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
RandomizerCheckType checkType_, RandomizerCheckArea area_, ActorID actorId_,
|
RandomizerCheckType checkType_, RandomizerCheckArea area_, ActorID actorId_,
|
||||||
uint8_t scene_,
|
uint8_t scene_,
|
||||||
@ -243,6 +380,15 @@ Rando::Location Rando::Location::OtherHint(RandomizerCheck rc, RandomizerCheckQu
|
|||||||
std::move(shortName_), std::move(spoilerName_), RHT_NONE, RG_NONE, {}, isVanillaCompletion_};
|
std::move(shortName_), std::move(spoilerName_), RHT_NONE, RG_NONE, {}, isVanillaCompletion_};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::OtherHint(RandomizerCheck rc, RandomizerCheckQuest quest_,
|
||||||
|
RandomizerCheckType checkType_, RandomizerCheckArea area_, ActorID actorId_,
|
||||||
|
uint8_t scene_,
|
||||||
|
std::string&& shortName_,
|
||||||
|
bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, checkType_, area_, LocationType::OtherHint, actorId_, scene_, 0x00, 0x00,
|
||||||
|
std::move(shortName_), RHT_NONE, RG_NONE, {}, isVanillaCompletion_};
|
||||||
|
}
|
||||||
|
|
||||||
Rando::Location Rando::Location::HintStone(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
Rando::Location Rando::Location::HintStone(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
std::string&& shortName_, std::string&& spoilerName_,
|
std::string&& shortName_, std::string&& spoilerName_,
|
||||||
@ -251,3 +397,12 @@ Rando::Location Rando::Location::HintStone(RandomizerCheck rc, RandomizerCheckQu
|
|||||||
std::move(shortName_), std::move(spoilerName_), RHT_NONE, RG_NONE, std::move(categories),
|
std::move(shortName_), std::move(spoilerName_), RHT_NONE, RG_NONE, std::move(categories),
|
||||||
isVanillaCompletion_};
|
isVanillaCompletion_};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rando::Location Rando::Location::HintStone(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
|
std::string&& shortName_,
|
||||||
|
std::vector<Category>&& categories, bool isVanillaCompletion_) {
|
||||||
|
return {rc, quest_, RCTYPE_GOSSIP_STONE, area_, LocationType::Base, ACTOR_EN_GS, scene_, actorParams_, flag_,
|
||||||
|
std::move(shortName_), RHT_NONE, RG_NONE, std::move(categories),
|
||||||
|
isVanillaCompletion_};
|
||||||
|
}
|
@ -10,6 +10,7 @@
|
|||||||
#include "randomizerTypes.h"
|
#include "randomizerTypes.h"
|
||||||
#include "z64actor_enum.h"
|
#include "z64actor_enum.h"
|
||||||
#include "z64scene.h"
|
#include "z64scene.h"
|
||||||
|
#include "../../util.h"
|
||||||
|
|
||||||
namespace Rando {
|
namespace Rando {
|
||||||
class SpoilerCollectionCheck {
|
class SpoilerCollectionCheck {
|
||||||
@ -110,6 +111,24 @@ class Location {
|
|||||||
isVanillaCompletion(isVanillaCompletion_), collectionCheck(collectionCheck_),
|
isVanillaCompletion(isVanillaCompletion_), collectionCheck(collectionCheck_),
|
||||||
collectionCheckGroup(collectionCheckGroup_) {
|
collectionCheckGroup(collectionCheckGroup_) {
|
||||||
}
|
}
|
||||||
|
Location(const RandomizerCheck rc_, const RandomizerCheckQuest quest_, const RandomizerCheckType checkType_,
|
||||||
|
const RandomizerCheckArea area_, const LocationType locationType_, const ActorID actorId_, const uint8_t scene_,
|
||||||
|
const int32_t actorParams_, const uint8_t flag_, std::string shortName_,
|
||||||
|
const RandomizerHintTextKey hintKey_, const RandomizerGet vanillaItem_, std::vector<Category> categories_,
|
||||||
|
const bool isVanillaCompletion_ = false, const SpoilerCollectionCheck collectionCheck_ = SpoilerCollectionCheck(),
|
||||||
|
const SpoilerCollectionCheckGroup collectionCheckGroup_ = GROUP_NO_GROUP)
|
||||||
|
: rc(rc_), quest(quest_), checkType(checkType_), area(area_), locationType(locationType_), actorId(actorId_),
|
||||||
|
scene(scene_), actorParams(actorParams_), flag(flag_), shortName(shortName_),
|
||||||
|
spoilerName(SpoilerNameFromShortName(shortName_, area_)), hintKey(hintKey_), vanillaItem(vanillaItem_), categories(std::move(categories_)),
|
||||||
|
isVanillaCompletion(isVanillaCompletion_), collectionCheck(collectionCheck_),
|
||||||
|
collectionCheckGroup(collectionCheckGroup_) {}
|
||||||
|
|
||||||
|
static std::string SpoilerNameFromShortName(std::string shortName, RandomizerCheckArea area) {
|
||||||
|
if (area < 0 || area >= RCAREA_INVALID) {
|
||||||
|
return shortName;
|
||||||
|
}
|
||||||
|
return SohUtils::GetRandomizerCheckAreaPrefix(area) + " " + shortName;
|
||||||
|
}
|
||||||
|
|
||||||
RandomizerCheck GetRandomizerCheck() const;
|
RandomizerCheck GetRandomizerCheck() const;
|
||||||
SpoilerCollectionCheck GetCollectionCheck() const;
|
SpoilerCollectionCheck GetCollectionCheck() const;
|
||||||
@ -144,6 +163,15 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = false);
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location Base(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_,
|
||||||
|
uint8_t flag_, std::string&& shortName_,
|
||||||
|
RandomizerHintTextKey hintKey, RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheck collectionCheck = SpoilerCollectionCheck(),
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -152,6 +180,14 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = false);
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
RandomizerHintTextKey hintKey, RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -160,6 +196,14 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = false);
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
Chest(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
RandomizerHintTextKey hintKey, RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories, SpoilerCollectionCheck collectionCheck = SpoilerCollectionCheck(),
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
@ -168,6 +212,14 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = false);
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
|
std::string&& shortName_, RandomizerHintTextKey hintKey,
|
||||||
|
RandomizerGet vanillaItem, std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
@ -176,6 +228,14 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = false);
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
|
std::string&& shortName_, RandomizerHintTextKey hintKey,
|
||||||
|
RandomizerGet vanillaItem, std::vector<Category>&& categories, uint8_t collectFlag_,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
@ -185,6 +245,15 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = false);
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
Collectable(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
|
std::string&& shortName_, RandomizerHintTextKey hintKey,
|
||||||
|
RandomizerGet vanillaItem, std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheck collectionCheck = SpoilerCollectionCheck(),
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -192,8 +261,15 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = true);
|
bool isVanillaCompletion_ = true);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
RandomizerHintTextKey hintKey, std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = true);
|
||||||
|
|
||||||
/// @brief For certain scenes, the sceneId and the "Scene" in spoiler collection check later used to check the
|
/// @brief For certain scenes, the sceneId and the "Scene" in spoiler collection check later used to check the
|
||||||
/// GS flags don't necessarily match. Use this constructor for those. scene_ should be the actual scene where
|
/// GS flags don't necessarily match. Use this constructor (or the next one) for those. scene_ should be the actual scene where
|
||||||
/// the GS is located, skullScene_ is the value passed to GET_GS_FLAGS to get the correct skulltula. It is normal
|
/// the GS is located, skullScene_ is the value passed to GET_GS_FLAGS to get the correct skulltula. It is normal
|
||||||
/// and expected that these don't always match, and the naming is a holdover from 3drando.
|
/// and expected that these don't always match, and the naming is a holdover from 3drando.
|
||||||
/// @param rc
|
/// @param rc
|
||||||
@ -218,6 +294,14 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = true);
|
bool isVanillaCompletion_ = true);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
GSToken(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_,
|
||||||
|
uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
RandomizerHintTextKey hintKey, std::vector<Category>&& categories,
|
||||||
|
uint8_t skullScene_,
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = true);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
GrottoScrub(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
GrottoScrub(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
@ -227,6 +311,15 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = false);
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
GrottoScrub(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_,
|
||||||
|
std::string&& shortName_, RandomizerHintTextKey hintKey,
|
||||||
|
RandomizerGet vanillaItem, std::vector<Category>&& categories,
|
||||||
|
SpoilerCollectionCheck collectionCheck = SpoilerCollectionCheck(),
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
Delayed(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
Delayed(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -235,6 +328,14 @@ class Location {
|
|||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
bool isVanillaCompletion_ = false);
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
Delayed(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
RandomizerHintTextKey hintKey, RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories, SpoilerCollectionCheck collectionCheck = SpoilerCollectionCheck(),
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP,
|
||||||
|
bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location
|
static Location
|
||||||
Reward(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
Reward(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
@ -242,14 +343,29 @@ class Location {
|
|||||||
std::vector<Category>&& categories, SpoilerCollectionCheck collectionCheck = SpoilerCollectionCheck(),
|
std::vector<Category>&& categories, SpoilerCollectionCheck collectionCheck = SpoilerCollectionCheck(),
|
||||||
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP, bool isVanillaCompletion_ = false);
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP, bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location
|
||||||
|
Reward(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_, RandomizerCheckArea area_,
|
||||||
|
ActorID actorId_, uint8_t scene_, int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
RandomizerHintTextKey hintKey, RandomizerGet vanillaItem,
|
||||||
|
std::vector<Category>&& categories, SpoilerCollectionCheck collectionCheck = SpoilerCollectionCheck(),
|
||||||
|
SpoilerCollectionCheckGroup collectionCheckGroup = GROUP_NO_GROUP, bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location OtherHint(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
static Location OtherHint(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
||||||
std::string&& shortName_, std::string&& spoilerName_, bool isVanillaCompletion_ = false);
|
std::string&& shortName_, std::string&& spoilerName_, bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location OtherHint(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckType checkType_,
|
||||||
|
RandomizerCheckArea area_, ActorID actorId_, uint8_t scene_,
|
||||||
|
std::string&& shortName_, bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
static Location HintStone(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_, uint8_t scene_,
|
static Location HintStone(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_, uint8_t scene_,
|
||||||
int32_t actorParams_, uint8_t flag_, std::string&& shortName_, std::string&& spoilerName_,
|
int32_t actorParams_, uint8_t flag_, std::string&& shortName_, std::string&& spoilerName_,
|
||||||
std::vector<Category>&& categories, bool isVanillaCompletion_ = false);
|
std::vector<Category>&& categories, bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
|
static Location HintStone(RandomizerCheck rc, RandomizerCheckQuest quest_, RandomizerCheckArea area_, uint8_t scene_,
|
||||||
|
int32_t actorParams_, uint8_t flag_, std::string&& shortName_,
|
||||||
|
std::vector<Category>&& categories, bool isVanillaCompletion_ = false);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RandomizerCheck rc;
|
RandomizerCheck rc;
|
||||||
RandomizerCheckQuest quest;
|
RandomizerCheckQuest quest;
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -3,6 +3,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
#include <array>
|
||||||
|
#include "Enhancements/randomizer/randomizerTypes.h"
|
||||||
|
|
||||||
std::vector<std::string> sceneNames = {
|
std::vector<std::string> sceneNames = {
|
||||||
"Inside the Deku Tree",
|
"Inside the Deku Tree",
|
||||||
@ -303,6 +305,41 @@ std::vector<std::string> questItemNames = {
|
|||||||
"Gold Skulltula Token",
|
"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) {
|
const std::string& SohUtils::GetSceneName(int32_t scene) {
|
||||||
return sceneNames[scene];
|
return sceneNames[scene];
|
||||||
}
|
}
|
||||||
@ -315,6 +352,10 @@ const std::string& SohUtils::GetQuestItemName(int32_t item) {
|
|||||||
return questItemNames[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) {
|
void SohUtils::CopyStringToCharArray(char* destination, std::string source, size_t size) {
|
||||||
strncpy(destination, source.c_str(), size - 1);
|
strncpy(destination, source.c_str(), size - 1);
|
||||||
destination[size - 1] = '\0';
|
destination[size - 1] = '\0';
|
||||||
|
@ -9,6 +9,8 @@ namespace SohUtils {
|
|||||||
|
|
||||||
const std::string& GetQuestItemName(int32_t item);
|
const std::string& GetQuestItemName(int32_t item);
|
||||||
|
|
||||||
|
const std::string& GetRandomizerCheckAreaPrefix(int32_t rcarea);
|
||||||
|
|
||||||
// Copies a string and ensures the destination is null terminated if the source string is larger than size
|
// Copies a string and ensures the destination is null terminated if the source string is larger than size
|
||||||
// Only up to size-1 characters are copied from the source string
|
// Only up to size-1 characters are copied from the source string
|
||||||
void CopyStringToCharArray(char* destination, std::string source, size_t size);
|
void CopyStringToCharArray(char* destination, std::string source, size_t size);
|
||||||
|
Loading…
Reference in New Issue
Block a user