Browse Source

Code written to refactor db call out of effect costs.

combat-2
MagicBot 8 months ago
parent
commit
81f86ceca9
  1. 2
      src/engine/db/handlers/dbEffectsResourceCostHandler.java

2
src/engine/db/handlers/dbEffectsResourceCostHandler.java

@ -43,7 +43,7 @@ public class dbEffectsResourceCostHandler extends dbHandlerBase { @@ -43,7 +43,7 @@ public class dbEffectsResourceCostHandler extends dbHandlerBase {
HashMap<mbEnums.ResourceType, Integer> costMap = new HashMap<>();
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT DISTINCT `IDString` FROM `static_power_effectcost` WHERE `IDString` = ?")) {
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_power_effectcost` WHERE `IDString` = ?")) {
preparedStatement.setString(1, effectID);
ResultSet rs = preparedStatement.executeQuery();

Loading…
Cancel
Save