From 637a79819195e8be1f1833d7289cb76ddda0cea8 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 25 Oct 2026 11:31:16 -0400 Subject: [PATCH] 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 --- src/engine/objects/SkillsBase.java | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/engine/objects/SkillsBase.java b/src/engine/objects/SkillsBase.java index 7410f27a..8d2e23c2 100644 --- a/src/engine/objects/SkillsBase.java +++ b/src/engine/objects/SkillsBase.java @@ -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);