MELERIX 14 tahun lalu
induk
melakukan
7141934073

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

@@ -135,7 +135,7 @@ public abstract class L2Effect
 	private final String _abnormalType;
 	
 	/** The position of the effect in the stack group */
-	private final float _abnormalLvl;
+	private final byte _abnormalLvl;
 	
 	private boolean _inUse = false;
 	private boolean _startConditionsCorrect = true;
@@ -308,7 +308,7 @@ public abstract class L2Effect
 		return _abnormalType;
 	}
 	
-	public float getAbnormalLvl()
+	public byte getAbnormalLvl()
 	{
 		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();
 			event = AbnormalEffect.getByName(spc);
 		}
-		float abnormalLvl = 0;
+		byte abnormalLvl = 0;
 		String abnormalType = "none";
 		if (attrs.getNamedItem("abnormalType") != null)
 		{
@@ -312,7 +312,7 @@ abstract class DocumentBase
 		}
 		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;

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

@@ -50,7 +50,7 @@ public class EffectTemplate
 	public final AbnormalEffect eventEffect;
 	public FuncTemplate[] funcTemplates;
 	public final String abnormalType;
-	public final float abnormalLvl;
+	public final byte abnormalLvl;
 	public final boolean icon;
 	public final String funcName;
 	public final double effectPower; // to thandle chance
@@ -62,7 +62,7 @@ public class EffectTemplate
 	
 	public EffectTemplate(Condition pAttachCond, Condition pApplayCond, String func, Lambda pLambda,
 			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)
 	{
 		attachCond = pAttachCond;