Bomb Lobbers

This commit is contained in:
Sam 2018-04-30 21:32:34 +01:00 committed by Alexander Meech
parent 54e545e2ff
commit 30dcfdb660
2 changed files with 21 additions and 4 deletions

View File

@ -1651,13 +1651,12 @@ public enum GameKit
(
0,
GameDisplay.Lobbers,
"Jumper",
"Acrobat",
"lobbersjumper",
new String[]
{
"Use your jumping abilities to leap away from trouble!",
"Use your sturdy shoes prevent fall damage.",
C.blankLine,
"You take no fall damage",
"Receive " + C.cGreen + 1 + C.cGray + " TNT every " + C.cGreen + "4-8" + C.cGray + " seconds. Max " + C.cGreen + "3."
},
new KitEntityData<>
@ -1714,7 +1713,14 @@ public enum GameKit
new KitEntityData<>
(
Zombie.class,
new ItemStack(Material.IRON_AXE)
new ItemStack(Material.IRON_AXE),
new ItemStack[]
{
new ItemStack(Material.CHAINMAIL_BOOTS),
new ItemStack(Material.CHAINMAIL_LEGGINGS),
new ItemStack(Material.CHAINMAIL_CHESTPLATE),
new ItemStack(Material.CHAINMAIL_HELMET)
}
),
4000
),

View File

@ -20,12 +20,14 @@ import nautilus.game.arcade.game.games.lobbers.events.TNTThrowEvent;
import nautilus.game.arcade.game.games.lobbers.kits.perks.PerkCraftman;
import nautilus.game.arcade.kit.Kit;
import nautilus.game.arcade.kit.Perk;
import nautilus.game.arcade.kit.perks.PerkDoubleJump;
public class KitPitcher extends Kit
{
private static final Perk[] PERKS =
{
new PerkDoubleJump("Double Jump", 1.2, 1.2, false),
new PerkCraftman()
};
@ -34,6 +36,14 @@ public class KitPitcher extends Kit
ItemStackFactory.Instance.CreateStack(Material.LEVER, (byte) 0, 2, F.item("Velocity Selector"))
};
private static final ItemStack[] PLAYER_ARMOR =
{
ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_BOOTS),
ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_LEGGINGS),
ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_CHESTPLATE),
ItemStackFactory.Instance.CreateStack(Material.CHAINMAIL_HELMET),
};
public KitPitcher(ArcadeManager manager)
{
super(manager, GameKit.BOMB_LOBBERS_PITCHER, PERKS);
@ -43,6 +53,7 @@ public class KitPitcher extends Kit
public void GiveItems(Player player)
{
player.getInventory().setItem(1, PLAYER_ITEMS[0]);
player.getInventory().setArmorContents(PLAYER_ARMOR);
}
@EventHandler