Fix Ganondorf hint formatting (#6331)
This commit is contained in:
@@ -38,7 +38,6 @@ void BuildGanondorfHint(uint16_t* textId, bool* loadFromMessageTable) {
|
|||||||
msg = RAND_GET_HINT(RH_GANONDORF_HINT)->GetHintMessage(MF_AUTO_FORMAT, 0);
|
msg = RAND_GET_HINT(RH_GANONDORF_HINT)->GetHintMessage(MF_AUTO_FORMAT, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
msg.AutoFormat();
|
|
||||||
msg.LoadIntoFont();
|
msg.LoadIntoFont();
|
||||||
*loadFromMessageTable = false;
|
*loadFromMessageTable = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -130,14 +130,8 @@ void Hint::FillGapsInData() {
|
|||||||
if (locations.size() == 0 && StaticData::staticHintInfoMap.contains(ownKey)) {
|
if (locations.size() == 0 && StaticData::staticHintInfoMap.contains(ownKey)) {
|
||||||
locations = StaticData::staticHintInfoMap[ownKey].targetChecks;
|
locations = StaticData::staticHintInfoMap[ownKey].targetChecks;
|
||||||
}
|
}
|
||||||
bool fillAreas = true;
|
bool fillAreas = areas.size() == 0;
|
||||||
bool fillItems = true;
|
bool fillItems = items.size() == 0;
|
||||||
if (areas.size() > 0) {
|
|
||||||
fillAreas = false;
|
|
||||||
}
|
|
||||||
if (items.size() > 0) {
|
|
||||||
fillItems = false;
|
|
||||||
}
|
|
||||||
for (uint8_t c = 0; c < locations.size(); c++) {
|
for (uint8_t c = 0; c < locations.size(); c++) {
|
||||||
// if area matters for the hint, it should be specified and not left to this
|
// if area matters for the hint, it should be specified and not left to this
|
||||||
if (fillAreas) {
|
if (fillAreas) {
|
||||||
@@ -205,6 +199,7 @@ void Hint::NamesChosen() {
|
|||||||
hintType == HINT_TYPE_ALTAR_CHILD || hintType == HINT_TYPE_ALTAR_ADULT) {
|
hintType == HINT_TYPE_ALTAR_CHILD || hintType == HINT_TYPE_ALTAR_ADULT) {
|
||||||
namesTemp = {};
|
namesTemp = {};
|
||||||
saveNames = false;
|
saveNames = false;
|
||||||
|
|
||||||
for (uint8_t c = 0; c < areas.size(); c++) {
|
for (uint8_t c = 0; c < areas.size(); c++) {
|
||||||
uint8_t selection = GetRandomHintTextEntry(GetAreaHintText(c));
|
uint8_t selection = GetRandomHintTextEntry(GetAreaHintText(c));
|
||||||
if (selection > 0) {
|
if (selection > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user