Balance changes

This commit is contained in:
Sam 2017-04-29 23:25:13 +01:00
parent 8a54e19695
commit acb5963dd4
6 changed files with 23 additions and 37 deletions

View File

@ -66,7 +66,7 @@ public class KitSlime extends SmashKit
};
private static final ItemStack[] PLAYER_ARMOR = {
null,
new ItemStack(Material.CHAINMAIL_BOOTS),
null,
new ItemStack(Material.CHAINMAIL_CHESTPLATE),
new ItemStack(Material.CHAINMAIL_HELMET),

View File

@ -312,6 +312,7 @@ public class PerkCreeperExplode extends SmashPerk
return;
}
event.AddMod(GetName(), event.GetDamage() * -0.25);
event.AddKnockback(GetName(), _knockbackMagnitude);
}

View File

@ -45,6 +45,7 @@ public class PerkBlockToss extends SmashPerk implements IThrown
private int _cooldown;
private int _chargeTime;
private int _damage;
private int _maxDamage;
private float _knockbackMagnitude;
private Map<UUID, BlockTossData> _hold = new HashMap<>();
@ -59,9 +60,10 @@ public class PerkBlockToss extends SmashPerk implements IThrown
@Override
public void setupValues()
{
_cooldown = getPerkTime("Cooldown");
_cooldown = getPerkInt("Cooldown (ms)");
_chargeTime = getPerkInt("Charge Time (ms)");
_damage = getPerkInt("Damage");
_maxDamage = getPerkInt("Max Damage");
_knockbackMagnitude = getPerkFloat("Knockback Magnitude");
}
@ -210,7 +212,7 @@ public class PerkBlockToss extends SmashPerk implements IThrown
}
// Damage Event
Manager.GetDamage().NewDamageEvent(target, data.getThrower(), null, DamageCause.PROJECTILE, data.getThrown().getVelocity().length() * _damage, true, true, false, UtilEnt.getName(data
Manager.GetDamage().NewDamageEvent(target, data.getThrower(), null, DamageCause.PROJECTILE, Math.min(_maxDamage, data.getThrown().getVelocity().length() * _damage), true, true, false, UtilEnt.getName(data
.getThrower()), GetName());
// Block to Item

View File

@ -47,7 +47,7 @@ public class PerkNeedler extends SmashPerk
@Override
public void setupValues()
{
_cooldownNormal = getPerkTime("Cooldown Normal");
_cooldownNormal = getPerkInt("Cooldown Normal (ms)");
_cooldownSmash = getPerkInt("Cooldown Smash (ms)");
_damage = getPerkDouble("Damage");
_maxTicks = getPerkInt("Max Ticks");
@ -88,7 +88,7 @@ public class PerkNeedler extends SmashPerk
return;
}
_active.put(player.getUniqueId(), 8);
_active.put(player.getUniqueId(), 7);
UtilPlayer.message(player, F.main("Skill", "You used " + F.skill(GetName()) + "."));
}

View File

@ -139,7 +139,7 @@ public class PerkSpiderLeap extends Perk
UtilAction.velocity(player, 1.0, 0.2, 1.0, true);
// Energy
player.setExp(Math.max(0, player.getExp() - _energyJump));
//player.setExp(Math.max(0, player.getExp() - _energyJump));
// Sound
player.getWorld().playSound(player.getLocation(), Sound.SPIDER_IDLE, 1f, 1.5f);

View File

@ -1,11 +1,17 @@
package nautilus.game.arcade.game.games.smash.perks.squid;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import mineplex.core.common.util.*;
import mineplex.core.common.util.UtilEvent.ActionType;
import mineplex.core.common.util.UtilParticle.ParticleType;
import mineplex.core.common.util.UtilParticle.ViewDist;
import mineplex.core.itemstack.ItemStackFactory;
import mineplex.core.projectile.IThrown;
import mineplex.core.projectile.ProjectileUser;
import mineplex.core.recharge.Recharge;
import mineplex.core.updater.UpdateType;
import mineplex.core.updater.event.UpdateEvent;
import mineplex.minecraft.game.core.damage.CustomDamageEvent;
import nautilus.game.arcade.game.games.smash.perks.SmashPerk;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.block.Block;
@ -18,30 +24,7 @@ import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.util.Vector;
import mineplex.core.common.util.C;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilAction;
import mineplex.core.common.util.UtilAlg;
import mineplex.core.common.util.UtilBlock;
import mineplex.core.common.util.UtilEnt;
import mineplex.core.common.util.UtilEvent;
import mineplex.core.common.util.UtilEvent.ActionType;
import mineplex.core.common.util.UtilItem;
import mineplex.core.common.util.UtilMath;
import mineplex.core.common.util.UtilParticle;
import mineplex.core.common.util.UtilParticle.ParticleType;
import mineplex.core.common.util.UtilParticle.ViewDist;
import mineplex.core.common.util.UtilPlayer;
import mineplex.core.common.util.UtilServer;
import mineplex.core.common.util.UtilTime;
import mineplex.core.itemstack.ItemStackFactory;
import mineplex.core.projectile.IThrown;
import mineplex.core.projectile.ProjectileUser;
import mineplex.core.recharge.Recharge;
import mineplex.core.updater.UpdateType;
import mineplex.core.updater.event.UpdateEvent;
import mineplex.minecraft.game.core.damage.CustomDamageEvent;
import nautilus.game.arcade.game.games.smash.perks.SmashPerk;
import java.util.*;
public class PerkFishFlurry extends SmashPerk implements IThrown
{
@ -157,7 +140,7 @@ public class PerkFishFlurry extends SmashPerk implements IThrown
// particles
for (Block block : data.Blocks)
{
UtilParticle.PlayParticle(ParticleType.SPLASH, block.getLocation().add(0.5, 1, 0.5), 0.25f, 0, 0.25f, 0, 3, ViewDist.LONG, UtilServer.getPlayers());
UtilParticle.PlayParticleToAll(ParticleType.SPLASH, block.getLocation().add(0.5, 1, 0.5), 0.25f, 0, 0.25f, 0, 1, ViewDist.LONG);
}
// sound