Remove the SkillsBase ResultSet constructor

SkillsBase comes from Skills.cfg since ff52d1d7 (tested). Drop the
ResultSet ctor; static_skill_skillsbase is shrunk to ID, name
(sql/4.3-skillsbase-shrink.sql, run on mbdb_108 and patched into
magicbane.sql).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-25 11:31:16 -04:00
1 parent ff52d1d7e5
commit 637a798191
1 file changed
-20
-20
View File
@@ -18,8 +18,6 @@ import engine.server.MBServerStatics;
import engine.util.Hasher;
import org.pmw.tinylog.Logger;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
@@ -91,24 +89,6 @@ public class SkillsBase extends AbstractGameObject {
this.spiMod = template.attr_weights.getOrDefault(AttributeType.Spirit, 0).shortValue();
}
/**
* ResultSet Constructor
*/
public SkillsBase(ResultSet rs) throws SQLException {
super(rs);
this.name = rs.getString("name");
this.nameNoSpace = name.replace(" ", "");
this.description = rs.getString("description");
this.sourceType = SourceType.GetSourceType(this.nameNoSpace.replace("-", "").replace("\"", "").replace(",", ""));
this.token = rs.getInt("token");
this.strMod = rs.getShort("strMod");
this.dexMod = rs.getShort("dexMod");
this.conMod = rs.getShort("conMod");
this.intMod = rs.getShort("intMod");
this.spiMod = rs.getShort("spiMod");
}
public static SkillsBase getFromCache(String name) {
if (skillsCache.containsKey(name))
return skillsCache.get(name);