Added baby disguise ability.

Added Stacker recharge.
Fixed issue with ServerGameMenu Champions button.
SuperSmash decreased hunger gain on attack.

Code cleanup.
This commit is contained in:
Jonathan Williams 2013-09-22 20:53:24 -07:00
parent cc63fdccfc
commit e098d93155
5 changed files with 17 additions and 16 deletions

View File

@ -6,4 +6,14 @@ public abstract class DisguiseAgeable extends DisguiseCreature
{
super(entity);
}
public boolean isBaby()
{
return DataWatcher.getInt(12) < 0;
}
public void setBaby()
{
DataWatcher.watch(12, Integer.valueOf(-24000));
}
}

View File

@ -101,20 +101,7 @@ public class MessageManager extends MiniClientPlugin<ClientMessage>
{
Help(caller, null);
}
/*
@Override
public void commands()
{
AddCommand("m");
AddCommand("msg");
AddCommand("message");
AddCommand("tell");
AddCommand("t");
AddCommand("r");
AddCommand("a");
AddCommand("ma");
AddCommand("ra");
}
/* XXX Incorporate this
PunishChatEvent event = new PunishChatEvent(caller);

View File

@ -32,6 +32,7 @@ import mineplex.core.itemstack.ItemStackFactory;
import mineplex.core.projectile.IThrown;
import mineplex.core.projectile.ProjectileManager;
import mineplex.core.projectile.ProjectileUser;
import mineplex.core.recharge.Recharge;
import mineplex.hub.HubManager;
public class StackerManager extends MiniPlugin implements IThrown
@ -160,6 +161,9 @@ public class StackerManager extends MiniPlugin implements IThrown
while (top.getPassenger() != null)
top = top.getPassenger();
if (!Recharge.Instance.use(stacker, "Stacker", 500, true))
return;
top.setPassenger(stackee);
UtilPlayer.message(stacker, F.main("Stacker", "You stacked " + F.name(UtilEnt.getName(stackee) + ".")));

View File

@ -57,7 +57,7 @@ public class ServerGameMenu extends ShopPageBase<ServerManager, ServerNpcShop>
ChatColor.RESET + "with weapons, drifting and more!",
}));
this.setItem(6, ItemStackFactory.Instance.CreateStack(Material.BEACON.getId(), (byte)0, 1, ChatColor.RESET + C.Bold + ChatColor.YELLOW + "Champions " + C.cGray + "Champions Team Game", new String[]
this.setItem(6, ItemStackFactory.Instance.CreateStack(Material.BEACON.getId(), (byte)0, 1, ChatColor.RESET + C.Bold + ChatColor.YELLOW + "Champions " + C.cGray + "Team Game", new String[]
{
ChatColor.RESET + "",
ChatColor.RESET + "Customize one of five exciting champions",

View File

@ -361,7 +361,7 @@ public class SuperSmash extends SoloGame
return;
if (event.GetDamagerPlayer(true) != null)
UtilPlayer.hunger(event.GetDamagerPlayer(true), (int)event.GetDamage());
UtilPlayer.hunger(event.GetDamagerPlayer(true), (int)(event.GetDamage()/2));
}
}