Преглед на файлове

BETA: Core support for [DP8704]

Rumen Nikiforov преди 13 години
родител
ревизия
dedc62f5d0

+ 23 - 0
L2J_Server_BETA/java/com/l2jserver/gameserver/model/items/L2Weapon.java

@@ -65,6 +65,9 @@ public final class L2Weapon extends L2Item
 	private SkillHolder _skillsOnCrit;
 	private Condition _skillsOnCritCondition = null;
 	
+	private final int _reducedSoulshot;
+	private final int _reducedSoulshotChance;
+	
 	private final boolean _isForceEquip;
 	private final boolean _isAttackWeapon;
 	private final boolean _useWeaponSkillsOnly;
@@ -86,6 +89,10 @@ public final class L2Weapon extends L2Item
 		_rndDam = set.getInteger("random_damage", 0);
 		_mpConsume = set.getInteger("mp_consume", 0);
 		
+		String[] reduced_soulshots = set.getString("reduced_soulshot", "").split(",");
+		_reducedSoulshotChance = (reduced_soulshots.length == 2) ? Integer.parseInt(reduced_soulshots[0]) : 0;
+		_reducedSoulshot = (reduced_soulshots.length == 2) ? Integer.parseInt(reduced_soulshots[1]) : 0;
+		
 		String skill = set.getString("enchant4_skill", null);
 		if (skill != null)
 		{
@@ -230,6 +237,22 @@ public final class L2Weapon extends L2Item
 		return _spiritShotCount;
 	}
 	
+	/**
+	 * @return the quantity of SoultShot used.
+	 */
+	public int getReducedSoulShot()
+	{
+		return _reducedSoulshot;
+	}
+	
+	/**
+	 * @return the chance to use Reduced SoultShot.
+	 */
+	public int getReducedSoulShotChance()
+	{
+		return _reducedSoulshotChance;
+	}
+	
 	/**
 	 * @return the random damage inflicted by the weapon.
 	 */

+ 0 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/model/stats/Stats.java

@@ -241,7 +241,6 @@ public enum Stats
 	BOW_MP_CONSUME_RATE("BowMpConsumeRate"),
 	HP_CONSUME_RATE("HpConsumeRate"),
 	MP_CONSUME("MpConsume"),
-	SOULSHOT_COUNT("soulShotCount"),
 	
 	// T1 stats
 	transformId("transformId"),