mob resist issue

This commit is contained in:
2024-05-11 20:10:24 -05:00
parent bcbeacd60e
commit e0beab2dc5
3 changed files with 127 additions and 0 deletions
@@ -112,6 +112,26 @@ public class dbMobBaseHandler extends dbHandlerBase {
return mobBaseStats;
}
public void LOAD_ALL_MOBBASE_RACES() {
try (Connection connection = DbManager.getConnection();
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_npc_mobbase_race`")) {
ResultSet rs = preparedStatement.executeQuery();
while (rs.next()) {
int id = rs.getInt("loadID");
MobBase mobbase = MobBase.getMobBase(id);
if(mobbase != null){
mobbase.raceType = rs.getString("raceType");
}
}
} catch (SQLException e) {
Logger.error(e);
}
}
public void LOAD_ALL_MOBBASE_SPEEDS(MobBase mobBase) {
if (mobBase.getLoadID() == 0)