mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Added missing annotations
This commit is contained in:
parent
d6d7f5099f
commit
bebcc40987
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user