From 6a052722c99c6b5cde849bff1f113797f9020760 Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Wed, 29 Nov 2023 16:44:53 -0800 Subject: [PATCH] load V1 rare tables --- src/ServerState.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ServerState.cc b/src/ServerState.cc index 6d217781..48aad36e 100644 --- a/src/ServerState.cc +++ b/src/ServerState.cc @@ -988,7 +988,10 @@ void ServerState::load_item_tables() { size_t ext_offset = filename.rfind('.'); string basename = (ext_offset == string::npos) ? filename : filename.substr(0, ext_offset); - if (ends_with(filename, "-v2.json")) { + if (ends_with(filename, "-v1.json")) { + config_log.info("Loading v1 JSON rare item table %s", filename.c_str()); + this->rare_item_sets.emplace(basename, new RareItemSet(JSON::parse(load_file(path)), Version::DC_V1, this->item_name_index)); + } else if (ends_with(filename, "-v2.json")) { config_log.info("Loading v2 JSON rare item table %s", filename.c_str()); this->rare_item_sets.emplace(basename, new RareItemSet(JSON::parse(load_file(path)), Version::PC_V2, this->item_name_index)); } else if (ends_with(filename, "-v3.json")) {