Proper naming for bonus.

This commit is contained in:
MobiusDev 2018-09-23 17:06:26 +00:00
parent 6382dd834c
commit 4ead57d130
3 changed files with 18 additions and 18 deletions

View File

@ -234,13 +234,13 @@ public final class Elementals
return (byte) (((element % 2) == 0) ? (element + 1) : (element - 1)); return (byte) (((element % 2) == 0) ? (element + 1) : (element - 1));
} }
public static class ElementalStatBoni public static class ElementalStatBonus
{ {
private byte _elementalType; private byte _elementalType;
private int _elementalValue; private int _elementalValue;
private boolean _active; private boolean _active;
public ElementalStatBoni(byte type, int value) public ElementalStatBonus(byte type, int value)
{ {
_elementalType = type; _elementalType = type;
_elementalValue = value; _elementalValue = value;
@ -317,7 +317,7 @@ public final class Elementals
} }
// non static: // non static:
private ElementalStatBoni _boni = null; private ElementalStatBonus _bonus = null;
private byte _element = NONE; private byte _element = NONE;
private int _value = 0; private int _value = 0;
@ -329,7 +329,7 @@ public final class Elementals
public void setElement(byte type) public void setElement(byte type)
{ {
_element = type; _element = type;
_boni.setElement(type); _bonus.setElement(type);
} }
public int getValue() public int getValue()
@ -340,7 +340,7 @@ public final class Elementals
public void setValue(int val) public void setValue(int val)
{ {
_value = val; _value = val;
_boni.setValue(val); _bonus.setValue(val);
} }
@Override @Override
@ -353,22 +353,22 @@ public final class Elementals
{ {
_element = type; _element = type;
_value = value; _value = value;
_boni = new ElementalStatBoni(_element, _value); _bonus = new ElementalStatBonus(_element, _value);
} }
public void applyBonus(L2PcInstance player, boolean isArmor) public void applyBonus(L2PcInstance player, boolean isArmor)
{ {
_boni.applyBonus(player, isArmor); _bonus.applyBonus(player, isArmor);
} }
public void removeBonus(L2PcInstance player) public void removeBonus(L2PcInstance player)
{ {
_boni.removeBonus(player); _bonus.removeBonus(player);
} }
public void updateBonus(L2PcInstance player, boolean isArmor) public void updateBonus(L2PcInstance player, boolean isArmor)
{ {
_boni.removeBonus(player); _bonus.removeBonus(player);
_boni.applyBonus(player, isArmor); _bonus.applyBonus(player, isArmor);
} }
} }

View File

@ -161,7 +161,7 @@ public class ItemInfo
// Get the enchant level of the L2ItemInstance // Get the enchant level of the L2ItemInstance
_enchant = item.getEnchant(); _enchant = item.getEnchant();
// Get the augmentation boni // Get the augmentation bonus
_augmentation = 0; _augmentation = 0;
// Get the quantity of the L2ItemInstance // Get the quantity of the L2ItemInstance

View File

@ -32,21 +32,21 @@ import com.l2jmobius.gameserver.model.options.Options;
public final class L2Augmentation public final class L2Augmentation
{ {
private int _effectsId = 0; private int _effectsId = 0;
private AugmentationStatBoni _boni = null; private AugmentationStatBonus _bonus = null;
public L2Augmentation(int effects) public L2Augmentation(int effects)
{ {
_effectsId = 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 final List<Options> _options = new ArrayList<>();
private boolean _active; private boolean _active;
public AugmentationStatBoni(int augmentationId) public AugmentationStatBonus(int augmentationId)
{ {
_active = false; _active = false;
final int[] stats = new int[2]; final int[] stats = new int[2];
@ -120,7 +120,7 @@ public final class L2Augmentation
*/ */
public void applyBonus(L2PcInstance player) public void applyBonus(L2PcInstance player)
{ {
_boni.applyBonus(player); _bonus.applyBonus(player);
} }
/** /**
@ -129,6 +129,6 @@ public final class L2Augmentation
*/ */
public void removeBonus(L2PcInstance player) public void removeBonus(L2PcInstance player)
{ {
_boni.removeBonus(player); _bonus.removeBonus(player);
} }
} }