Proper naming for amount parameters.

This commit is contained in:
MobiusDevelopment
2020-08-28 13:03:24 +00:00
parent ac79b5e338
commit 7c420db736
2 changed files with 18 additions and 18 deletions

View File

@@ -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

View File

@@ -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