All Effect Data Loaded From Parser

This commit is contained in:
2024-08-21 17:40:24 -05:00
parent f0efd0c477
commit 3d96e6504e
72 changed files with 584 additions and 535 deletions
@@ -17,6 +17,7 @@ import engine.objects.AbstractWorldObject;
import engine.objects.Building;
import engine.objects.Item;
import engine.powers.EffectsBase;
import engine.wpak.data.EffectModifier;
import java.sql.ResultSet;
import java.sql.SQLException;
@@ -57,6 +58,23 @@ public abstract class AbstractEffectModifier {
this.string2 = rs.getString("string2");
}
public AbstractEffectModifier(EffectModifier mod) {
this.IDString = mod.type.name();
this.effectType = mod.type.name();
this.modType = mod.type;
this.type = mod.type.name().replace("\"", "");
this.sourceType = SourceType.GetSourceType(this.type.replace(" ", "").replace("-", ""));
this.minMod = mod.min;
this.maxMod = mod.max;
this.percentMod = mod.scale;
this.ramp = (float)mod.compoundCurveType.getValue();
this.useRampAdd = (float)mod.compoundCurveType.getValue() != 0;
this.string1 = mod.arg1;
this.string2 = mod.arg2;
}
public int getUUID() {
return this.UUID;