Browse Source

PlayerCombatStats dex penalty applied correctly

lakebane-dex-penalty
FatBoy-DOTC 5 days ago
parent
commit
f073a93d47
  1. 5
      src/engine/db/handlers/dbItemBaseHandler.java

5
src/engine/db/handlers/dbItemBaseHandler.java

@ -52,8 +52,11 @@ public class dbItemBaseHandler extends dbHandlerBase { @@ -52,8 +52,11 @@ public class dbItemBaseHandler extends dbHandlerBase {
preparedStatement.setInt(1, itemBase.getUUID());
ResultSet rs = preparedStatement.executeQuery();
try {
itemBase.dexReduction = rs.getFloat("item_bulk_factor");
}catch(Exception e){
Logger.error("No Value Found For Dex Penalty FOr Item: " + itemBase.getUUID());
}
} catch (SQLException e) {
Logger.error(e);

Loading…
Cancel
Save