PlayerCombatStats dex penalty applied correctly

This commit is contained in:
2025-01-25 14:27:25 -06:00
parent f073a93d47
commit b7c2b7a0d5
2 changed files with 4 additions and 4 deletions
@@ -52,10 +52,10 @@ public class dbItemBaseHandler extends dbHandlerBase {
preparedStatement.setInt(1, itemBase.getUUID());
ResultSet rs = preparedStatement.executeQuery();
try {
// Check if a result was found
if (rs.next()) {
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) {
+1 -1
View File
@@ -687,7 +687,7 @@ public class PlayerCombatStats {
if(penaltyFactor > 0)
penaltyFactor *= 0.01f;
float totalPenalty = dex * (1 + penaltyFactor);
float totalPenalty = dex * penaltyFactor;
return Math.round(dex - totalPenalty);