Addition of EnchantRate effect handler.
Contributed by facab.
This commit is contained in:
		| @@ -131,6 +131,7 @@ public class EffectMasterHandler | ||||
| 		EffectHandler.getInstance().registerHandler("DoubleCast", DoubleCast::new); | ||||
| 		EffectHandler.getInstance().registerHandler("DuelistFury", DuelistFury::new); | ||||
| 		EffectHandler.getInstance().registerHandler("EnableCloak", EnableCloak::new); | ||||
| 		EffectHandler.getInstance().registerHandler("EnchantRate", EnchantRate::new); | ||||
| 		EffectHandler.getInstance().registerHandler("EnergyAttack", EnergyAttack::new); | ||||
| 		EffectHandler.getInstance().registerHandler("EnlargeAbnormalSlot", EnlargeAbnormalSlot::new); | ||||
| 		EffectHandler.getInstance().registerHandler("EnlargeSlot", EnlargeSlot::new); | ||||
|   | ||||
							
								
								
									
										31
									
								
								L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/EnchantRate.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										31
									
								
								L2J_Mobius_Classic_2.1_Zaken/dist/game/data/scripts/handlers/effecthandlers/EnchantRate.java
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,31 @@ | ||||
| /* | ||||
|  * This file is part of the L2J Mobius project. | ||||
|  *  | ||||
|  * This program is free software: you can redistribute it and/or modify | ||||
|  * it under the terms of the GNU General Public License as published by | ||||
|  * the Free Software Foundation, either version 3 of the License, or | ||||
|  * (at your option) any later version. | ||||
|  *  | ||||
|  * This program is distributed in the hope that it will be useful, | ||||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
|  * General Public License for more details. | ||||
|  *  | ||||
|  * You should have received a copy of the GNU General Public License | ||||
|  * along with this program. If not, see <http://www.gnu.org/licenses/>. | ||||
|  */ | ||||
| package handlers.effecthandlers; | ||||
|  | ||||
| import org.l2jmobius.gameserver.model.StatSet; | ||||
| import org.l2jmobius.gameserver.model.stats.Stat; | ||||
|  | ||||
| /** | ||||
|  * @author zarco | ||||
|  */ | ||||
| public class EnchantRate extends AbstractStatAddEffect | ||||
| { | ||||
| 	public EnchantRate(StatSet params) | ||||
| 	{ | ||||
| 		super(params, Stat.ENCHANT_RATE); | ||||
| 	} | ||||
| } | ||||
| @@ -40,7 +40,7 @@ public class CharmOfCourage implements IItemHandler | ||||
| 		 | ||||
| 		final PlayerInstance player = playable.getActingPlayer(); | ||||
| 		int level = player.getLevel(); | ||||
| 		final int itemLevel = item.getItem().getCrystalType().getId(); | ||||
| 		final int itemLevel = item.getItem().getCrystalType().getLevel(); | ||||
| 		if (level < 20) | ||||
| 		{ | ||||
| 			level = 0; | ||||
|   | ||||
| @@ -101,6 +101,7 @@ DispelBySlotProbability: Removes given amount of effects by specified AbnormalTy | ||||
| DoubleCast: Triggers Fire, Water, Wind, Earth stance and enables the ability to cast two skills at once. | ||||
| DuelistFury: Synergy effect for Faceoff effect. (l2jmobius) | ||||
| EnableCloak: See/unsee cloaks. | ||||
| EnchantRate: Enchant rate modifier, does not work for non grade items. (l2jmobius) | ||||
| EnemyCharge: Charges towards the enemy. Rush Impact. | ||||
| EnergyAttack: Physical attack based on Momentum formula. Triple Sonic Slash, Double Sonic Slash etc. | ||||
| EnlargeAbnormalSlot: Increase the amount of buff slots. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 MobiusDevelopment
					MobiusDevelopment