Proper naming for bonus.
This commit is contained in:
parent
6382dd834c
commit
4ead57d130
@ -234,13 +234,13 @@ public final class Elementals
|
||||
return (byte) (((element % 2) == 0) ? (element + 1) : (element - 1));
|
||||
}
|
||||
|
||||
public static class ElementalStatBoni
|
||||
public static class ElementalStatBonus
|
||||
{
|
||||
private byte _elementalType;
|
||||
private int _elementalValue;
|
||||
private boolean _active;
|
||||
|
||||
public ElementalStatBoni(byte type, int value)
|
||||
public ElementalStatBonus(byte type, int value)
|
||||
{
|
||||
_elementalType = type;
|
||||
_elementalValue = value;
|
||||
@ -317,7 +317,7 @@ public final class Elementals
|
||||
}
|
||||
|
||||
// non static:
|
||||
private ElementalStatBoni _boni = null;
|
||||
private ElementalStatBonus _bonus = null;
|
||||
private byte _element = NONE;
|
||||
private int _value = 0;
|
||||
|
||||
@ -329,7 +329,7 @@ public final class Elementals
|
||||
public void setElement(byte type)
|
||||
{
|
||||
_element = type;
|
||||
_boni.setElement(type);
|
||||
_bonus.setElement(type);
|
||||
}
|
||||
|
||||
public int getValue()
|
||||
@ -340,7 +340,7 @@ public final class Elementals
|
||||
public void setValue(int val)
|
||||
{
|
||||
_value = val;
|
||||
_boni.setValue(val);
|
||||
_bonus.setValue(val);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -353,22 +353,22 @@ public final class Elementals
|
||||
{
|
||||
_element = type;
|
||||
_value = value;
|
||||
_boni = new ElementalStatBoni(_element, _value);
|
||||
_bonus = new ElementalStatBonus(_element, _value);
|
||||
}
|
||||
|
||||
public void applyBonus(L2PcInstance player, boolean isArmor)
|
||||
{
|
||||
_boni.applyBonus(player, isArmor);
|
||||
_bonus.applyBonus(player, isArmor);
|
||||
}
|
||||
|
||||
public void removeBonus(L2PcInstance player)
|
||||
{
|
||||
_boni.removeBonus(player);
|
||||
_bonus.removeBonus(player);
|
||||
}
|
||||
|
||||
public void updateBonus(L2PcInstance player, boolean isArmor)
|
||||
{
|
||||
_boni.removeBonus(player);
|
||||
_boni.applyBonus(player, isArmor);
|
||||
_bonus.removeBonus(player);
|
||||
_bonus.applyBonus(player, isArmor);
|
||||
}
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ public class ItemInfo
|
||||
// Get the enchant level of the L2ItemInstance
|
||||
_enchant = item.getEnchant();
|
||||
|
||||
// Get the augmentation boni
|
||||
// Get the augmentation bonus
|
||||
_augmentation = 0;
|
||||
|
||||
// Get the quantity of the L2ItemInstance
|
||||
|
@ -32,21 +32,21 @@ import com.l2jmobius.gameserver.model.options.Options;
|
||||
public final class L2Augmentation
|
||||
{
|
||||
private int _effectsId = 0;
|
||||
private AugmentationStatBoni _boni = null;
|
||||
private AugmentationStatBonus _bonus = null;
|
||||
|
||||
public L2Augmentation(int effects)
|
||||
{
|
||||
_effectsId = effects;
|
||||
_boni = new AugmentationStatBoni(_effectsId);
|
||||
_bonus = new AugmentationStatBonus(_effectsId);
|
||||
}
|
||||
|
||||
public static class AugmentationStatBoni
|
||||
public static class AugmentationStatBonus
|
||||
{
|
||||
private static final Logger LOGGER = Logger.getLogger(AugmentationStatBoni.class.getName());
|
||||
private static final Logger LOGGER = Logger.getLogger(AugmentationStatBonus.class.getName());
|
||||
private final List<Options> _options = new ArrayList<>();
|
||||
private boolean _active;
|
||||
|
||||
public AugmentationStatBoni(int augmentationId)
|
||||
public AugmentationStatBonus(int augmentationId)
|
||||
{
|
||||
_active = false;
|
||||
final int[] stats = new int[2];
|
||||
@ -120,7 +120,7 @@ public final class L2Augmentation
|
||||
*/
|
||||
public void applyBonus(L2PcInstance player)
|
||||
{
|
||||
_boni.applyBonus(player);
|
||||
_bonus.applyBonus(player);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -129,6 +129,6 @@ public final class L2Augmentation
|
||||
*/
|
||||
public void removeBonus(L2PcInstance player)
|
||||
{
|
||||
_boni.removeBonus(player);
|
||||
_bonus.removeBonus(player);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user