Addition of BlowRateChanceLimit configuration.
This commit is contained in:
		| @@ -161,6 +161,10 @@ MpVampiricAttackWorkWithMelee = True | ||||
| # Otherwise target level and (alternatively) attacker level is used. | ||||
| CalculateMagicSuccessBySkillMagicLevel = True | ||||
|  | ||||
| # Blow rate chance limit (%). | ||||
| # Default: 80 | ||||
| BlowRateChanceLimit = 80 | ||||
|  | ||||
|  | ||||
| # --------------------------------------------------------------------------- | ||||
| # Class, Sub-class and skill learning options | ||||
|   | ||||
| @@ -198,6 +198,7 @@ public class Config | ||||
| 	public static boolean VAMPIRIC_ATTACK_WORKS_WITH_SKILLS; | ||||
| 	public static boolean MP_VAMPIRIC_ATTACK_WORKS_WITH_MELEE; | ||||
| 	public static boolean CALCULATE_MAGIC_SUCCESS_BY_SKILL_MAGIC_LEVEL; | ||||
| 	public static int BLOW_RATE_CHANCE_LIMIT; | ||||
| 	public static boolean LIFE_CRYSTAL_NEEDED; | ||||
| 	public static boolean DIVINE_SP_BOOK_NEEDED; | ||||
| 	public static boolean ALT_GAME_SUBCLASS_WITHOUT_QUESTS; | ||||
| @@ -1744,6 +1745,7 @@ public class Config | ||||
| 			VAMPIRIC_ATTACK_WORKS_WITH_SKILLS = characterConfig.getBoolean("VampiricAttackWorkWithSkills", true); | ||||
| 			MP_VAMPIRIC_ATTACK_WORKS_WITH_MELEE = characterConfig.getBoolean("MpVampiricAttackWorkWithMelee", false); | ||||
| 			CALCULATE_MAGIC_SUCCESS_BY_SKILL_MAGIC_LEVEL = characterConfig.getBoolean("CalculateMagicSuccessBySkillMagicLevel", true); | ||||
| 			BLOW_RATE_CHANCE_LIMIT = characterConfig.getInt("BlowRateChanceLimit", 80); | ||||
| 			LIFE_CRYSTAL_NEEDED = characterConfig.getBoolean("LifeCrystalNeeded", true); | ||||
| 			DIVINE_SP_BOOK_NEEDED = characterConfig.getBoolean("DivineInspirationSpBookNeeded", true); | ||||
| 			ALT_GAME_SUBCLASS_WITHOUT_QUESTS = characterConfig.getBoolean("AltSubClassWithoutQuests", false); | ||||
|   | ||||
| @@ -1113,8 +1113,8 @@ public class Formulas | ||||
| 		 | ||||
| 		final double rate = criticalPosition * critHeightBonus * weaponCritical * chanceBoostMod * blowRateMod * blowRateDefenseMod; | ||||
| 		 | ||||
| 		// Blow rate is capped at 80% | ||||
| 		return Rnd.get(100) < Math.min(rate, 80); | ||||
| 		// Blow rate change is limited (%). | ||||
| 		return Rnd.get(100) < Math.min(rate, Config.BLOW_RATE_CHANCE_LIMIT); | ||||
| 	} | ||||
| 	 | ||||
| 	public static List<BuffInfo> calcCancelStealEffects(Creature creature, Creature target, Skill skill, DispelSlotType slot, int rate, int max) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment