Added missing annotations

This commit is contained in:
bm01 2012-07-03 03:55:19 +02:00
parent d6d7f5099f
commit bebcc40987
2 changed files with 10 additions and 0 deletions

View File

@ -16,10 +16,12 @@ public class DodgeEventHandler extends AcrobaticsEventHandler {
calculateModifiedDamage();
}
@Override
protected void calculateSkillModifier() {
this.skillModifier = Misc.skillCheck(manager.getSkillLevel(), Acrobatics.DODGE_MAX_BONUS_LEVEL);
}
@Override
protected void calculateModifiedDamage() {
int modifiedDamage = damage / 2;
@ -30,14 +32,17 @@ public class DodgeEventHandler extends AcrobaticsEventHandler {
this.modifiedDamage = modifiedDamage;
}
@Override
protected void modifyEventDamage() {
event.setDamage(modifiedDamage);
}
@Override
protected void sendAbilityMessage() {
player.sendMessage(LocaleLoader.getString("Acrobatics.Combat.Proc"));
}
@Override
protected void processXPGain(int xp) {
PlayerProfile profile = manager.getProfile();

View File

@ -21,6 +21,7 @@ public class RollEventHandler extends AcrobaticsEventHandler {
calculateModifiedDamage();
}
@Override
protected void calculateSkillModifier() {
int skillModifer = manager.getSkillLevel();
@ -32,6 +33,7 @@ public class RollEventHandler extends AcrobaticsEventHandler {
this.skillModifier = skillModifer;
}
@Override
protected void calculateModifiedDamage() {
int modifiedDamage = damage - damageThreshold;
@ -42,6 +44,7 @@ public class RollEventHandler extends AcrobaticsEventHandler {
this.modifiedDamage = modifiedDamage;
}
@Override
protected void modifyEventDamage() {
event.setDamage(modifiedDamage);
@ -51,6 +54,7 @@ public class RollEventHandler extends AcrobaticsEventHandler {
}
@Override
protected void sendAbilityMessage() {
if (isGraceful) {
player.sendMessage(LocaleLoader.getString("Acrobatics.Ability.Proc"));
@ -61,6 +65,7 @@ public class RollEventHandler extends AcrobaticsEventHandler {
}
@Override
protected void processXPGain(int xpGain) {
Skills.xpProcessing(player, manager.getProfile(), SkillType.ACROBATICS, xpGain);
}