Destructor changes
This commit is contained in:
parent
5564dc7daf
commit
02a6f34bd3
@ -1712,7 +1712,7 @@ public class Bridge extends TeamGame implements OreObsfucation
|
|||||||
@EventHandler
|
@EventHandler
|
||||||
public void updateBorder(UpdateEvent event)
|
public void updateBorder(UpdateEvent event)
|
||||||
{
|
{
|
||||||
if (event.getType() != UpdateType.FAST || _bridgesDown)
|
if (!IsLive() || event.getType() != UpdateType.FAST || _bridgesDown)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1735,11 +1735,16 @@ public class Bridge extends TeamGame implements OreObsfucation
|
|||||||
|
|
||||||
for (Player player : team.GetPlayers(true))
|
for (Player player : team.GetPlayers(true))
|
||||||
{
|
{
|
||||||
|
if (player.getGameMode() != GameMode.SURVIVAL)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
Location location = player.getLocation();
|
Location location = player.getLocation();
|
||||||
|
|
||||||
if (!UtilAlg.inBoundingBox(location, one, two))
|
if (!UtilAlg.inBoundingBox(location, one, two))
|
||||||
{
|
{
|
||||||
player.setVelocity(UtilAlg.getTrajectory(location, average).add(new Vector(0, 1, 0)));
|
player.setVelocity(UtilAlg.getTrajectory(location, average).multiply(3).add(new Vector(0, 0.5, 0)));
|
||||||
player.sendMessage(C.cRedB + "STAY ON YOUR ISLAND!");
|
player.sendMessage(C.cRedB + "STAY ON YOUR ISLAND!");
|
||||||
player.playSound(player.getLocation(), Sound.NOTE_PLING, 1, 0.5F);
|
player.playSound(player.getLocation(), Sound.NOTE_PLING, 1, 0.5F);
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ public class KitDestructor extends ProgressingKit
|
|||||||
};
|
};
|
||||||
|
|
||||||
private static final Perk[] PERKS = {
|
private static final Perk[] PERKS = {
|
||||||
new PerkDestructor(40, 2, 400, false)
|
new PerkDestructor(40, 2, 400, 1.5, false)
|
||||||
};
|
};
|
||||||
|
|
||||||
private static final Achievement[] ACHIEVEMENTS = {
|
private static final Achievement[] ACHIEVEMENTS = {
|
||||||
|
Loading…
Reference in New Issue
Block a user