Counter Attack now makes use of a rank system

This commit is contained in:
nossr50
2019-01-26 12:54:38 -08:00
parent d4d5d9bac1
commit 1df4f74f8c
5 changed files with 15 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public enum SubSkillType {
SMELTING_UNDERSTANDING_THE_ART(8),
/* Swords */
SWORDS_COUNTER_ATTACK,
SWORDS_COUNTER_ATTACK(1),
SWORDS_RUPTURE(4),
SWORDS_SERRATED_STRIKES(1),

View File

@ -209,7 +209,7 @@ public class TamingManager extends SkillManager {
public void pummel(LivingEntity target, Wolf wolf) {
if(!RankUtils.hasUnlockedSubskill(getPlayer(), SubSkillType.TAMING_PUMMEL))
return;
double chance = 10 / activationChance;
SubSkillRandomCheckEvent event = new SubSkillRandomCheckEvent(getPlayer(), SubSkillType.TAMING_PUMMEL, chance);
mcMMO.p.getServer().getPluginManager().callEvent(event);

View File

@ -367,6 +367,11 @@ Fishing:
Rank_7: 850
Rank_8: 1000
Swords:
CounterAttack:
Standard:
Rank_1: 20
RetroMode:
Rank_1: 200
Rupture:
Standard:
Rank_1: 5