Drop of IntIntHolder class.
This commit is contained in:
@@ -429,7 +429,7 @@ public class L2SchemeBufferInstance extends L2Npc
|
||||
int fee = 0;
|
||||
for (int sk : list)
|
||||
{
|
||||
fee += SchemeBufferTable.getInstance().getAvailableBuff(sk).getValue();
|
||||
fee += SchemeBufferTable.getInstance().getAvailableBuff(sk).getPrice();
|
||||
}
|
||||
|
||||
return fee;
|
||||
|
@@ -19,19 +19,31 @@ package com.l2jmobius.gameserver.model.holders;
|
||||
/**
|
||||
* A container used for schemes buffer.
|
||||
*/
|
||||
public final class BuffSkillHolder extends IntIntHolder
|
||||
public final class BuffSkillHolder
|
||||
{
|
||||
private final int _id;
|
||||
private final int _price;
|
||||
private final String _type;
|
||||
private final String _description;
|
||||
|
||||
public BuffSkillHolder(int id, int price, String type, String description)
|
||||
{
|
||||
super(id, price);
|
||||
|
||||
_id = id;
|
||||
_price = price;
|
||||
_type = type;
|
||||
_description = description;
|
||||
}
|
||||
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public int getPrice()
|
||||
{
|
||||
return _price;
|
||||
}
|
||||
|
||||
public final String getType()
|
||||
{
|
||||
return _type;
|
||||
|
@@ -1,69 +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 com.l2jmobius.gameserver.model.holders;
|
||||
|
||||
import com.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
* A generic int/int container.
|
||||
*/
|
||||
public class IntIntHolder
|
||||
{
|
||||
private int _id;
|
||||
private int _value;
|
||||
|
||||
public IntIntHolder(int id, int value)
|
||||
{
|
||||
_id = id;
|
||||
_value = value;
|
||||
}
|
||||
|
||||
public int getId()
|
||||
{
|
||||
return _id;
|
||||
}
|
||||
|
||||
public int getValue()
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
public void setId(int id)
|
||||
{
|
||||
_id = id;
|
||||
}
|
||||
|
||||
public void setValue(int value)
|
||||
{
|
||||
_value = value;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the L2Skill associated to the id/value.
|
||||
*/
|
||||
public final Skill getSkill()
|
||||
{
|
||||
return SkillData.getInstance().getSkill(_id, _value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString()
|
||||
{
|
||||
return getClass().getSimpleName() + ": Id: " + _id + ", Value: " + _value;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user