浏览代码

BETA: Removing DoorStat level should not be overridden to 1.

Rumen Nikiforov 12 年之前
父节点
当前提交
4e43377fba

+ 0 - 13
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/instance/L2DoorInstance.java

@@ -40,7 +40,6 @@ import com.l2jserver.gameserver.model.L2Object;
 import com.l2jserver.gameserver.model.actor.L2Character;
 import com.l2jserver.gameserver.model.actor.L2Playable;
 import com.l2jserver.gameserver.model.actor.knownlist.DoorKnownList;
-import com.l2jserver.gameserver.model.actor.stat.DoorStat;
 import com.l2jserver.gameserver.model.actor.status.DoorStatus;
 import com.l2jserver.gameserver.model.actor.templates.L2DoorTemplate;
 import com.l2jserver.gameserver.model.entity.Castle;
@@ -189,12 +188,6 @@ public class L2DoorInstance extends L2Character
 		setKnownList(new DoorKnownList(this));
 	}
 	
-	@Override
-	public final DoorStat getStat()
-	{
-		return (DoorStat) super.getStat();
-	}
-	
 	@Override
 	public L2DoorTemplate getTemplate()
 	{
@@ -202,12 +195,6 @@ public class L2DoorInstance extends L2Character
 		
 	}
 	
-	@Override
-	public void initCharStat()
-	{
-		setStat(new DoorStat(this));
-	}
-	
 	@Override
 	public final DoorStatus getStatus()
 	{

+ 0 - 43
L2J_Server_BETA/java/com/l2jserver/gameserver/model/actor/stat/DoorStat.java

@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 2004-2013 L2J Server
- * 
- * This file is part of L2J Server.
- * 
- * L2J Server 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.
- * 
- * L2J Server 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 com.l2jserver.gameserver.model.actor.stat;
-
-import com.l2jserver.gameserver.model.actor.instance.L2DoorInstance;
-
-public class DoorStat extends CharStat
-{
-	public DoorStat(L2DoorInstance activeChar)
-	{
-		super(activeChar);
-		
-		setLevel((byte) 1);
-	}
-	
-	@Override
-	public L2DoorInstance getActiveChar()
-	{
-		return (L2DoorInstance) super.getActiveChar();
-	}
-	
-	@Override
-	public final byte getLevel()
-	{
-		return 1;
-	}
-}