|
@@ -2,7 +2,10 @@ package com.gmail.nossr50.commands.skills;
|
|
|
|
|
|
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
|
|
import com.gmail.nossr50.datatypes.skills.SubSkillType;
|
|
|
+import com.gmail.nossr50.mcMMO;
|
|
|
import com.gmail.nossr50.util.Permissions;
|
|
|
+import com.gmail.nossr50.util.random.ProbabilityUtil;
|
|
|
+import com.gmail.nossr50.util.skills.CombatUtils;
|
|
|
import com.gmail.nossr50.util.skills.RankUtils;
|
|
|
import com.gmail.nossr50.util.text.TextComponentFactory;
|
|
|
import net.kyori.adventure.text.Component;
|
|
@@ -13,30 +16,29 @@ import java.util.List;
|
|
|
|
|
|
public class TridentsCommand extends SkillCommand {
|
|
|
|
|
|
- private boolean canTridentsSuper;
|
|
|
|
|
|
public TridentsCommand() {
|
|
|
super(PrimarySkillType.TRIDENTS);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected void dataCalculations(Player player, float skillValue) {
|
|
|
- // TODO: Implement data calculations
|
|
|
- }
|
|
|
+ protected void dataCalculations(Player player, float skillValue) {}
|
|
|
|
|
|
@Override
|
|
|
- protected void permissionsCheck(Player player) {
|
|
|
- canTridentsSuper = RankUtils.hasUnlockedSubskill(player, SubSkillType.TRIDENTS_TRIDENTS_SUPER_ABILITY)
|
|
|
- && Permissions.superShotgun(player);
|
|
|
- }
|
|
|
+ protected void permissionsCheck(Player player) {}
|
|
|
|
|
|
@Override
|
|
|
protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) {
|
|
|
List<String> messages = new ArrayList<>();
|
|
|
|
|
|
- if (canTridentsSuper) {
|
|
|
+ if (canUseSubskill(player, SubSkillType.TRIDENTS_TRIDENTS_SUPER_ABILITY)) {
|
|
|
messages.add("Tridents Super Ability");
|
|
|
- //TODO: Implement SSG
|
|
|
+ //TODO: Implement Tridents Super
|
|
|
+ }
|
|
|
+
|
|
|
+ if(canUseSubskill(player, SubSkillType.TRIDENTS_TRIDENTS_LIMIT_BREAK)) {
|
|
|
+ messages.add(getStatMessage(SubSkillType.TRIDENTS_TRIDENTS_LIMIT_BREAK,
|
|
|
+ String.valueOf(CombatUtils.getLimitBreakDamageAgainstQuality(player, SubSkillType.TRIDENTS_TRIDENTS_LIMIT_BREAK, 1000))));
|
|
|
}
|
|
|
|
|
|
return messages;
|