Make Bob Ross an invisible kit

This commit is contained in:
Sam 2017-05-13 15:34:13 +01:00
parent f7b80cc194
commit 321acce3c3
3 changed files with 14 additions and 1 deletions

View File

@ -603,7 +603,7 @@ public class Moba extends TeamGame
for (HeroKit kit : _kits)
{
if (kit.getRole() == role)
if (kit.getRole() == role && kit.isVisible())
{
kits.add(kit);
}

View File

@ -39,6 +39,8 @@ public class HeroKit extends Kit
.addLore("Clicking this item will teleport you back to your", "base after " + F.time("5") + " seconds.", "Taking damage or moving will cancel", "your teleport.")
.build();
private boolean _visible = true;
public HeroKit(ArcadeManager manager, String name, String[] kitDesc, Perk[] kitPerks, ItemStack itemInHand, MobaRole role)
{
super(manager, name, KitAvailability.Free, kitDesc, kitPerks, null, itemInHand);
@ -190,4 +192,14 @@ public class HeroKit extends Kit
}
}
}
public boolean isVisible()
{
return _visible;
}
public void setVisible(boolean visible)
{
_visible = visible;
}
}

View File

@ -35,6 +35,7 @@ public class HeroBob extends HeroKit
setAmmo(AMMO, 500);
setMaxAmmo(8);
setVisible(false);
}
}