MELERIX 14 سال پیش
والد
کامیت
7141934073

+ 2 - 2
L2J_Server/java/com/l2jserver/gameserver/model/L2Effect.java

@@ -135,7 +135,7 @@ public abstract class L2Effect
 	private final String _abnormalType;
 	private final String _abnormalType;
 	
 	
 	/** The position of the effect in the stack group */
 	/** The position of the effect in the stack group */
-	private final float _abnormalLvl;
+	private final byte _abnormalLvl;
 	
 	
 	private boolean _inUse = false;
 	private boolean _inUse = false;
 	private boolean _startConditionsCorrect = true;
 	private boolean _startConditionsCorrect = true;
@@ -308,7 +308,7 @@ public abstract class L2Effect
 		return _abnormalType;
 		return _abnormalType;
 	}
 	}
 	
 	
-	public float getAbnormalLvl()
+	public byte getAbnormalLvl()
 	{
 	{
 		return _abnormalLvl;
 		return _abnormalLvl;
 	}
 	}

+ 2 - 2
L2J_Server/java/com/l2jserver/gameserver/skills/DocumentBase.java

@@ -304,7 +304,7 @@ abstract class DocumentBase
 			String spc = attrs.getNamedItem("event").getNodeValue();
 			String spc = attrs.getNamedItem("event").getNodeValue();
 			event = AbnormalEffect.getByName(spc);
 			event = AbnormalEffect.getByName(spc);
 		}
 		}
-		float abnormalLvl = 0;
+		byte abnormalLvl = 0;
 		String abnormalType = "none";
 		String abnormalType = "none";
 		if (attrs.getNamedItem("abnormalType") != null)
 		if (attrs.getNamedItem("abnormalType") != null)
 		{
 		{
@@ -312,7 +312,7 @@ abstract class DocumentBase
 		}
 		}
 		if (attrs.getNamedItem("abnormalLvl") != null)
 		if (attrs.getNamedItem("abnormalLvl") != null)
 		{
 		{
-			abnormalLvl = Float.parseFloat(getValue(attrs.getNamedItem("abnormalLvl").getNodeValue(), template));
+			abnormalLvl = Byte.parseByte(getValue(attrs.getNamedItem("abnormalLvl").getNodeValue(), template));
 		}
 		}
 		
 		
 		double effectPower = -1;
 		double effectPower = -1;

+ 2 - 2
L2J_Server/java/com/l2jserver/gameserver/templates/effects/EffectTemplate.java

@@ -50,7 +50,7 @@ public class EffectTemplate
 	public final AbnormalEffect eventEffect;
 	public final AbnormalEffect eventEffect;
 	public FuncTemplate[] funcTemplates;
 	public FuncTemplate[] funcTemplates;
 	public final String abnormalType;
 	public final String abnormalType;
-	public final float abnormalLvl;
+	public final byte abnormalLvl;
 	public final boolean icon;
 	public final boolean icon;
 	public final String funcName;
 	public final String funcName;
 	public final double effectPower; // to thandle chance
 	public final double effectPower; // to thandle chance
@@ -62,7 +62,7 @@ public class EffectTemplate
 	
 	
 	public EffectTemplate(Condition pAttachCond, Condition pApplayCond, String func, Lambda pLambda,
 	public EffectTemplate(Condition pAttachCond, Condition pApplayCond, String func, Lambda pLambda,
 			int pCounter, int pPeriod, AbnormalEffect pAbnormalEffect, AbnormalEffect pSpecialEffect,
 			int pCounter, int pPeriod, AbnormalEffect pAbnormalEffect, AbnormalEffect pSpecialEffect,
-			AbnormalEffect pEventEffect, String pAbnormalType, float pAbnormalLvl, boolean showicon,
+			AbnormalEffect pEventEffect, String pAbnormalType, byte pAbnormalLvl, boolean showicon,
 			double ePower, L2SkillType eType, int trigId, int trigLvl, ChanceCondition chanceCond)
 			double ePower, L2SkillType eType, int trigId, int trigLvl, ChanceCondition chanceCond)
 	{
 	{
 		attachCond = pAttachCond;
 		attachCond = pAttachCond;