use correct ItemPT table in Challenge mode
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
- Make UI strings localizable (e.g. entries in menus, welcome message, etc.)
|
||||
- Figure out what causes the corruption message on PC proxy sessions and fix it
|
||||
- Enable item tracking in battle/challenge games (everything should already be set up for it to work)
|
||||
- Use challenge mode rare tables in challenge mode games (also, apparently it always uses Viridia? verify this)
|
||||
- Rewrite REL-based parsers so they don't assume any fixed offsets
|
||||
|
||||
## Episode 3
|
||||
|
||||
@@ -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
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user