mob resist issue

This commit is contained in:
FatBoy committed 2024-05-11 20:10:24 -05:00
1 parent bcbeacd60e
commit e0beab2dc5
3 files changed
+127

No files matched your search

@@ -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)