mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 14:16:45 +01:00
Add missing parent definitions for Xbows/Tridents
This commit is contained in:
parent
2c49f8ffeb
commit
0db1d846bc
@ -171,25 +171,19 @@ public class SkillTools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private @NotNull PrimarySkillType getSuperAbilityParent(SuperAbilityType superAbilityType) throws InvalidSkillException {
|
private @NotNull PrimarySkillType getSuperAbilityParent(SuperAbilityType superAbilityType) throws InvalidSkillException {
|
||||||
switch(superAbilityType) {
|
return switch (superAbilityType) {
|
||||||
case BERSERK:
|
case BERSERK -> PrimarySkillType.UNARMED;
|
||||||
return PrimarySkillType.UNARMED;
|
case GREEN_TERRA -> PrimarySkillType.HERBALISM;
|
||||||
case GREEN_TERRA:
|
case TREE_FELLER -> PrimarySkillType.WOODCUTTING;
|
||||||
return PrimarySkillType.HERBALISM;
|
case SUPER_BREAKER, BLAST_MINING -> PrimarySkillType.MINING;
|
||||||
case TREE_FELLER:
|
case SKULL_SPLITTER -> PrimarySkillType.AXES;
|
||||||
return PrimarySkillType.WOODCUTTING;
|
case SERRATED_STRIKES -> PrimarySkillType.SWORDS;
|
||||||
case SUPER_BREAKER:
|
case GIGA_DRILL_BREAKER -> PrimarySkillType.EXCAVATION;
|
||||||
case BLAST_MINING:
|
case SUPER_SHOTGUN -> PrimarySkillType.CROSSBOWS;
|
||||||
return PrimarySkillType.MINING;
|
case TRIDENT_ABILITY -> PrimarySkillType.TRIDENTS;
|
||||||
case SKULL_SPLITTER:
|
default ->
|
||||||
return PrimarySkillType.AXES;
|
throw new InvalidSkillException("No parent defined for super ability! " + superAbilityType.toString());
|
||||||
case SERRATED_STRIKES:
|
};
|
||||||
return PrimarySkillType.SWORDS;
|
|
||||||
case GIGA_DRILL_BREAKER:
|
|
||||||
return PrimarySkillType.EXCAVATION;
|
|
||||||
default:
|
|
||||||
throw new InvalidSkillException("No parent defined for super ability! "+superAbilityType.toString());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user