Ver código fonte

New skilltype UNLOCK_SPECIAL for unlocking any door, with "power" probability.
Should be used with condition only !
DP update required.

_DS_ 15 anos atrás
pai
commit
0155c1f72b

+ 0 - 37
L2_GameServer/java/com/l2jserver/gameserver/skills/Formulas.java

@@ -2635,43 +2635,6 @@ public final class Formulas
 		return (Rnd.get(10000) > rate);
 	}
 
-	public static boolean calculateUnlockChance(L2Skill skill)
-	{
-		int level = skill.getLevel();
-		int chance = 0;
-		switch (level)
-		{
-			case 1:
-				chance = 30;
-				break;
-
-			case 2:
-				chance = 50;
-				break;
-
-			case 3:
-				chance = 75;
-				break;
-
-			case 4:
-			case 5:
-			case 6:
-			case 7:
-			case 8:
-			case 9:
-			case 10:
-			case 11:
-			case 12:
-			case 13:
-			case 14:
-				chance = 100;
-				break;
-		}
-		if (Rnd.get(120) > chance)		
-			return false;
-		return true;
-	}
-	
     public static double calcManaDam(L2Character attacker, L2Character target, L2Skill skill,
 			boolean ss, boolean bss)
     {

+ 1 - 0
L2_GameServer/java/com/l2jserver/gameserver/templates/skills/L2SkillType.java

@@ -107,6 +107,7 @@ public enum L2SkillType
 	
 	// MISC
 	UNLOCK,
+	UNLOCK_SPECIAL,
 	ENCHANT_ARMOR,
 	ENCHANT_WEAPON,
 	ENCHANT_ATTRIBUTE,