final xmas Updates

xmas hub
This commit is contained in:
Chiss 2014-12-12 19:44:04 +11:00
parent 9a16616e6c
commit 4fd6ed80c4
7 changed files with 26 additions and 12 deletions

View File

@ -139,21 +139,24 @@ public class UtilBlockText
if (align == TextAlign.CENTER)
for (int i=-64 ; i<=64 ; i++)
{
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
if (world.getBlockAt(bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ()).getTypeId() == id)
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
}
if (align == TextAlign.LEFT)
for (int i=0 ; i<=128 ; i++)
{
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
if (world.getBlockAt(bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ()).getTypeId() == id)
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
}
if (align == TextAlign.RIGHT)
for (int i=-128 ; i<=0 ; i++)
{
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
if (world.getBlockAt(bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ()).getTypeId() == id)
MapUtil.ChunkBlockSet(world, bX + i * face.getModX(), bY + i * face.getModY(), bZ + i * face.getModZ(), 0, (byte)0, true);
}

View File

@ -105,7 +105,7 @@ import mineplex.minecraft.game.core.damage.CustomDamageEvent;
public class HubManager extends MiniClientPlugin<HubClient>
{
// Snowman!
public HubType Type = HubType.Normal;
public HubType Type = HubType.Christmas;
private BlockRestore _blockRestore;
private CoreClientManager _clientManager;

View File

@ -79,7 +79,7 @@ public class TextManager extends MiniPlugin
UtilBlockText.MakeText(GetArcadeText(2), locArcade.clone().add(0, 28, 15), faceArcade, 159, (byte)14, TextAlign.CENTER);
UtilBlockText.MakeText(GetArcadeText(2), locArcade.clone().add(0, 28, 16), faceArcade, (Manager.Type == HubType.Halloween) ? 89 : 159, (Manager.Type == HubType.Halloween) ? (byte)0 : (byte)15, TextAlign.CENTER);
//Survival
UtilBlockText.MakeText("SURVIVAL", locSurvival, faceSurvival, 159, (byte)5, TextAlign.CENTER);
UtilBlockText.MakeText("SURVIVAL", locSurvival.clone().add(-1, 0, 0), faceSurvival, (Manager.Type == HubType.Halloween) ? 89 : 159, (Manager.Type == HubType.Halloween) ? (byte)0 : (byte)15, TextAlign.CENTER);

View File

@ -389,7 +389,7 @@ public class Christmas extends SoloGame
public void SantaSay(String string, ChristmasAudio audio)
{
Announce(C.cRed + C.Bold + "Santa: " + ChatColor.RESET + C.cYellow + string);
Announce(C.cRed + C.Bold + "Santa: " + ChatColor.RESET + C.cYellow + string, false);
//Audio
if (audio != null && UtilTime.elapsed(_santaSayTime, 1500))
@ -412,7 +412,7 @@ public class Christmas extends SoloGame
{
for (Player player : UtilServer.getPlayers())
{
UtilPlayer.message(player, C.cDGreen + C.Bold + name + ": " + ChatColor.RESET + C.cGreen + string);
UtilPlayer.message(player, C.cDGreen + C.Bold + name + ": " + ChatColor.RESET + C.cGreen + string, false);
if (audio != null)
{

View File

@ -51,8 +51,8 @@ public class SnowmanBoss
_minions.add(new SnowmanMinion(_spawn.getWorld().spawn(_spawn, Snowman.class)));
_heart = _spawn.getWorld().spawn(_spawn, IronGolem.class);
_heart.setMaxHealth(1500);
_heart.setHealth(1500);
_heart.setMaxHealth(1000);
_heart.setHealth(1000);
UtilEnt.Vegetate(_heart);
Host.CreatureAllowOverride = false;
@ -75,8 +75,19 @@ public class SnowmanBoss
if (Host.GetPlayers(true).isEmpty())
return;
Entity ent = _heart;
//Count Size
int size = 0;
Entity bottom = _heart;
while (bottom.getVehicle() != null)
{
bottom = bottom.getVehicle();
size++;
}
if (size < 3)
return;
//Throw Snowballs
Entity ent = _heart;
while (ent.getVehicle() != null)
{
ent = ent.getVehicle();

View File

@ -114,7 +114,7 @@ public class Part1 extends Part
private void UpdateSkeleton()
{
if (_exploded < 0)
if (_ignited < 0)
return;
if (GetCreatures().size() > 40)

View File

@ -219,7 +219,7 @@ public class Part3 extends Part
return;
if (event.GetDamageePlayer() != null)
event.AddMod("Christmas Part 3", "Snowball", 3, false);
event.AddMod("Christmas Part 3", "Snowball", 2, false);
else
event.SetCancelled("Snowball vs Mobs");
}