mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	command tweaks for xbow
This commit is contained in:
		@@ -34,7 +34,7 @@ public class CrossbowsCommand extends SkillCommand {
 | 
			
		||||
 | 
			
		||||
        if(canUseSubskill(player, SubSkillType.CROSSBOWS_SUPER_SHOTGUN)) {
 | 
			
		||||
            String additionalArrowCount = String.valueOf(crossbowManager.getSuperShotgunAdditionalArrowCount());
 | 
			
		||||
            messages.add(getStatMessage(SubSkillType.CROSSBOWS_CROSSBOWS_LIMIT_BREAK, additionalArrowCount));
 | 
			
		||||
            messages.add(getStatMessage(SubSkillType.CROSSBOWS_SUPER_SHOTGUN, additionalArrowCount));
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return messages;
 | 
			
		||||
 
 | 
			
		||||
@@ -51,20 +51,20 @@ public class CrossbowManager extends SkillManager {
 | 
			
		||||
     * @param projectileLaunchEvent target event
 | 
			
		||||
     */
 | 
			
		||||
    public void processProjectileLaunchEvent(ProjectileLaunchEvent projectileLaunchEvent) {
 | 
			
		||||
        mcMMOPlayer.getPlayer().sendMessage("Pew pew!");
 | 
			
		||||
 | 
			
		||||
        //Testing
 | 
			
		||||
        if(Permissions.isSubSkillEnabled(mcMMOPlayer.getPlayer(), SubSkillType.CROSSBOWS_SUPER_SHOTGUN)) {
 | 
			
		||||
            coneOfDeathProcessing(projectileLaunchEvent);
 | 
			
		||||
            if(RankUtils.hasUnlockedSubskill(mcMMOPlayer.getPlayer(), SubSkillType.CROSSBOWS_SUPER_SHOTGUN)) {
 | 
			
		||||
                superShotgunProcessing(projectileLaunchEvent);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    private void coneOfDeathProcessing(ProjectileLaunchEvent projectileLaunchEvent) {
 | 
			
		||||
        spawnConeArrows(projectileLaunchEvent.getEntity());
 | 
			
		||||
    private void superShotgunProcessing(ProjectileLaunchEvent projectileLaunchEvent) {
 | 
			
		||||
        spawnSuperShotgunArrows(projectileLaunchEvent.getEntity());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private void spawnConeArrows(@NotNull Projectile originProjectile) {
 | 
			
		||||
    private void spawnSuperShotgunArrows(@NotNull Projectile originProjectile) {
 | 
			
		||||
        World world = originProjectile.getWorld();
 | 
			
		||||
 | 
			
		||||
        Vector originVector = originProjectile.getVelocity().clone();
 | 
			
		||||
 
 | 
			
		||||
@@ -565,8 +565,9 @@ Tridents.SkillName=TRIDENTS
 | 
			
		||||
Crossbows.SubSkill.CrossbowsLimitBreak.Name=Crossbows Limit Break
 | 
			
		||||
Crossbows.SubSkill.CrossbowsLimitBreak.Description=Breaking your limits. Increased damage against tough opponents. Intended for PVP, up to server settings for whether or not it will boost damage in PVE.
 | 
			
		||||
Crossbows.SubSkill.CrossbowsLimitBreak.Stat=Limit Break Max DMG
 | 
			
		||||
Crossbows.SubSkill.SuperShotgun.Name=Super Shotgun
 | 
			
		||||
Crossbows.SubSkill.SuperShotgun.Description=Shoot a spread of weaker arrows that ignore invulnerability frames
 | 
			
		||||
Crossbows.SubSkill.SuperShotgun.Stat=+{0} Extra Arrows
 | 
			
		||||
Crossbows.SubSkill.SuperShotgun.Stat=Shotgun Extra Arrows
 | 
			
		||||
Crossbows.Listener=Crossbows:
 | 
			
		||||
Crossbows.SkillName=CROSSBOWS
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user