Remove the dead static_npc_mobbase_race speeds loader
LOAD_ALL_MOBBASE_SPEEDS and MobBase.updateSpeeds have had no caller since 3.3 moved mob speeds to rune_speed. No value change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f07d7f3fe9
commit
7027000ba1
2 files changed
-31
No files matched your search
@@ -75,27 +75,4 @@ public class dbMobBaseHandler extends dbHandlerBase {
|
||||
return mobbaseList;
|
||||
}
|
||||
|
||||
public void LOAD_ALL_MOBBASE_SPEEDS(MobBase mobBase) {
|
||||
|
||||
if (mobBase.getLoadID() == 0)
|
||||
return;
|
||||
|
||||
try (Connection connection = DbManager.getConnection();
|
||||
PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_npc_mobbase_race` WHERE `mobbaseID` = ?")) {
|
||||
|
||||
preparedStatement.setInt(1, mobBase.getLoadID());
|
||||
ResultSet rs = preparedStatement.executeQuery();
|
||||
|
||||
while (rs.next()) {
|
||||
float walk = rs.getFloat("walkStandard");
|
||||
float walkCombat = rs.getFloat("walkCombat");
|
||||
float run = rs.getFloat("runStandard");
|
||||
float runCombat = rs.getFloat("runCombat");
|
||||
mobBase.updateSpeeds(walk, walkCombat, run, runCombat);
|
||||
}
|
||||
|
||||
} catch (SQLException e) {
|
||||
Logger.error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -164,14 +164,6 @@ public class MobBase extends AbstractGameObject {
|
||||
return DbManager.MobBaseQueries.GET_MOBBASE(id);
|
||||
}
|
||||
|
||||
public void updateSpeeds(float walk, float walkCombat, float run, float runCombat) {
|
||||
this.walk = walk;
|
||||
this.walkCombat = walkCombat;
|
||||
this.run = run;
|
||||
this.runCombat = runCombat;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
* Getters
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user