Remove the static_rune_validkit loader

Kits come from StartingKitTable.cfg since c1e1ed91 (tested); drop
dbKitHandler, DbManager.KitQueries, the Kit ResultSet ctor and
RaceClassIDMap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-25 11:04:05 -04:00
1 parent c1e1ed9148
commit 9af6dd30ea
3 files changed
-84

No files matched your search

-37
View File
@@ -20,9 +20,6 @@ import engine.parsers.objects.RuneTemplate;
import engine.parsers.objects.wpak.StartingKitTemplate;
import org.pmw.tinylog.Logger;
import java.net.UnknownHostException;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.EnumMap;
import java.util.HashMap;
@@ -32,7 +29,6 @@ import java.util.Map;
public class Kit extends AbstractGameObject {
public static HashMap<Integer, Boolean> NoobGearIDS = new HashMap<>();
public static HashMap<Integer, ArrayList<Kit>> RaceClassIDMap = new HashMap<>();
// Keyed like the client's kit map (0x620250): race name, sex and class name, not rune ids
private static final HashMap<String, ArrayList<Kit>> _kitsByRaceClass = new HashMap<>();
@@ -73,30 +69,6 @@ public class Kit extends AbstractGameObject {
}
}
/**
* RecordSet Constructor
*/
public Kit(ResultSet rs) throws SQLException, UnknownHostException {
super(rs);
int raceBaseClassID = rs.getInt("RaceBaseClassesID");
this.kitNumber = rs.getByte("kitNumber");
putColumn(EquipSlotType.LEGS, rs.getInt("legs"));
putColumn(EquipSlotType.CHEST, rs.getInt("chest"));
putColumn(EquipSlotType.FEET, rs.getInt("feet"));
putColumn(EquipSlotType.LHELD, rs.getInt("offhand"));
putColumn(EquipSlotType.RHELD, rs.getInt("weapon"));
if (Kit.RaceClassIDMap.containsKey(raceBaseClassID)) {
Kit.RaceClassIDMap.get(raceBaseClassID).add(this);
} else {
ArrayList<Kit> tempList = new ArrayList<>();
tempList.add(this);
Kit.RaceClassIDMap.put(raceBaseClassID, tempList);
}
}
public static void LoadAllKits() {
Kit kit;
@@ -168,15 +140,6 @@ public class Kit extends AbstractGameObject {
return null;
}
private void putColumn(EquipSlotType slot, int itemID) {
if (itemID == 0)
return;
this.items.put(slot, itemID);
Kit.NoobGearIDS.put(itemID, true);
}
public byte getKitNumber() {
return kitNumber;
}