Dropped ManaPotion item handler and config.
This commit is contained in:
10
trunk/dist/game/config/Custom.ini
vendored
10
trunk/dist/game/config/Custom.ini
vendored
@@ -325,16 +325,6 @@ OfflineDisconnectFinished = True
|
||||
StoreOfflineTradeInRealtime = True
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Mana Drugs/Potions
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
# This option will enable core support for:
|
||||
# Mana Drug (item ID 726), using skill ID 24000.
|
||||
# Mana Potion (item ID 728), using skill ID 24001.
|
||||
EnableManaPotionSupport = False
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Display Server Time
|
||||
# ---------------------------------------------------------------------------
|
||||
|
@@ -198,7 +198,6 @@ import handlers.itemhandlers.FishShots;
|
||||
import handlers.itemhandlers.Harvester;
|
||||
import handlers.itemhandlers.ItemSkills;
|
||||
import handlers.itemhandlers.ItemSkillsTemplate;
|
||||
import handlers.itemhandlers.ManaPotion;
|
||||
import handlers.itemhandlers.Maps;
|
||||
import handlers.itemhandlers.MercTicket;
|
||||
import handlers.itemhandlers.NicknameColor;
|
||||
@@ -488,7 +487,6 @@ public class MasterHandler
|
||||
Harvester.class,
|
||||
ItemSkills.class,
|
||||
ItemSkillsTemplate.class,
|
||||
ManaPotion.class,
|
||||
Maps.class,
|
||||
MercTicket.class,
|
||||
NicknameColor.class,
|
||||
|
@@ -1,36 +0,0 @@
|
||||
/*
|
||||
* 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.itemhandlers;
|
||||
|
||||
import com.l2jmobius.Config;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Playable;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
||||
public class ManaPotion extends ItemSkills
|
||||
{
|
||||
@Override
|
||||
public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse)
|
||||
{
|
||||
if (!Config.L2JMOD_ENABLE_MANA_POTIONS_SUPPORT)
|
||||
{
|
||||
playable.sendPacket(SystemMessageId.NOTHING_HAPPENED);
|
||||
return false;
|
||||
}
|
||||
return super.useItem(playable, item, forceUse);
|
||||
}
|
||||
}
|
@@ -415,7 +415,7 @@
|
||||
<set name="default_action" val="SKILL_REDUCE" />
|
||||
<set name="etcitem_type" val="POTION" />
|
||||
<set name="for_npc" val="true" />
|
||||
<set name="handler" val="ManaPotion" />
|
||||
<set name="handler" val="ItemSkills" />
|
||||
<set name="immediate_effect" val="true" />
|
||||
<set name="is_oly_restricted" val="true" />
|
||||
<set name="is_stackable" val="true" />
|
||||
@@ -451,7 +451,7 @@
|
||||
<set name="default_action" val="SKILL_REDUCE" />
|
||||
<set name="etcitem_type" val="POTION" />
|
||||
<set name="for_npc" val="true" />
|
||||
<set name="handler" val="ManaPotion" />
|
||||
<set name="handler" val="ItemSkills" />
|
||||
<set name="immediate_effect" val="true" />
|
||||
<set name="is_oly_restricted" val="true" />
|
||||
<set name="is_stackable" val="true" />
|
||||
|
Reference in New Issue
Block a user