Proper naming for amount parameters.
This commit is contained in:
@@ -6038,31 +6038,31 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
_status.addStatusListener(object);
|
_status.addStatusListener(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reduceCurrentHp(double i, Creature attacker, Skill skill)
|
public void reduceCurrentHp(double amount, Creature attacker, Skill skill)
|
||||||
{
|
{
|
||||||
reduceCurrentHp(i, attacker, true, false, skill);
|
reduceCurrentHp(amount, attacker, true, false, skill);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reduceCurrentHpByDOT(double i, Creature attacker, Skill skill)
|
public void reduceCurrentHpByDOT(double amount, Creature attacker, Skill skill)
|
||||||
{
|
{
|
||||||
reduceCurrentHp(i, attacker, !skill.isToggle(), true, skill);
|
reduceCurrentHp(amount, attacker, !skill.isToggle(), true, skill);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reduceCurrentHp(double i, Creature attacker, boolean awake, boolean isDOT, Skill skill)
|
public void reduceCurrentHp(double amount, Creature attacker, boolean awake, boolean isDOT, Skill skill)
|
||||||
{
|
{
|
||||||
if (Config.CHAMPION_ENABLE && isChampion() && (Config.CHAMPION_HP != 0))
|
if (Config.CHAMPION_ENABLE && isChampion() && (Config.CHAMPION_HP != 0))
|
||||||
{
|
{
|
||||||
_status.reduceHp(i / Config.CHAMPION_HP, attacker, awake, isDOT, false);
|
_status.reduceHp(amount / Config.CHAMPION_HP, attacker, awake, isDOT, false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_status.reduceHp(i, attacker, awake, isDOT, false);
|
_status.reduceHp(amount, attacker, awake, isDOT, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reduceCurrentMp(double i)
|
public void reduceCurrentMp(double amount)
|
||||||
{
|
{
|
||||||
_status.reduceMp(i);
|
_status.reduceMp(amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@@ -6040,31 +6040,31 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
|
|||||||
_status.addStatusListener(object);
|
_status.addStatusListener(object);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reduceCurrentHp(double i, Creature attacker, Skill skill)
|
public void reduceCurrentHp(double amount, Creature attacker, Skill skill)
|
||||||
{
|
{
|
||||||
reduceCurrentHp(i, attacker, true, false, skill);
|
reduceCurrentHp(amount, attacker, true, false, skill);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reduceCurrentHpByDOT(double i, Creature attacker, Skill skill)
|
public void reduceCurrentHpByDOT(double amount, Creature attacker, Skill skill)
|
||||||
{
|
{
|
||||||
reduceCurrentHp(i, attacker, !skill.isToggle(), true, skill);
|
reduceCurrentHp(amount, attacker, !skill.isToggle(), true, skill);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reduceCurrentHp(double i, Creature attacker, boolean awake, boolean isDOT, Skill skill)
|
public void reduceCurrentHp(double amount, Creature attacker, boolean awake, boolean isDOT, Skill skill)
|
||||||
{
|
{
|
||||||
if (Config.CHAMPION_ENABLE && isChampion() && (Config.CHAMPION_HP != 0))
|
if (Config.CHAMPION_ENABLE && isChampion() && (Config.CHAMPION_HP != 0))
|
||||||
{
|
{
|
||||||
_status.reduceHp(i / Config.CHAMPION_HP, attacker, awake, isDOT, false);
|
_status.reduceHp(amount / Config.CHAMPION_HP, attacker, awake, isDOT, false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_status.reduceHp(i, attacker, awake, isDOT, false);
|
_status.reduceHp(amount, attacker, awake, isDOT, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reduceCurrentMp(double i)
|
public void reduceCurrentMp(double amount)
|
||||||
{
|
{
|
||||||
_status.reduceMp(i);
|
_status.reduceMp(amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user