@@ -90,17 +90,13 @@ public void processRupture(@NotNull LivingEntity target) {
90
90
}
91
91
}
92
92
93
- RuptureTask ruptureTask = new RuptureTask (mmoPlayer , target ,
93
+ final RuptureTask ruptureTask = new RuptureTask (mmoPlayer , target ,
94
94
mcMMO .p .getAdvancedConfig ().getRuptureTickDamage (target instanceof Player , getRuptureRank ()));
95
95
96
- RuptureTaskMeta ruptureTaskMeta = new RuptureTaskMeta (mcMMO .p , ruptureTask );
96
+ final RuptureTaskMeta ruptureTaskMeta = new RuptureTaskMeta (mcMMO .p , ruptureTask );
97
97
98
98
mcMMO .p .getFoliaLib ().getScheduler ().runAtEntityTimer (target , ruptureTask , 1 , 1 );
99
99
target .setMetadata (MetadataConstants .METADATA_KEY_RUPTURE , ruptureTaskMeta );
100
-
101
- // if (mmoPlayer.useChatNotifications()) {
102
- // NotificationManager.sendPlayerInformation(getPlayer(), NotificationType.SUBSKILL_MESSAGE, "Swords.Combat.Bleeding");
103
- // }
104
100
}
105
101
}
106
102
@@ -112,33 +108,21 @@ public double getStabDamage() {
112
108
int rank = RankUtils .getRank (getPlayer (), SubSkillType .SWORDS_STAB );
113
109
114
110
if (rank > 0 ) {
115
- return (1.0D + (rank * 1.5 ));
111
+ double baseDamage = mcMMO .p .getAdvancedConfig ().getStabBaseDamage ();
112
+ double rankMultiplier = mcMMO .p .getAdvancedConfig ().getStabPerRankMultiplier ();
113
+ return (baseDamage + (rank * rankMultiplier ));
116
114
}
117
115
118
116
return 0 ;
119
117
}
120
118
121
- public int getToolTier (@ NotNull ItemStack itemStack ) {
122
- if (ItemUtils .isNetheriteTool (itemStack ))
123
- return 5 ;
124
- if (ItemUtils .isDiamondTool (itemStack ))
125
- return 4 ;
126
- else if (ItemUtils .isIronTool (itemStack ) || ItemUtils .isGoldTool (itemStack ))
127
- return 3 ;
128
- else if (ItemUtils .isStoneTool (itemStack ))
129
- return 2 ;
130
- else
131
- return 1 ;
132
- }
133
-
134
119
/**
135
120
* Handle the effects of the Counter Attack ability
136
121
*
137
122
* @param attacker The {@link LivingEntity} being affected by the ability
138
123
* @param damage The amount of damage initially dealt by the event
139
124
*/
140
125
public void counterAttackChecks (@ NotNull LivingEntity attacker , double damage ) {
141
-
142
126
if (ProbabilityUtil .isSkillRNGSuccessful (SubSkillType .SWORDS_COUNTER_ATTACK , mmoPlayer )) {
143
127
CombatUtils .dealDamage (attacker , damage / Swords .counterAttackModifier , getPlayer ());
144
128
0 commit comments