End Effect change

Reduced the amount of TNT thrown and reduced the velocity at which they
are fired.
This commit is contained in:
Sam 2016-08-01 18:46:35 +01:00
parent 8f96b15454
commit 71f9fd97d6

View File

@ -86,8 +86,7 @@ public class QuiverPayload extends TeamGame
private static final long POWERUP_SPAWN_DELAY = 20000; private static final long POWERUP_SPAWN_DELAY = 20000;
private static final int RESPAWN_ARROW_GIVE_DELAY = 20; private static final int RESPAWN_ARROW_GIVE_DELAY = 20;
private static final int END_EFFECT_DELAY = 100; private static final int END_EFFECT_DELAY = 100;
private static final int END_EFFECT_TNT_AMOUNT = 15; private static final int END_EFFECT_TNT_AMOUNT = 8;
private static final int END_EFFECT_TNT_MAX_VELOCITY = 2;
private static final int END_EFFECT_EXPLOSION_RADIUS = 5; private static final int END_EFFECT_EXPLOSION_RADIUS = 5;
public static final int KIT_NINJA_SHURIKEN_AMOUNT = 15; public static final int KIT_NINJA_SHURIKEN_AMOUNT = 15;
@ -607,9 +606,8 @@ public class QuiverPayload extends TeamGame
{ {
TNTPrimed tntPrimed = _minecart.getWorld().spawn(_minecart.getLocation().add(0, 1, 0), TNTPrimed.class); TNTPrimed tntPrimed = _minecart.getWorld().spawn(_minecart.getLocation().add(0, 1, 0), TNTPrimed.class);
tntPrimed.setVelocity(new Vector(random.nextInt(END_EFFECT_TNT_MAX_VELOCITY * 2) - END_EFFECT_TNT_MAX_VELOCITY, random.nextInt(END_EFFECT_TNT_MAX_VELOCITY) / 2, random.nextInt( tntPrimed.setVelocity(new Vector(random.nextDouble() - 0.5, random.nextDouble() / 2, random.nextDouble() - 0.5));
END_EFFECT_TNT_MAX_VELOCITY * 2) - END_EFFECT_TNT_MAX_VELOCITY)); tntPrimed.setFuseTicks((int) (END_EFFECT_DELAY / 2));
tntPrimed.setFuseTicks((int) (END_EFFECT_DELAY * 0.75));
tntPrimed.setYield(END_EFFECT_EXPLOSION_RADIUS); tntPrimed.setYield(END_EFFECT_EXPLOSION_RADIUS);
} }