Make Bob Ross an invisible kit
This commit is contained in:
parent
f7b80cc194
commit
321acce3c3
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ public class HeroBob extends HeroKit
|
||||
|
||||
setAmmo(AMMO, 500);
|
||||
setMaxAmmo(8);
|
||||
setVisible(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user