Remove the DB effect loaders

Effects, modifiers, source types, effect fail conditions and item
enchant values all come from Effects.cfg (4.6b). Removes
dbEffectsBaseHandler, dbPowerHandler, the EffectsBase and effect
modifier ResultSet constructors, EffectsBase.getFailConditions and
LOAD_ENCHANT_VALUES.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
MagicBotandClaude Opus 5.5 committed 2026-10-26 05:17:24 -04:00
1 parent e2ec8eb8a6
commit dee936d8a5
72 files changed
-1126

No files matched your search

@@ -23,25 +23,12 @@ import engine.objects.*;
import engine.parsers.objects.wpak.EffectTemplate;
import org.pmw.tinylog.Logger;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.concurrent.ThreadLocalRandom;
public class HealthEffectModifier extends AbstractEffectModifier {
private mbEnums.DamageType damageType;
public HealthEffectModifier(ResultSet rs) throws SQLException {
super(rs);
String damageTypeDB = rs.getString("type");
try {
this.damageType = mbEnums.DamageType.getDamageType(damageTypeDB);
} catch (IllegalArgumentException e) {
Logger.error("DamageType could not be loaded from database. " + "UUID = " + this.UUID
+ " value received = '" + damageTypeDB.toUpperCase() + '\'', e);
}
}
public HealthEffectModifier(String IDString, EffectTemplate.ModEntry modEntry) {
super(IDString, modEntry);
this.damageType = mbEnums.DamageType.getDamageType(this.type);