forked from MagicBane/Server
More effectmod parser work.
This commit is contained in:
@@ -7,7 +7,7 @@ public class EffectModifier {
|
|||||||
public int min;
|
public int min;
|
||||||
public int max;
|
public int max;
|
||||||
public float scale;
|
public float scale;
|
||||||
public mbEnums.CompoundCurveType slopeType;
|
public mbEnums.CompoundCurveType compoundCurveType;
|
||||||
public String arg1; // ItemName "Masterwork" ""
|
public String arg1; // ItemName "Masterwork" ""
|
||||||
public String arg2; // ItemName "" "of the Defender"
|
public String arg2; // ItemName "" "of the Defender"
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,7 @@ public class EffectsParser {
|
|||||||
case ArmorPiercing:
|
case ArmorPiercing:
|
||||||
effectModifier.min = Integer.parseInt(modValues.get(1).trim());
|
effectModifier.min = Integer.parseInt(modValues.get(1).trim());
|
||||||
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
|
effectModifier.scale = Float.parseFloat(modValues.get(2).trim());
|
||||||
effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
|
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
|
||||||
break;
|
break;
|
||||||
case ItemName:
|
case ItemName:
|
||||||
effectModifier.arg1 = modValues.get(1).trim();
|
effectModifier.arg1 = modValues.get(1).trim();
|
||||||
@@ -151,7 +151,7 @@ public class EffectsParser {
|
|||||||
case Skill:
|
case Skill:
|
||||||
effectModifier.min = Integer.parseInt(modValues.get(1).trim());
|
effectModifier.min = Integer.parseInt(modValues.get(1).trim());
|
||||||
effectModifier.max = Integer.parseInt(modValues.get(2).trim());
|
effectModifier.max = Integer.parseInt(modValues.get(2).trim());
|
||||||
effectModifier.slopeType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
|
effectModifier.compoundCurveType = mbEnums.CompoundCurveType.valueOf(modValues.get(3).trim());
|
||||||
effectModifier.arg1 = modValues.get(4).trim();
|
effectModifier.arg1 = modValues.get(4).trim();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Reference in New Issue
Block a user