Name 'em all the same.

This commit is contained in:
GJ 2013-02-26 08:22:08 -05:00
parent 070189a7fd
commit f5290c3256
2 changed files with 4 additions and 4 deletions

View File

@ -180,7 +180,7 @@ public class EntityListener implements Listener {
switch (cause) {
case FALL:
if (Acrobatics.canRoll(player)) {
event.setDamage(SkillManagerStore.getInstance().getAcrobaticsManager(player.getName()).processRoll(event.getDamage()));
event.setDamage(SkillManagerStore.getInstance().getAcrobaticsManager(player.getName()).rollCheck(event.getDamage()));
if (event.getDamage() == 0) {
event.setCancelled(true);

View File

@ -53,11 +53,11 @@ public class AcrobaticsManager extends SkillManager {
* @param damage The amount of damage initially dealt by the event
* @return the modified event damage if the roll was successful, the original event damage otherwise
*/
public int processRoll(int damage) {
public int rollCheck(int damage) {
Player player = getPlayer();
if (player.isSneaking() && Permissions.gracefulRoll(player)) {
return processGracefulRoll(player, damage);
return gracefulRollCheck(player, damage);
}
int modifiedDamage = Acrobatics.calculateModifiedRollDamage(damage, Acrobatics.rollThreshold);
@ -75,7 +75,7 @@ public class AcrobaticsManager extends SkillManager {
return damage;
}
private int processGracefulRoll(Player player, int damage) {
private int gracefulRollCheck(Player player, int damage) {
int modifiedDamage = Acrobatics.calculateModifiedRollDamage(damage, Acrobatics.gracefulRollThreshold);
if (!Acrobatics.isFatal(player, modifiedDamage) && Acrobatics.isSuccessfulRoll(player, Acrobatics.gracefulRollMaxChance, Acrobatics.gracefulRollMaxBonusLevel, Acrobatics.gracefulRollSuccessModifier)) {