Table refactor to conform with sb.

This commit is contained in:
2023-08-05 10:11:31 -04:00
parent 5970d6d716
commit 1c5d1cef70
2 changed files with 4 additions and 4 deletions
@@ -35,7 +35,7 @@ public class dbLootTableHandler extends dbHandlerBase {
int recordsRead = 0; int recordsRead = 0;
try (Connection connection = DbManager.getConnection(); try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT `groupID`, `minRoll`, `maxRoll`, `lootTableID`, `pModTableID`, `sModTableID` FROM `static_lootgroups`")) { PreparedStatement preparedStatement = connection.prepareStatement("SELECT `groupID`, `minRoll`, `maxRoll`, `lootTableID`, `pModTableID`, `sModTableID` FROM `static_gentable`")) {
ResultSet rs = preparedStatement.executeQuery(); ResultSet rs = preparedStatement.executeQuery();
@@ -134,12 +134,12 @@ public class dbLootTableHandler extends dbHandlerBase {
} }
} }
public void LOAD_ALL_LOOTGROUPS() { public void LOAD_ALL_GENTABLES() {
int recordsRead = 0; int recordsRead = 0;
try (Connection connection = DbManager.getConnection(); try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM static_lootgroups")) { PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM static_gentable")) {
ResultSet rs = preparedStatement.executeQuery(); ResultSet rs = preparedStatement.executeQuery();
+1 -1
View File
@@ -48,7 +48,7 @@ public enum LootManager {
// Load loot tables from database. // Load loot tables from database.
DbManager.LootQueries.LOAD_ALL_LOOTGROUPS(); DbManager.LootQueries.LOAD_ALL_GENTABLES();
DbManager.LootQueries.LOAD_ALL_LOOTTABLES(); DbManager.LootQueries.LOAD_ALL_LOOTTABLES();
DbManager.LootQueries.LOAD_ALL_MODGROUPS(); DbManager.LootQueries.LOAD_ALL_MODGROUPS();
DbManager.LootQueries.LOAD_ALL_MODTABLES(); DbManager.LootQueries.LOAD_ALL_MODTABLES();