skywars art
This commit is contained in:
parent
08e4ef199e
commit
ead402d026
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 2.0 MiB |
Binary file not shown.
|
@ -230,47 +230,48 @@ public class PerkMadScientist extends Perk implements IThrown
|
||||||
|
|
||||||
//Name
|
//Name
|
||||||
zombie.setCustomName(C.cAqua + UtilEnt.getName(data.GetThrower()) + "'s Minion");
|
zombie.setCustomName(C.cAqua + UtilEnt.getName(data.GetThrower()) + "'s Minion");
|
||||||
|
zombie.setCustomNameVisible(true);
|
||||||
|
|
||||||
double r = Math.random();
|
// double r = Math.random();
|
||||||
|
//
|
||||||
DisguiseBase disguise;
|
// DisguiseBase disguise;
|
||||||
if (r > 0.8)
|
// if (r > 0.8)
|
||||||
{
|
// {
|
||||||
disguise = new DisguiseZombie(zombie);
|
// disguise = new DisguiseZombie(zombie);
|
||||||
}
|
// }
|
||||||
else if (r > 0.6)
|
// else if (r > 0.6)
|
||||||
{
|
// {
|
||||||
disguise = new DisguiseBlaze(zombie);
|
// disguise = new DisguiseBlaze(zombie);
|
||||||
}
|
// }
|
||||||
else if (r > 0.4)
|
// else if (r > 0.4)
|
||||||
{
|
// {
|
||||||
disguise = new DisguiseSpider(zombie);
|
// disguise = new DisguiseSpider(zombie);
|
||||||
}
|
// }
|
||||||
else if (r > 0.2)
|
// else if (r > 0.2)
|
||||||
{
|
// {
|
||||||
disguise = new DisguiseSkeleton(zombie);
|
// disguise = new DisguiseSkeleton(zombie);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
disguise = new DisguiseSlime(zombie);
|
// disguise = new DisguiseSlime(zombie);
|
||||||
((DisguiseSlime)disguise).SetSize(2);
|
// ((DisguiseSlime)disguise).SetSize(2);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
if (disguise instanceof DisguiseInsentient)
|
// if (disguise instanceof DisguiseInsentient)
|
||||||
{
|
// {
|
||||||
if (((Player) data.GetThrower()).getName().toLowerCase().endsWith("s"))
|
// if (((Player) data.GetThrower()).getName().toLowerCase().endsWith("s"))
|
||||||
{
|
// {
|
||||||
((DisguiseInsentient)disguise).setName(C.cAqua + UtilEnt.getName(data.GetThrower()) + "' Minion");
|
// ((DisguiseInsentient)disguise).setName(C.cAqua + UtilEnt.getName(data.GetThrower()) + "' Minion");
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
((DisguiseInsentient)disguise).setName(C.cAqua + UtilEnt.getName(data.GetThrower()) + "' Minion");
|
// ((DisguiseInsentient)disguise).setName(C.cAqua + UtilEnt.getName(data.GetThrower()) + "' Minion");
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
((DisguiseInsentient)disguise).setCustomNameVisible(true);
|
// ((DisguiseInsentient)disguise).setCustomNameVisible(true);
|
||||||
}
|
// }
|
||||||
|
//
|
||||||
Manager.GetDisguise().disguise(disguise);
|
// Manager.GetDisguise().disguise(disguise);
|
||||||
|
|
||||||
Manager.GetGame().CreatureAllowOverride = false;
|
Manager.GetGame().CreatureAllowOverride = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue