rewrite ItemParameterTable

This commit is contained in:
Martin Michelsen
2026-04-26 17:56:02 -07:00
parent 2f4a9462ea
commit 1fa3d18430
6 changed files with 1372 additions and 1610 deletions
+1 -1
View File
@@ -2149,7 +2149,7 @@ void ServerState::load_item_definitions() {
string path = std::format("system/item-tables/ItemPMT-{}.prs", file_path_token_for_version(v));
config_log.debug_f("Loading item definition table {}", path);
auto data = make_shared<string>(prs_decompress(phosg::load_file(path)));
new_item_parameter_tables[v_s] = make_shared<ItemParameterTable>(data, v);
new_item_parameter_tables[v_s] = ItemParameterTable::create(data, v);
}
auto json = phosg::JSON::parse(phosg::load_file("system/item-tables/translation-table.json"));