From 0f925dd65515438712bb7aff85829454ca85f434 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 1 May 2017 11:10:06 +0100 Subject: [PATCH] Ink Blaster changes --- .../arcade/game/games/smash/perks/squid/PerkInkBlast.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/smash/perks/squid/PerkInkBlast.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/smash/perks/squid/PerkInkBlast.java index 4613a99e0..8b15e9455 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/smash/perks/squid/PerkInkBlast.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/smash/perks/squid/PerkInkBlast.java @@ -37,6 +37,7 @@ public class PerkInkBlast extends SmashPerk implements IThrown { private int _cooldown; + private float _spread; private float _projectileVelocity; private int _knockbackMagnitude; private int _bullets; @@ -51,6 +52,7 @@ public class PerkInkBlast extends SmashPerk implements IThrown public void setupValues() { _cooldown = getPerkTime("Cooldown"); + _spread = getPerkFloat("Spread"); _projectileVelocity = getPerkFloat("Projectile Velocity"); _knockbackMagnitude = getPerkInt("Knockback Magnitude"); _bullets = getPerkInt("Bullets"); @@ -106,7 +108,7 @@ public class PerkInkBlast extends SmashPerk implements IThrown Item ent = player.getWorld().dropItem(player.getEyeLocation().add(player.getLocation().getDirection()), ItemStackFactory.Instance.CreateStack(Material.INK_SACK, (byte) 0, 1, "Ink" + Math .random())); - Vector random = new Vector(Math.random() - 0.5, Math.random() - 0.5, Math.random() - 0.5); + Vector random = new Vector((Math.random() - 0.5) * _spread, (Math.random() - 0.5) * _spread, (Math.random() - 0.5) * _spread); random.normalize(); random.multiply(_projectileVelocity);