Add some missing things for new skill commands

This commit is contained in:
nossr50
2020-07-29 10:22:18 -07:00
parent 8112973dbe
commit a82b899eb6
4 changed files with 26 additions and 12 deletions

View File

@@ -72,13 +72,13 @@ public class CrossbowManager extends SkillManager {
Vector originUnitVector = originVector.clone().normalize();
for(int i = 0; i < getConeOfDeathProjectileCount(); i++) {
for(int i = 0; i < getSuperShotgunAdditionalArrowCount(); i++) {
Vector newProjectileVector = byRotateVector(originUnitVector, 0);
spawnTrackedProjectile(originProjectile, world, originProjectileMagnitude, newProjectileVector, getRandomizedSpreadValue());
}
}
private int getConeOfDeathProjectileCount() {
public int getSuperShotgunAdditionalArrowCount() {
switch(RankUtils.getRank(mcMMOPlayer.getPlayer(), SubSkillType.CROSSBOWS_SUPER_SHOTGUN)) {
case 1:
return 9;