forked from MagicBane/Server
All Effect Data Loaded From Parser
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user