Remove the dead static_npc_mobbase_stats loader
MobBase builds its stats from the race rune's rune_attr_adj since 3.2, so LOAD_STATS and the MobBaseStats ResultSet constructor have no callers. No value change. The table is dropped by sql/3.6-mob-stats-resists-drop.sql. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b2730794a2
commit
6561d585b9
2 files changed
-35
No files matched your search
@@ -12,9 +12,6 @@ package engine.objects;
|
||||
import engine.mbEnums;
|
||||
import engine.parsers.objects.RuneTemplate;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
|
||||
public class MobBaseStats {
|
||||
|
||||
public static MobBaseStats mbs = null;
|
||||
@@ -24,18 +21,6 @@ public class MobBaseStats {
|
||||
private final int baseSpi;
|
||||
private final int baseDex;
|
||||
|
||||
|
||||
/**
|
||||
* ResultSet Constructor
|
||||
*/
|
||||
public MobBaseStats(ResultSet rs) throws SQLException {
|
||||
this.baseStr = rs.getInt("Strength");
|
||||
this.baseInt = rs.getInt("Intelligence");
|
||||
this.baseCon = rs.getInt("Constitution");
|
||||
this.baseSpi = rs.getInt("Spirit");
|
||||
this.baseDex = rs.getInt("Dexterity");
|
||||
}
|
||||
|
||||
public MobBaseStats(RuneTemplate rune) {
|
||||
this.baseStr = rune.rune_attr_adj.getOrDefault(mbEnums.AttributeType.Strength, 0);
|
||||
this.baseInt = rune.rune_attr_adj.getOrDefault(mbEnums.AttributeType.Intelligence, 0);
|
||||
|
||||
Reference in new issue
Block a user