Enchant Value derived form parser instead of database

This commit is contained in:
2024-08-22 18:56:56 -05:00
parent 3d96e6504e
commit 769b84b9da
3 changed files with 2 additions and 23 deletions
-16
View File
@@ -221,20 +221,4 @@ public class dbLootHandler extends dbHandlerBase {
return bootySets;
}
public void LOAD_ENCHANT_VALUES() {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT `IDString`, `minMod` FROM `static_power_effectmod` WHERE `modType` = ?")) {
preparedStatement.setString(1, "Value");
ResultSet rs = preparedStatement.executeQuery();
while (rs.next())
Item.addEnchantValue(rs.getString("IDString"), rs.getInt("minMod"));
} catch (SQLException e) {
Logger.error(e);
}
}
}