use correct ItemPT table in Challenge mode

This commit is contained in:
Martin Michelsen
2023-10-20 16:23:23 -07:00
parent bf346d3f95
commit 27734a6944
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ const CommonItemSet::Table<true>& CommonItemSet::get_table(
((mode == GameMode::CHALLENGE) ? "c" : ""),
((episode == Episode::EP2) ? "l" : ""),
tolower(abbreviation_for_difficulty(difficulty)),
secid);
(mode == GameMode::CHALLENGE) ? 0 : secid);
auto data = this->gsl.get(filename);
if (data.second < sizeof(Table<true>)) {
throw runtime_error(string_printf(
+1 -1
View File
@@ -52,7 +52,7 @@ void Lobby::create_item_creator() {
} else if (this->base_version == GameVersion::GC || this->base_version == GameVersion::XB) {
rare_item_set = s->rare_item_sets.at("default-v3");
} else {
// TODO: SHould there be a separate table for V1 eventually?
// TODO: Should there be a separate table for V1 eventually?
rare_item_set = s->rare_item_sets.at("default-v2");
}
this->item_creator.reset(new ItemCreator(