Skip to content
Snippets Groups Projects
Commit 5a0d2295 authored by Rumen Nikiforov's avatar Rumen Nikiforov
Browse files

BETA: DP-Part for [L5613]

parent 41a01484
No related branches found
No related tags found
No related merge requests found
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
*/ */
package handlers.itemhandlers; package handlers.itemhandlers;
import com.l2jserver.gameserver.datatables.ManorData;
import com.l2jserver.gameserver.handler.IItemHandler; import com.l2jserver.gameserver.handler.IItemHandler;
import com.l2jserver.gameserver.instancemanager.CastleManorManager; import com.l2jserver.gameserver.instancemanager.CastleManorManager;
import com.l2jserver.gameserver.instancemanager.MapRegionManager; import com.l2jserver.gameserver.instancemanager.MapRegionManager;
import com.l2jserver.gameserver.model.L2Manor;
import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.L2Object;
import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.L2Npc; import com.l2jserver.gameserver.model.actor.L2Npc;
...@@ -104,6 +104,6 @@ public class Seed implements IItemHandler ...@@ -104,6 +104,6 @@ public class Seed implements IItemHandler
*/ */
private boolean areaValid(int seedId, int castleId) private boolean areaValid(int seedId, int castleId)
{ {
return (L2Manor.getInstance().getCastleIdForSeed(seedId) == castleId); return (ManorData.getInstance().getCastleIdForSeed(seedId) == castleId);
} }
} }
\ No newline at end of file
...@@ -18,8 +18,8 @@ import java.util.logging.Logger; ...@@ -18,8 +18,8 @@ import java.util.logging.Logger;
import com.l2jserver.Config; import com.l2jserver.Config;
import com.l2jserver.gameserver.ai.CtrlIntention; import com.l2jserver.gameserver.ai.CtrlIntention;
import com.l2jserver.gameserver.datatables.ManorData;
import com.l2jserver.gameserver.handler.ISkillHandler; import com.l2jserver.gameserver.handler.ISkillHandler;
import com.l2jserver.gameserver.model.L2Manor;
import com.l2jserver.gameserver.model.L2Object; import com.l2jserver.gameserver.model.L2Object;
import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.L2Character;
import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance; import com.l2jserver.gameserver.model.actor.instance.L2MonsterInstance;
...@@ -109,9 +109,9 @@ public class Sow implements ISkillHandler ...@@ -109,9 +109,9 @@ public class Sow implements ISkillHandler
private boolean calcSuccess(L2Character activeChar, L2Character target, int seedId) private boolean calcSuccess(L2Character activeChar, L2Character target, int seedId)
{ {
// TODO: check all the chances // TODO: check all the chances
int basicSuccess = (L2Manor.getInstance().isAlternative(seedId) ? 20 : 90); int basicSuccess = (ManorData.getInstance().isAlternative(seedId) ? 20 : 90);
final int minlevelSeed = L2Manor.getInstance().getSeedMinLevel(seedId); final int minlevelSeed = ManorData.getInstance().getSeedMinLevel(seedId);
final int maxlevelSeed = L2Manor.getInstance().getSeedMaxLevel(seedId); final int maxlevelSeed = ManorData.getInstance().getSeedMaxLevel(seedId);
final int levelPlayer = activeChar.getLevel(); // Attacker Level final int levelPlayer = activeChar.getLevel(); // Attacker Level
final int levelTarget = target.getLevel(); // target Level final int levelTarget = target.getLevel(); // target Level
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment