This commit is contained in:
Sam 2017-05-27 00:56:38 +01:00
parent b46464babe
commit e3f678d71d
4 changed files with 24 additions and 4 deletions

View File

@ -66,7 +66,7 @@ public enum Achievement
GLOBAL_ALIEN_INVASION("2017 Alien Hub Defender", 4000,
new String[]{"Global.Alien Invasion 2017"},
new String[]{"Kill 50 Aliens in the Lobby,",
new String[]{"Kill 300 Aliens in the Lobby,",
"during the Alien Invasion event"},
new int[]{300},
AchievementCategory.HOLIDAY),

View File

@ -42,7 +42,7 @@ public class Alien
_stand.setPassenger(_skeleton);
_stand.setRemoveWhenFarAway(false);
_skeleton.setMaxHealth(4);
_skeleton.setMaxHealth(3);
_skeleton.setRemoveWhenFarAway(false);
EntityEquipment equipment = _skeleton.getEquipment();

View File

@ -8,6 +8,7 @@ import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import nautilus.game.arcade.events.PlayerKitGiveEvent;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
@ -20,6 +21,8 @@ import org.bukkit.event.entity.EntitySpawnEvent;
import org.bukkit.event.entity.ItemSpawnEvent;
import org.bukkit.event.player.AsyncPlayerPreLoginEvent;
import org.bukkit.inventory.ItemStack;
import org.bukkit.potion.PotionEffect;
import org.bukkit.potion.PotionEffectType;
import org.bukkit.scheduler.BukkitRunnable;
import org.bukkit.scoreboard.Team;
@ -201,7 +204,6 @@ public class AlienInvasion extends SoloGame
for (Player player : GetPlayers(true))
{
Manager.GetCondition().Factory().Invisible(GetName(), player, null, Integer.MAX_VALUE, 0, false, false, false);
_score.add(new DragonScore(player, 0));
}
@ -222,6 +224,11 @@ public class AlienInvasion extends SoloGame
_lastBeam = System.currentTimeMillis();
_nextBeam = 10000;
for (Player player : GetPlayers(true))
{
player.sendMessage(F.main("Game", C.cYellow + "Double Tab Space to use your double jump!"));
}
ItemStack glass = new ItemStack(Material.GLASS);
CreatureAllowOverride = true;
@ -240,6 +247,12 @@ public class AlienInvasion extends SoloGame
CreatureAllowOverride = false;
}
@EventHandler
public void invisibility(PlayerKitGiveEvent event)
{
Manager.GetCondition().Factory().Invisible(GetName(), event.getPlayer(), event.getPlayer(), 40, 0, false, false, false);
}
@EventHandler
public void updateAliens(UpdateEvent event)
{
@ -433,6 +446,7 @@ public class AlienInvasion extends SoloGame
for (DragonScore score1 : _score)
{
AddGems(score1.Player, score1.Score, "Map Progress", false, false);
players.add(score1.Player);
}

View File

@ -1,5 +1,7 @@
package nautilus.game.arcade.game.games.alieninvasion;
import mineplex.core.common.currency.GlobalCurrency;
import mineplex.core.common.util.F;
import mineplex.core.common.util.UtilEnt;
import mineplex.core.common.util.UtilParticle;
import mineplex.core.common.util.UtilParticle.ParticleType;
@ -22,6 +24,8 @@ import org.bukkit.util.Vector;
public class PhaserProjectile implements Listener
{
private static final int SHARDS_PER_HIT = 15;
private ArcadeManager _manager;
private Projectile _projectile;
@ -60,13 +64,15 @@ public class PhaserProjectile implements Listener
return;
}
_manager.GetDonation().rewardCurrencyUntilSuccess(GlobalCurrency.TREASURE_SHARD, damager, "Alien Hit", SHARDS_PER_HIT);
damager.playSound(damager.getLocation(), Sound.CHICKEN_EGG_POP, 1, 0.7F);
damager.sendMessage(F.main("Game", "Hit an alien. +" + F.currency(GlobalCurrency.TREASURE_SHARD, SHARDS_PER_HIT) + "."));
}
event.SetCancelled("Blaster Snowball");
UtilParticle.PlayParticle(ParticleType.CLOUD, projectile.getLocation(), 0.5F, 0.5F, 0.5F, 0.05F, 5, ViewDist.NORMAL);
_manager.GetDamage().NewDamageEvent(damagee, damager, projectile, DamageCause.CUSTOM, 4, false, true, true, UtilEnt.getName(damager), "Blaster");
_manager.GetDamage().NewDamageEvent(damagee, damager, projectile, DamageCause.CUSTOM, 3, false, true, true, UtilEnt.getName(damager), "Blaster");
UtilServer.Unregister(this);
}